/* Coin comparison (Claude 2026-12-05; v4 = shared by getburncoin.com and catwifhatsolana.com). Dark site style.
   All theme colours are variables: default (fire, getburncoin) on .bvb / .bvb-modal, CWIF on .bvb-theme-sparkle.
   Series colours come from the PHP config (--c) and are CVD-validated per site surface:
     getburncoin on #17110f: $BURN #e0600a solid, $BTC #4a8ce6 dashed, $SOL #2ba57f dotted
     catwifhatsolana on #16131f: $CWIF #9d6cf2 solid, $BTC #cc7a0a dashed, $SOL #1fa883 dotted
   Each line also carries a direct end label, so colour is never the only cue. */
.bvb, .bvb-modal {
    --bvb-ink: #fff8ee;
    --bvb-muted: #b9aba2;
    --bvb-surface: #17110f;
    --bvb-card: #1b1310;
    --bvb-panel: rgba(29, 20, 16, 0.88);
    --bvb-line: rgba(255, 151, 54, 0.2);
    --bvb-edge: rgba(255, 151, 54, 0.42);
    --bvb-accent: #ff7a1a;
    --bvb-accent-ink: #140b06;
    --bvb-hi: #ffb347;
    --bvb-glow: 255, 104, 0;
    --bvb-calm: #6f6259;
    --bvb-backdrop: rgba(5, 3, 2, 0.72);
    --bvb-tip: rgba(11, 8, 7, 0.94);
    --bvb-up: #2ad98f;
    --bvb-down: #ff6b61;
    --bvb-emoji: "\1F525";
}
.bvb.bvb-theme-sparkle, .bvb-modal.bvb-theme-sparkle {
    --bvb-ink: #f7f3ff;
    --bvb-muted: #b8aecb;
    --bvb-surface: #16131f;
    --bvb-card: #1e1a2b;
    --bvb-panel: rgba(30, 26, 43, 0.92);
    --bvb-line: rgba(176, 124, 255, 0.22);
    --bvb-edge: rgba(176, 124, 255, 0.48);
    --bvb-accent: #b48cff;
    --bvb-accent-ink: #160d29;
    --bvb-hi: #d9c2ff;
    --bvb-glow: 190, 120, 255;
    --bvb-calm: #5f5873;
    --bvb-backdrop: rgba(6, 4, 12, 0.74);
    --bvb-tip: rgba(12, 10, 20, 0.95);
    --bvb-emoji: "\2728";
}
.bvb {
    position: relative;
    color: var(--bvb-ink);
    font-family: inherit;
    text-align: start;
}
.bvb--inline {
    margin: 24px 0 28px;
    padding: 20px;
    border: 1px solid var(--bvb-line);
    border-radius: 24px;
    background: var(--bvb-panel);
    scroll-margin-top: 96px;
}
.bvb-head { margin: 0 0 12px; padding-inline-end: 44px; }
.bvb--inline .bvb-head { padding-inline-end: 0; }
.bvb .bvb-title { margin: 0 0 4px; font-size: 1.35rem; line-height: 1.2; color: var(--bvb-ink); font-weight: 800; }
.bvb .bvb-sub { margin: 0; font-size: 0.88rem; line-height: 1.4; color: var(--bvb-muted); }

.bvb-range { display: flex; gap: 8px; margin: 0 0 12px; flex-wrap: wrap; }
.bvb .bvb-btn {
    min-height: 40px; min-width: 64px; padding: 6px 14px; border-radius: 999px;
    border: 1px solid var(--bvb-edge); background: transparent; color: var(--bvb-ink);
    font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.bvb .bvb-btn[aria-pressed="true"] { background: var(--bvb-accent); border-color: var(--bvb-accent); color: var(--bvb-accent-ink); }
.bvb .bvb-btn:focus-visible, .bvb-close:focus-visible, .bvb-chart:focus-visible, .bvb-more a:focus-visible {
    outline: 3px solid var(--bvb-hi); outline-offset: 2px;
}

.bvb-verdict-box { margin: 0 0 12px; }
.bvb .bvb-verdict {
    margin: 0; padding: 10px 12px; border-radius: 12px; min-height: 2.6em;
    background: rgba(255, 255, 255, 0.04); border-inline-start: 4px solid var(--bvb-calm);
    font-size: 1rem; font-weight: 800; line-height: 1.35; color: var(--bvb-ink);
}
.bvb .bvb-verdict.is-hero { border-inline-start-color: var(--bvb-accent); }
/* the point gaps: green = the site's coin is ahead of that coin, red = behind (same colours as the % changes) */
.bvb .bvb-verdict .bvb-gap { font-variant-numeric: tabular-nums; unicode-bidi: isolate; direction: ltr; }
.bvb .bvb-verdict .bvb-gap.is-up { color: var(--bvb-up); }
.bvb .bvb-verdict .bvb-gap.is-down { color: var(--bvb-down); }
.bvb .bvb-vs { margin: 6px 2px 0; font-size: 0.8rem; font-weight: 700; color: var(--bvb-muted); font-variant-numeric: tabular-nums; white-space: pre-wrap; text-align: start; }

/* three cards, hero first; on phones they stay in one row (compact) so the site coin keeps the left spot */
.bvb-coins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; align-items: stretch; }
.bvb-coin { background: var(--bvb-card); border: 1px solid var(--bvb-line); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.bvb-coin-name { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1rem; margin: 0 0 6px; }
.bvb-key { display: inline-block; width: 18px; height: 0; border-top: 3px solid var(--c, #888); border-radius: 2px; flex: none; }
.bvb-key.is-dashed { border-top-style: dashed; }
.bvb-key.is-dotted { border-top-style: dotted; }
.bvb .bvb-stats { margin: 0; display: grid; gap: 4px; grid-template-columns: minmax(0, 1fr); min-width: 0; }
/* Gemini 12-06: values must never leave their card (a long localized price bled under the next card in ar/fr) */
.bvb .bvb-stats > div, .bvb .bvb-stats dt, .bvb .bvb-stats dd { min-width: 0; max-width: 100%; }
.bvb .bvb-coin { overflow: hidden; }
.bvb .bvb-stats > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.bvb .bvb-stats dt { margin: 0; font-size: 0.78rem; color: var(--bvb-muted); font-weight: 600; }
.bvb .bvb-stats dd { margin: 0; font-size: 0.92rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--bvb-ink); direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
[dir="rtl"] .bvb .bvb-stats dd { text-align: right; }
/* the compact burned figure carries a word in RTL languages ("115.1 مليار"): read it right to left, ticker last */
[dir="rtl"] .bvb .bvb-burned dd { direction: rtl; }
.bvb .bvb-pct.is-up { color: var(--bvb-up); }
.bvb .bvb-pct.is-down { color: var(--bvb-down); }
.bvb .bvb-burned { margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--bvb-edge); }
.bvb .bvb-burned[hidden] { display: none; }
.bvb .bvb-burned dt { color: var(--bvb-hi); }
.bvb .bvb-burned dt::before { content: "\1F525"; margin-inline-end: 4px; }
.bvb .bvb-burned dd { color: var(--bvb-hi); }
@media (max-width: 560px) {
    .bvb--inline { padding: 16px 10px; }
    /* hero card a little wider (its prices are the long ones); all three stay in one row, hero first */
    .bvb-coins { gap: 6px; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); }
    .bvb-coin { padding: 8px 8px; border-radius: 12px; }
    .bvb-coin-name { font-size: 0.9rem; gap: 6px; }
    .bvb-key { width: 12px; }
    .bvb .bvb-stats { gap: 6px; }
    .bvb .bvb-stats > div { flex-direction: column; align-items: flex-start; gap: 0; }
    .bvb .bvb-stats dt { font-size: 0.7rem; line-height: 1.25; }
    .bvb .bvb-stats dd { font-size: 0.76rem; letter-spacing: -0.01em; }
    .bvb .bvb-stats dd.is-long, .bvb .bvb-burned dd { font-size: clamp(0.56rem, 2.5vw, 0.68rem); letter-spacing: -0.02em; }
}

.bvb-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.78rem; font-weight: 700; color: var(--bvb-muted); margin: 0 0 4px; }
.bvb-legend-item { display: inline-flex; align-items: center; gap: 6px; }

.bvb-chart { position: relative; height: 230px; border-radius: 12px; touch-action: pan-y; }
@media (min-width: 700px) { .bvb-chart { height: 300px; } }
.bvb-chart svg { display: block; overflow: visible; }
.bvb-gl { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.bvb-zero { stroke: rgba(255, 248, 238, 0.35); stroke-width: 1; stroke-dasharray: 4 4; }
.bvb-ax { fill: var(--bvb-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.bvb-end { fill: var(--bvb-ink); font-size: 11px; font-weight: 700; }
.bvb-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.bvb-line--hero { stroke-width: 2.5; }
.bvb-dot { stroke: var(--bvb-surface); stroke-width: 2; }
.bvb-origin { fill: var(--bvb-ink); stroke: var(--bvb-surface); stroke-width: 2; }
.bvb-cross { stroke: rgba(255, 248, 238, 0.4); stroke-width: 1; }
.bvb-tip {
    position: absolute; z-index: 2; pointer-events: none; padding: 8px 10px; border-radius: 10px;
    background: var(--bvb-tip); border: 1px solid var(--bvb-edge);
    font-size: 0.78rem; line-height: 1.45; white-space: pre; font-variant-numeric: tabular-nums; direction: ltr;
}
.bvb-tip-d { color: var(--bvb-muted); font-weight: 700; }
.bvb-tip-r { color: var(--bvb-ink); font-weight: 700; }
.bvb-tip-r::before { content: ""; display: inline-block; width: 10px; height: 0; border-top: 3px solid var(--c, #888); vertical-align: middle; margin-inline-end: 6px; }

.bvb .bvb-short { margin: 8px 0 0; font-size: 0.8rem; color: var(--bvb-hi); }
.bvb .bvb-note { margin: 10px 0 0; font-size: 0.72rem; line-height: 1.4; color: var(--bvb-muted); }
.bvb .bvb-note + .bvb-note { margin-top: 4px; }
.bvb .bvb-empty { color: var(--bvb-muted); }
.bvb .bvb-more { margin: 12px 0 0; }
.bvb .bvb-more a { color: var(--bvb-hi); font-weight: 700; }

/* hero is #1: steady glow (this is also the whole effect with reduced motion) */
.bvb.is-hero-top .bvb-verdict { box-shadow: 0 0 0 1px rgba(var(--bvb-glow), 0.45), 0 0 18px rgba(var(--bvb-glow), 0.22); }
.bvb.is-hero-top .bvb-verdict::before { content: var(--bvb-emoji); margin-inline-end: 6px; }
.bvb.is-hero-top .bvb-coin--hero { border-color: rgba(var(--bvb-glow), 0.75); box-shadow: 0 0 22px rgba(var(--bvb-glow), 0.2); }

/* the celebration: ~2 s burst; in the popup it then keeps going (calmer) while the popup is open (Tim 12-05 16:53) */
.bvb-fire, .bvb canvas.bvb-fire { position: absolute; top: 0; left: 0; z-index: 2; pointer-events: none; background: transparent !important; max-width: none !important; max-height: none !important; min-height: 0 !important; margin: 0 !important; }
.bvb-fire[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
    .bvb.is-fire .bvb-verdict { animation: bvb-pulse 0.7s ease-in-out 3; }
    .bvb.is-fire .bvb-coin--hero { animation: bvb-pulse-card 0.7s ease-in-out 3; }
    .bvb.is-fire-loop .bvb-verdict { animation: bvb-pulse 1.6s ease-in-out infinite; }
    .bvb.is-fire-loop .bvb-coin--hero { animation: bvb-pulse-card 1.6s ease-in-out infinite; }
    .bvb-line--hero.bvb-ignite {
        stroke-dasharray: var(--bvb-len); stroke-dashoffset: var(--bvb-len);
        animation: bvb-draw 1.1s ease-out forwards, bvb-glow 2.2s ease-out;
    }
    .bvb-modal[open] { animation: bvb-in 0.18s ease-out; }
}
@keyframes bvb-pulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(var(--bvb-glow), 0.45), 0 0 18px rgba(var(--bvb-glow), 0.22); }
    50% { box-shadow: 0 0 0 2px var(--bvb-accent), 0 0 34px rgba(var(--bvb-glow), 0.65); }
}
@keyframes bvb-pulse-card {
    0%, 100% { box-shadow: 0 0 22px rgba(var(--bvb-glow), 0.2); }
    50% { box-shadow: 0 0 0 1px var(--bvb-accent), 0 0 38px rgba(var(--bvb-glow), 0.55); }
}
@keyframes bvb-draw { to { stroke-dashoffset: 0; } }
@keyframes bvb-glow {
    0% { filter: drop-shadow(0 0 0 rgba(var(--bvb-glow), 0)); }
    35% { filter: drop-shadow(0 0 6px rgba(var(--bvb-glow), 0.95)); }
    100% { filter: drop-shadow(0 0 0 rgba(var(--bvb-glow), 0)); }
}
@keyframes bvb-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* popup (native dialog: Esc, focus and the inert page come from the browser) */
.bvb-modal {
    width: min(760px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px);
    padding: 0; border: 1px solid var(--bvb-edge); border-radius: 22px;
    background: var(--bvb-surface); color: var(--bvb-ink); overflow: auto; overscroll-behavior: contain;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}
.bvb-modal::backdrop { background: rgba(5, 3, 2, 0.72); }
.bvb-modal.bvb-theme-sparkle::backdrop { background: rgba(6, 4, 12, 0.74); }
.bvb-modal .bvb { padding: 18px 14px 16px; }
@media (min-width: 700px) { .bvb-modal .bvb { padding: 24px; } }
.bvb-close {
    position: absolute; top: 10px; inset-inline-end: 10px; z-index: 3; width: 44px; height: 44px;
    display: grid; place-items: center; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--bvb-edge); background: var(--bvb-card); color: var(--bvb-ink);
}
html.bvb-lock { overflow: hidden; }
@media (forced-colors: active) {
    .bvb-line { stroke: CanvasText; }
    .bvb-line--hero { stroke: Highlight; }
}
