/* Shared components. OWNER: T0-foundation. Ported from backcom.io production CSS (bc-* rules verbatim where they exist,
   Tailwind utility markup re-expressed as semantic classes). Live catalogue: /styleguide.
   Sections: 1 primitives (glass, lens, press/cta, fx)  2 buttons  3 chips/badges/pills  4 cards  5 forms & range
   6 accordion/FAQ  7 tabs  8 breadcrumbs  9 tables  10 section heading  11 rating  12 broker tiles  13 copy rows
   14 toast  15 header  16 mega menu  17 language/theme  18 drawer  19 promo bar  20 disclaimer  21 footer
   22 support/back-to-top  23 risk bar  24 cookie consent  25 app header  26 404 */

/* ============ 1. primitives ============ */
.bc-glass {
  isolation: isolate;
  background: linear-gradient(180deg, #fff1, #ffffff06), color-mix(in srgb, var(--color-page) 72%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid #ffffff17; box-shadow: inset 0 1px #ffffff1a, inset 0 -1px #ffffff05, 0 24px 60px -24px #000000bf;
}
html[data-theme=light] .bc-glass { background: linear-gradient(#fdfcfac7, #f4f3ee99); border-color: #12111014; box-shadow: inset 0 1px #ffffffe6, 0 18px 48px -24px #12111040; }
.bc-lens { background: linear-gradient(#ffffff0e, #ffffff05); box-shadow: inset 0 1px #ffffff1a, inset 0 0 0 1px #fff1; }
html[data-theme=light] .bc-lens { background: linear-gradient(#ffffffbf, #ffffff73); box-shadow: inset 0 1px #fff, inset 0 0 0 1px #12111012; }
.bc-glass-menu {
  background: radial-gradient(120% 70% at 0% 0%, #ffffff17, transparent 46%), radial-gradient(80% 60% at 100% 100%, color-mix(in srgb, var(--color-accent) 7%, transparent), transparent 62%), linear-gradient(180deg, #ffffff0f, #ffffff03 42%), color-mix(in srgb, var(--color-page) 62%, transparent);
  -webkit-backdrop-filter: blur(28px) saturate(185%) brightness(1.04); backdrop-filter: blur(28px) saturate(185%) brightness(1.04);
  border: 1px solid #ffffff1f;
  box-shadow: inset 0 1px #ffffff38, inset 1px 0 #ffffff0d, inset -1px 0 #ffffff08, inset 0 -1px #ffffff0a, 0 2px 6px #00000038, 0 30px 70px -24px #000000c7;
}
.bc-glass-menu--drawer { background: radial-gradient(120% 40% at 0% 0%, #ffffff14, transparent 50%), linear-gradient(180deg, #ffffff0d, #ffffff03 30%), color-mix(in srgb, var(--color-page) 84%, transparent); }
html[data-theme=light] .bc-glass-menu { background: radial-gradient(120% 70% at 0% 0%, #ffffffd9, transparent 50%), radial-gradient(80% 60% at 100% 100%, color-mix(in srgb, var(--color-accent) 8%, transparent), transparent 62%), linear-gradient(180deg, #ffffffb8, #f8f7f399); border-color: #ffffffbf; box-shadow: inset 0 1px #fff, 0 0 0 1px #12111012, 0 2px 6px #1211100f, 0 24px 56px -22px #12111052; }
html[data-theme=light] .bc-glass-menu--drawer { background: linear-gradient(#ffffffe6, #f8f7f3d6); }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .bc-glass-menu, .bc-glass-menu--drawer, .bc-glass-bar::before { background: var(--color-surface-2); } }
@media (prefers-reduced-transparency: reduce) { .bc-glass, .bc-glass-bar::before, .bc-glass-menu, .bc-glass-menu--drawer { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--color-surface-2); } }

.bc-press { transition-property: box-shadow, transform, filter, color, background-color, border-color, opacity; transition-duration: var(--bc-dur-hover), var(--bc-dur-settle), .15s, .15s, .15s, .15s, .15s; transition-timing-function: var(--bc-ease-enter), var(--bc-ease-spring), var(--bc-ease-std), var(--bc-ease-std), var(--bc-ease-std), var(--bc-ease-std), var(--bc-ease-std); }
.bc-press:active { transition-duration: var(--bc-dur-hover), var(--bc-dur-press), .15s, .15s, .15s, .15s, .15s; transition-timing-function: var(--bc-ease-enter), var(--bc-ease-enter), var(--bc-ease-std), var(--bc-ease-std), var(--bc-ease-std), var(--bc-ease-std), var(--bc-ease-std); transform: scale(.98); }
.bc-cta { box-shadow: inset 0 0 0 1px var(--color-cta-edge); transition-property: box-shadow, transform, filter, color, background-color, border-color, opacity; transition-duration: var(--bc-dur-hover), var(--bc-dur-settle), .15s, .15s, .15s, .15s, .15s; transition-timing-function: var(--bc-ease-enter), var(--bc-ease-spring), var(--bc-ease-std), var(--bc-ease-std), var(--bc-ease-std), var(--bc-ease-std), var(--bc-ease-std); }
.bc-cta:hover, .bc-cta:focus-visible { box-shadow: inset 0 0 0 1px var(--color-cta-edge), var(--bc-elev-cta); }
@media (prefers-reduced-motion: no-preference) { .bc-cta:not(.bc-press):active { transition-duration: var(--bc-dur-hover), var(--bc-dur-press); transform: translateY(1px); } }
@media (prefers-reduced-motion: reduce) { .bc-press, .bc-cta { transition-property: box-shadow, filter, color, background-color, border-color, opacity; } .bc-press:active { transform: none; } }

.bc-rise { box-shadow: var(--bc-elev-1); transition: box-shadow var(--bc-dur-hover) var(--bc-ease-enter), transform var(--bc-dur-hover) var(--bc-ease-enter), border-color .15s, background-color .15s, color .15s; }
.bc-rise:hover, .bc-rise:focus-within { box-shadow: var(--bc-elev-2); }
@media (prefers-reduced-motion: no-preference) { .bc-rise:focus-within { transform: translateY(var(--bc-lift)); } }
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) { .bc-rise:hover { transform: translateY(var(--bc-lift)); } }
@media (prefers-reduced-motion: no-preference) { .bc-rise:active { box-shadow: var(--bc-elev-1); transform: translateY(0); transition-duration: var(--bc-dur-press); } }

.bc-logo { display: block; }
html[data-theme=light] img.bc-logo { filter: brightness(.45); }
/* BackComTrader inline lockup (src/layout/logo.mjs): dark = gold mark, light = gold tile + ink glyph; wordmark = currentColor */
.bc-logo-svg { color: var(--color-ink); aspect-ratio: 6.11; width: auto; overflow: visible; }
.bc-logo-svg .lg-l, html[data-theme=light] .bc-logo-svg .lg-d { display: none; }
html[data-theme=light] .bc-logo-svg .lg-l { display: inline; }
.bc-theme-moon, html[data-theme=light] .bc-theme-sun { display: none; }
html[data-theme=light] .bc-theme-moon { display: block; }
.bc-rv-onlight, html[data-theme=light] .bc-rv-ondark { display: none; }
html[data-theme=light] .bc-rv-onlight { display: block; }

/* decorative fx layers (verbatim) */
.bc-fx-layer { z-index: -1; pointer-events: none; border-radius: inherit; contain: layout paint; opacity: var(--bc-fx-veil); position: absolute; inset: 0; overflow: hidden; mask-image: radial-gradient(46% 44% at 50% 46%, #000 0% 18%, #0000 88%); }
.bc-fx-aurora::before, .bc-fx-aurora::after { content: ""; pointer-events: none; position: absolute; inset: -35%; }
.bc-fx-aurora::before { background-image: radial-gradient(closest-side, var(--color-accent-wash), transparent 100%); transform: translate(-14%, -18%); }
.bc-fx-aurora::after { background-image: radial-gradient(closest-side, color-mix(in oklab, var(--color-nav) 15%, transparent), transparent 100%); transform: translate(16%, 10%) scale(.82); }
.bc-fx-rays::before { content: ""; pointer-events: none; position: absolute; inset: 0; background-image: repeating-conic-gradient(from 262deg at 50% -25%, color-mix(in oklab, var(--color-accent) 11%, transparent) 0deg .9deg, transparent .9deg 4.6deg); mask-image: linear-gradient(#000 0%, #0000 78%); }
.bc-fx-dots::before { content: ""; pointer-events: none; position: absolute; inset: 0; background-image: radial-gradient(circle at center, color-mix(in oklab, var(--color-edge-soft) 85%, transparent) .5px, transparent 1.4px); background-size: 22px 22px; mask-image: radial-gradient(125% 92% at 50% 0, #000 0%, #0000 72%); }
.bc-fx-beam { position: relative; }
.bc-fx-beam::after { content: ""; z-index: 1; pointer-events: none; background-image: linear-gradient(to right, transparent, var(--color-accent), var(--color-nav), transparent); opacity: 0; width: 45%; height: 2px; position: absolute; top: 0; left: 0; transform: translate(-100%); }
@media (prefers-reduced-motion: no-preference) {
  .bc-fx-beam::after { transition: transform .76s ease-out, opacity .2s ease-out; }
  .bc-fx-beam:focus-within::after { opacity: 1; transform: translate(222%); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) { .bc-fx-beam:hover::after { opacity: 1; transform: translate(222%); } }
.bc-fx-ring { border-color: transparent; background-image: linear-gradient(var(--bc-fx-ring-bg, var(--color-surface-1)), var(--bc-fx-ring-bg, var(--color-surface-1))), conic-gradient(from var(--bc-fx-ang), transparent 0deg, color-mix(in oklab, var(--color-accent) calc(var(--bc-fx-ring-op) * 100%), transparent) 52deg, color-mix(in oklab, var(--color-nav) calc(var(--bc-fx-ring-op) * 100%), transparent) 104deg, transparent 156deg, transparent 360deg); background-origin: border-box; background-clip: padding-box, border-box; }
@media (prefers-reduced-motion: no-preference) { .bc-fx-ring { transition: --bc-fx-ang .9s ease-out, color .15s, background-color .15s, border-color .15s; } .bc-fx-ring:hover, .bc-fx-ring:focus-within { --bc-fx-ang: 310deg; } }
.bc-fx-elev { box-shadow: var(--bc-elev-2); } .bc-fx-elev-1 { box-shadow: var(--bc-elev-1); }
.bc-ambient { background: radial-gradient(38rem 26rem at 8% -6%, #ffc72c17, #0000 70%), radial-gradient(34rem 24rem at 96% 4%, #ffdf850f, #0000 70%), radial-gradient(40rem 30rem at 60% 110%, #ffc72c0d, #0000 70%); }
.bc-hero-glow { background: radial-gradient(60rem 28rem at 18% -10%, #ffc72c1a, #0000 70%), radial-gradient(48rem 26rem at 88% 10%, #ffdf850f, #0000 70%); }
html[data-theme=light] .bc-hero-glow { background: radial-gradient(60rem 28rem at 18% -10%, #ffc72c24, #0000 70%), radial-gradient(48rem 26rem at 88% 10%, #ffdf851a, #0000 70%); }
.bc-hero-band { background: radial-gradient(55% 60% at 8% 78%, #ffc72c21, #0000 70%), linear-gradient(118deg, #0000 38%, #ffc72c12 52%, #ffdf850d 60%, #0000 72%), radial-gradient(40% 45% at 92% 30%, #ffdf850f, #0000 70%); }
html[data-theme=light] .bc-hero-band { background: radial-gradient(55% 60% at 8% 78%, #ffc72c2e, #0000 70%), linear-gradient(118deg, #0000 38%, #ffc72c1a 52%, #ffdf8514 60%, #0000 72%); }
.bc-hero-dots { background-image: radial-gradient(#ffffff12 1px, #0000 1.3px); background-size: 22px 22px; mask-image: linear-gradient(#000 0% 55%, #0000 100%); }
html[data-theme=light] .bc-hero-dots { background-image: radial-gradient(#1211101a 1px, #0000 1.3px); }
.bc-dots { background-image: radial-gradient(#ffc72c21 1px, #0000 1.4px); background-size: 22px 22px; mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, #0000 75%); }
.bc-dots-even { background-image: radial-gradient(#ffffff12 1px, #0000 1.3px); background-size: 18px 18px; }
html[data-theme=light] .bc-dots-even { background-image: radial-gradient(#1211101a 1px, #0000 1.3px); }
.bc-page-band { mask-image: linear-gradient(#000 0% 45%, #0000 100%); }
.bc-grad-text { color: transparent; background-image: var(--bc-grad-text); background-position: 0%; background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; }
html[data-theme=light] .bc-grad-text { background-image: var(--bc-grad-text); }
@media (prefers-reduced-motion: no-preference) { .bc-grad-text { animation: 8s ease-in-out infinite alternate bc-grad-pan; } .bc-row-in { animation: bc-row-in .52s var(--ease-out-expo) both; } .bc-reveal { animation: bc-reveal .76s var(--ease-out-expo) both; animation-delay: var(--d, 0s); } }
.bc-spot { isolation: isolate; position: relative; }
.bc-spot::before { content: ""; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(340px circle at var(--fx-x, 50%) var(--fx-y, 0%), #ffc72c17, transparent 72%); position: absolute; inset: 0; transition: opacity .32s; }
html[data-theme=light] .bc-spot::before { background: radial-gradient(340px circle at var(--fx-x, 50%) var(--fx-y, 0%), #805b0014, transparent 72%); }
@media (hover: hover) { .bc-spot:hover::before { opacity: 1; } }
.bc-spot:focus-within::before { opacity: 1; }
.bc-arrow { width: 1em; height: 1em; flex-shrink: 0; }
html[dir=rtl] .bc-arrow { transform: scaleX(-1); }

/* ============ 2. buttons ============ */
/* .bc-btn + modifier. Sizes: default h-12 (hero), --md h-11, --sm h-9. Shapes: pill default, --square radius-xl. */
.bc-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 3rem; padding-inline: 1.5rem; border-radius: 999px; font-size: var(--text-small); line-height: var(--text-small--line-height); font-weight: 600; white-space: nowrap; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s, box-shadow var(--bc-dur-hover) var(--bc-ease-enter), transform var(--bc-dur-settle) var(--bc-ease-spring), filter .15s; }
.bc-btn:active { transform: scale(.98); transition-duration: .15s, .15s, .15s, var(--bc-dur-hover), var(--bc-dur-press); }
.bc-btn--md { height: 2.75rem; padding-inline: 1.25rem; }
.bc-btn--sm { height: 2.25rem; padding-inline: .875rem; font-size: var(--text-caption); }
.bc-btn--square { border-radius: var(--radius-xl); }
.bc-btn--block { display: flex; width: 100%; }
.bc-btn--cta { background: var(--color-cta); color: var(--color-cta-ink); box-shadow: inset 0 0 0 1px var(--color-cta-edge); }
.bc-btn--cta:hover, .bc-btn--cta:focus-visible { box-shadow: inset 0 0 0 1px var(--color-cta-edge), var(--bc-elev-cta); }
.bc-btn--grad { background: linear-gradient(100deg, var(--color-brand-lime) 40%, var(--color-brand-mint)); color: var(--color-cta-ink); box-shadow: 0 10px 30px -12px #ffc72c99; }
.bc-btn--grad:hover { filter: brightness(1.05); }
.bc-btn--outline { border-color: var(--color-edge-soft); color: var(--color-ink-2); background: transparent; }
.bc-btn--outline:hover { border-color: var(--color-accent-edge); color: var(--color-ink); }
.bc-btn--ghost { color: var(--color-ink-3); background: transparent; }
.bc-btn--ghost:hover { color: var(--color-ink); background: color-mix(in srgb, var(--color-ink) 7%, transparent); }
.bc-btn--surface { background: var(--color-surface-2); border-color: var(--color-hairline); color: var(--color-ink); }
.bc-btn--surface:hover { border-color: var(--color-accent-edge); }
.bc-btn--solid { background: var(--color-ink); color: var(--color-page); }
.bc-btn--solid:hover { background: var(--color-ink-2); }
.bc-btn[disabled], .bc-btn[aria-disabled=true] { opacity: .5; pointer-events: none; }
.bc-icon-btn { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; flex-shrink: 0; border-radius: var(--radius-lg); color: var(--color-ink-3); transition: color .15s, background-color .15s, border-color .15s; }
.bc-icon-btn:hover { background: var(--color-surface-2); color: var(--color-accent); }
.bc-icon-btn--line { border: 1px solid var(--color-edge); }
.bc-icon-btn--line:hover { border-color: var(--color-accent-edge); }

/* ============ 3. chips, badges, pills ============ */
.bc-chip { display: inline-flex; align-items: center; gap: .5rem; height: 2.5rem; padding-inline: 1rem; border-radius: 999px; border: 1px solid var(--color-hairline); font-size: var(--text-small); font-weight: 500; color: var(--color-ink-3); cursor: pointer; transition: color .15s, border-color .15s, background .15s;
  background: linear-gradient(180deg, color-mix(in srgb, var(--color-ink) 7%, transparent), color-mix(in srgb, var(--color-ink) 3%, transparent)); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-ink) 13%, transparent), inset 0 -1px 0 #00000038; }
@media (hover: hover) { .bc-chip:hover { color: var(--color-ink); background: color-mix(in srgb, var(--color-ink) 7%, transparent); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-ink) 14%, transparent), inset 0 -1px 0 #0000002e; } }
.bc-chip-on, .bc-chip[aria-pressed=true], .bc-chip[aria-selected=true] { color: var(--color-ink); border-color: color-mix(in srgb, var(--color-brand-lime) 55%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--color-brand-lime) 24%, transparent), color-mix(in srgb, var(--color-brand-mint) 11%, transparent)); box-shadow: inset 0 1px 0 #ffffff29, 0 0 0 1px color-mix(in srgb, var(--color-brand-lime) 12%, transparent), 0 2px 10px color-mix(in srgb, var(--color-brand-lime) 10%, transparent); }
html[data-theme=light] .bc-chip { background: #ffffff8c; box-shadow: inset 0 1px #fffc, inset 0 -1px #00000012; }
html[data-theme=light] .bc-chip-on, html[data-theme=light] .bc-chip[aria-pressed=true], html[data-theme=light] .bc-chip[aria-selected=true] { border-color: var(--color-accent-edge); background: linear-gradient(135deg, color-mix(in srgb, var(--color-brand-lime) 38%, transparent), color-mix(in srgb, var(--color-brand-mint) 22%, transparent)); box-shadow: inset 0 1px #ffffffb3; }
.bc-chip--sm { height: 2rem; padding-inline: .75rem; font-size: var(--text-caption); }
.bc-chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.bc-pill { display: inline-flex; align-items: center; gap: .375rem; height: 2rem; padding-inline: .75rem; border-radius: 999px; border: 1px solid var(--color-hairline); background: var(--color-surface-1); font-size: var(--text-caption); color: var(--color-ink-2); }
a.bc-pill:hover { border-color: var(--color-edge-soft); color: var(--color-ink); }
.bc-badge { display: inline-flex; align-items: center; gap: .25rem; padding: 1px .375rem; border-radius: var(--radius-md); font-size: var(--text-micro); line-height: var(--text-micro--line-height); font-weight: 600; font-style: normal; white-space: nowrap; background: var(--color-surface-3); color: var(--color-ink-3); }
.bc-badge--accent { background: var(--color-accent-soft); color: var(--color-accent); }
.bc-badge--nav { background: var(--color-nav-soft); color: var(--color-nav); }
.bc-badge--warn { background: var(--color-warn-soft); color: var(--color-warn); box-shadow: inset 0 0 0 1px var(--color-warn-edge); }
.bc-badge--down { background: color-mix(in srgb, var(--color-down) 14%, transparent); color: var(--color-down); }
.bc-badge--outline { background: transparent; box-shadow: inset 0 0 0 1px var(--color-edge-soft); }
.bc-badge--mono { font-family: var(--font-mono); font-weight: 500; border-radius: 999px; padding: 2px .5rem; background: transparent; box-shadow: inset 0 0 0 1px var(--color-hairline); color: var(--color-ink-3); }
.bc-dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--color-accent); }
.bc-dot--live { background: var(--color-open); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-open) 22%, transparent); }

/* ============ 4. cards ============ */
.bc-card { position: relative; border: 1px solid var(--color-hairline); background: var(--color-surface-1); border-radius: var(--radius-2xl); padding: 1.25rem; }
@media (min-width: 40rem) { .bc-card { padding: 1.5rem; } }
.bc-card--lg { border-radius: 28px; }
.bc-card--2 { background: var(--color-surface-2); }
.bc-card--glass { background: linear-gradient(#ffffff0e, #ffffff05); box-shadow: inset 0 1px #ffffff1a, inset 0 0 0 1px #fff1; border-color: transparent; }
html[data-theme=light] .bc-card--glass { background: linear-gradient(#ffffffbf, #ffffff73); box-shadow: inset 0 1px #fff, inset 0 0 0 1px #12111012; }
a.bc-card, .bc-card--link { transition: border-color .15s, box-shadow var(--bc-dur-hover) var(--bc-ease-enter), transform var(--bc-dur-hover) var(--bc-ease-enter); }
a.bc-card:hover, .bc-card--link:hover { border-color: var(--color-accent-edge); }
.bc-card-ic { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex-shrink: 0; border-radius: var(--radius-xl); background: var(--color-accent-soft); color: var(--color-accent); }
.bc-card-title { font-size: var(--text-title); line-height: var(--text-title--line-height); letter-spacing: var(--text-title--letter-spacing); font-weight: 600; color: var(--color-ink); }
.bc-card-text { font-size: var(--text-small); line-height: var(--text-small--line-height); color: var(--color-ink-4); }
.bc-stat dt { font-size: var(--text-micro); line-height: 1.375; font-weight: 500; letter-spacing: .025em; text-transform: uppercase; color: var(--color-ink-dim); }
.bc-stat dd { font-size: var(--text-h3); line-height: var(--text-h3--line-height); letter-spacing: var(--text-h3--letter-spacing); font-weight: 600; color: var(--color-ink); font-variant-numeric: tabular-nums; }

/* ============ 5. forms & range ============ */
.bc-field { display: grid; gap: .375rem; }
.bc-label { font-size: var(--text-caption); font-weight: 600; color: var(--color-ink-3); }
.bc-help { font-size: var(--text-caption); color: var(--color-ink-dim); }
.bc-input, .bc-select, .bc-textarea { width: 100%; min-height: 2.75rem; padding: .625rem .875rem; border-radius: var(--radius-xl); border: 1px solid var(--color-hairline); background: var(--color-surface-1); color: var(--color-ink); font-size: var(--text-body); line-height: 1.4; transition: border-color .15s, box-shadow .15s; }
.bc-input::placeholder, .bc-textarea::placeholder { color: var(--color-ink-dim); }
.bc-input:hover, .bc-select:hover, .bc-textarea:hover { border-color: var(--color-edge-soft); }
.bc-input:focus, .bc-select:focus, .bc-textarea:focus { outline: none; border-color: var(--color-accent-edge); box-shadow: 0 0 0 3px var(--color-accent-wash); }
.bc-input[aria-invalid=true] { border-color: var(--color-down); }
.bc-select { appearance: none; padding-right: 2.25rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 12px; }
.bc-textarea { min-height: 7rem; }
.bc-input-group { display: flex; align-items: center; gap: .625rem; padding: .375rem .375rem .375rem 1rem; border-radius: var(--radius-2xl); border: 1px solid var(--color-hairline); background: var(--color-surface-1); }
.bc-input-group:focus-within { border-color: var(--color-accent-edge); }
.bc-input-group input { flex: 1; min-width: 0; background: transparent; color: var(--color-ink); font-size: var(--text-body); }
.bc-input-group input:focus { outline: none; }
.bc-check { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--text-small); color: var(--color-ink-3); cursor: pointer; }
.bc-check input { width: 1.125rem; height: 1.125rem; accent-color: var(--color-cta); }
/* switch: <label class="bc-switch"><input type="checkbox" role="switch"><span class="bc-switch-track"></span></label> */
.bc-switch { position: relative; display: inline-block; flex: none; width: 44px; height: 26px; }
.bc-switch input { position: absolute; inset: 0; z-index: 1; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.bc-switch-track, .bc-ck-track { position: absolute; inset: 0; border-radius: 999px; background: var(--color-inert); box-shadow: inset 0 0 0 1px var(--color-edge); transition: background-color .16s, box-shadow .16s; }
.bc-switch-track::after, .bc-ck-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--color-ink-4); box-shadow: 0 1px 2px #0000004d; transition: translate .22s cubic-bezier(.16, 1, .3, 1), background-color .16s; }
html[data-theme=light] .bc-switch-track::after, html[data-theme=light] .bc-ck-track::after { background: var(--color-surface-2); }
.bc-switch input:checked + .bc-switch-track, .bc-ck-switch input:checked + .bc-ck-track { background: var(--color-cta); box-shadow: inset 0 0 0 1px var(--color-cta-edge); }
.bc-switch input:checked + .bc-switch-track::after, .bc-ck-switch input:checked + .bc-ck-track::after { background: var(--color-cta-ink); translate: 18px; }
.bc-switch input:focus-visible + .bc-switch-track, .bc-ck-switch input:focus-visible + .bc-ck-track { outline: 2px solid var(--color-focus); outline-offset: 2px; }
/* segmented control */
.bc-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--color-hairline); background: var(--color-surface-1); }
.bc-seg button, .bc-seg a { height: 2rem; padding-inline: .875rem; border-radius: 999px; font-size: var(--text-caption); font-weight: 600; color: var(--color-ink-4); transition: color .15s, background .15s; }
.bc-seg button:hover, .bc-seg a:hover { color: var(--color-ink); }
.bc-seg [aria-pressed=true], .bc-seg [aria-selected=true], .bc-seg .is-on { background: var(--color-ink); color: var(--color-page); }
/* range slider (verbatim .bc-range). Set --p (0-100%) for the filled part; core.js updates it for [data-bc-range]. */
.bc-range { appearance: none; cursor: pointer; background: 0 0; width: 100%; height: 28px; }
.bc-range::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--color-brand-lime), var(--color-brand-mint)) 0 / var(--p, 0%) 100% no-repeat, color-mix(in srgb, var(--color-ink) 11%, transparent); border: 1px solid color-mix(in srgb, var(--color-ink) 20%, transparent); height: 10px; box-shadow: inset 0 1px 2px #00000059, inset 0 -1px 0 color-mix(in srgb, var(--color-ink) 14%, transparent); border-radius: 999px; }
.bc-range::-moz-range-track { background: color-mix(in srgb, var(--color-ink) 7%, transparent); border: 1px solid color-mix(in srgb, var(--color-ink) 14%, transparent); border-radius: 999px; height: 10px; box-shadow: inset 0 1px 2px #0000004d; }
.bc-range::-moz-range-progress { background: linear-gradient(90deg, var(--color-brand-lime), var(--color-brand-mint)); border-radius: 999px; height: 10px; }
.bc-range::-webkit-slider-thumb { appearance: none; background: radial-gradient(circle at 32% 26%, #ffffffb3, transparent 52%), linear-gradient(145deg, var(--color-brand-lime), var(--color-brand-mint)); width: 22px; height: 22px; box-shadow: 0 2px 7px #00000073, 0 0 0 5px color-mix(in srgb, var(--color-brand-lime) 14%, transparent), inset 0 -2px 3px #00000038; border: 1px solid #ffffff8c; border-radius: 50%; margin-top: -7px; }
.bc-range::-moz-range-thumb { background: radial-gradient(circle at 32% 26%, #ffffffb3, transparent 52%), linear-gradient(145deg, var(--color-brand-lime), var(--color-brand-mint)); width: 20px; height: 20px; box-shadow: 0 2px 7px #00000073, 0 0 0 5px color-mix(in srgb, var(--color-brand-lime) 14%, transparent); border: 1px solid #ffffff8c; border-radius: 50%; }
.bc-range:focus { outline: none; }
.bc-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--color-page), 0 0 0 5px var(--color-focus); }
.bc-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--color-page), 0 0 0 5px var(--color-focus); }
@media (prefers-reduced-motion: no-preference) { .bc-range::-webkit-slider-thumb { transition: box-shadow .18s, transform .18s; } }
@media (hover: hover) { .bc-range:hover::-webkit-slider-thumb { box-shadow: 0 3px 10px #00000080, 0 0 0 8px color-mix(in srgb, var(--color-brand-lime) 20%, transparent), inset 0 -2px 3px #00000038; } }
.bc-range:active::-webkit-slider-thumb { transform: scale(.94); }
html[data-theme=light] .bc-range::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--color-brand-lime), var(--color-brand-mint)) 0 / var(--p, 0%) 100% no-repeat, color-mix(in srgb, var(--color-ink) 10%, transparent); border-color: color-mix(in srgb, var(--color-ink) 18%, transparent); box-shadow: inset 0 1px 2px #00000024; }
html[data-theme=light] .bc-range::-moz-range-track { background: linear-gradient(90deg, var(--color-brand-lime), var(--color-brand-mint)) 0 / var(--p, 0%) 100% no-repeat, color-mix(in srgb, var(--color-ink) 10%, transparent); border-color: color-mix(in srgb, var(--color-ink) 18%, transparent); box-shadow: inset 0 1px 2px #00000024; }

/* ============ 6. accordion / FAQ (native <details class="bc-faq-item">) ============ */
.bc-faq { border-top: 1px solid var(--color-hairline); }
.bc-faq-item { border-bottom: 1px solid var(--color-hairline); }
.bc-faq-item > summary { display: flex; align-items: center; gap: 1.5rem; padding-block: 1.5rem; cursor: pointer; list-style: none; }
.bc-faq-item > summary::-webkit-details-marker { display: none; }
.bc-faq-num { width: 2rem; flex-shrink: 0; font-size: var(--text-caption); color: var(--color-ink-dim); font-variant-numeric: tabular-nums; }
.bc-faq-item[open] .bc-faq-num { color: var(--color-ink); }
.bc-faq-q { flex: 1; min-width: 0; font-size: var(--text-title); line-height: var(--text-title--line-height); letter-spacing: var(--text-title--letter-spacing); font-weight: 600; color: var(--color-ink); }
.bc-faq-ic { display: grid; place-items: center; width: 2rem; height: 2rem; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--color-hairline); background: var(--color-surface-1); color: var(--color-ink-3); transition: background-color .15s, color .15s; }
.bc-faq-ic svg { transition: transform .15s; }
.bc-faq-item[open] .bc-faq-ic { background: var(--color-ink); color: var(--color-page); }
.bc-faq-item[open] .bc-faq-ic svg { transform: rotate(180deg); }
.bc-faq-a { padding: 0 0 1.75rem 3.5rem; font-size: var(--text-small); line-height: 1.625; color: var(--color-ink-3); }
@media (min-width: 40rem) { .bc-faq-a { padding-right: 3rem; } }
.bc-faq-a a { color: var(--color-accent); text-decoration: underline; }
.bc-faq-a p + p { margin-top: .5rem; }
@media (prefers-reduced-motion: no-preference) { .bc-faq-item[open] > .bc-faq-a { animation: bc-row-in .3s var(--ease-out-expo) both; } }
/* compact card-style accordion */
.bc-acc { border: 1px solid var(--color-hairline); border-radius: var(--radius-2xl); background: var(--color-surface-1); overflow: hidden; }
.bc-acc + .bc-acc { margin-top: .5rem; }
.bc-acc > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; cursor: pointer; list-style: none; font-weight: 600; color: var(--color-ink); }
.bc-acc > summary::-webkit-details-marker { display: none; }
.bc-acc > summary .bc-chev { transition: transform .15s; color: var(--color-ink-dim); }
.bc-acc[open] > summary .bc-chev { transform: rotate(180deg); }
.bc-acc-body { padding: 0 1.25rem 1.25rem; color: var(--color-ink-3); font-size: var(--text-small); line-height: 1.625; }

/* ============ 7. tabs ([data-bc-tabs] handled by core.js) ============ */
.bc-tabs-list { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--color-hairline); }
.bc-tabs-list::-webkit-scrollbar { display: none; }
.bc-tab { position: relative; flex-shrink: 0; height: 2.75rem; padding-inline: 1rem; font-size: var(--text-small); font-weight: 600; color: var(--color-ink-4); white-space: nowrap; transition: color .15s; }
.bc-tab:hover { color: var(--color-ink); }
.bc-tab[aria-selected=true] { color: var(--color-ink); }
.bc-tab[aria-selected=true]::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--color-brand-lime), var(--color-brand-mint)); }
html[data-theme=light] .bc-tab[aria-selected=true]::after { background: linear-gradient(90deg, var(--color-accent-edge), var(--color-accent)); } /* pale gold fails 3:1 on light */
.bc-tabs--pill .bc-tabs-list { border: 1px solid var(--color-hairline); border-radius: 999px; padding: 3px; background: var(--color-surface-1); width: max-content; max-width: 100%; }
.bc-tabs--pill .bc-tab { height: 2.25rem; border-radius: 999px; }
.bc-tabs--pill .bc-tab[aria-selected=true] { background: var(--color-ink); color: var(--color-page); }
.bc-tabs--pill .bc-tab[aria-selected=true]::after { display: none; }
.bc-tab-panel { padding-top: 1.25rem; }
.bc-tab-panel[hidden] { display: none; }

/* ============ 8. breadcrumbs ============ */
.bc-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; font-size: var(--text-caption); color: var(--color-ink-dim); }
.bc-crumbs a { color: var(--color-ink-4); transition: color .15s; }
.bc-crumbs a:hover { color: var(--color-accent); }
.bc-crumbs li { display: inline-flex; align-items: center; gap: .375rem; }
.bc-crumbs li + li::before { content: ""; width: 12px; height: 12px; background: currentColor; opacity: .6; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat; }
.bc-crumbs [aria-current=page] { color: var(--color-ink-2); }

/* ============ 9. tables ============ */
.bc-table-wrap { overflow-x: auto; border: 1px solid var(--color-hairline); border-radius: var(--radius-2xl); background: var(--color-surface-1); }
.bc-table { width: 100%; font-size: var(--text-small); border-collapse: collapse; }
.bc-table th { text-align: left; font-size: var(--text-micro); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--color-ink-dim); padding: .875rem 1rem; background: var(--color-surface-2); white-space: nowrap; }
.bc-table td { padding: .875rem 1rem; border-top: 1px solid var(--color-hairline); color: var(--color-ink-3); vertical-align: middle; }
.bc-table tbody tr { transition: background-color .15s; }
.bc-table tbody tr:hover { background: color-mix(in srgb, var(--color-ink) 3%, transparent); }
.bc-table .is-num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); color: var(--color-ink); }
.bc-table .is-strong { color: var(--color-ink); font-weight: 600; }

/* ============ 10. section heading ============ */
.bc-sh { max-width: 48rem; }
.bc-sh--center { margin-inline: auto; text-align: center; }
.bc-sh-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--text-micro); line-height: var(--text-micro--line-height); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent); }
.bc-sh-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.bc-sh-title { margin-top: .75rem; color: var(--color-ink); font-size: var(--text-h2); line-height: var(--text-h2--line-height); letter-spacing: var(--text-h2--letter-spacing); font-weight: 600; }
.bc-sh-sub { margin-top: 1rem; color: var(--color-ink-4); font-size: var(--text-body); line-height: 1.625; }
@media (min-width: 40rem) { .bc-sh-sub { font-size: var(--text-lead); } }

/* ============ 11. rating stars (<span class="bc-stars" style="--v:4.6">) ============ */
.bc-stars { --v: 5; --size: 16px; display: inline-block; width: calc(var(--size) * 5); height: var(--size); background: linear-gradient(90deg, var(--color-mark) calc(var(--v) / 5 * 100%), var(--color-rating-track) 0); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5-4.8-4.6 6.6-.9z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x; vertical-align: middle; }
.bc-rating { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--text-small); color: var(--color-ink-3); }
.bc-rating b { color: var(--color-ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ============ 12. broker / exchange logo tiles ============ */
.bc-logo-tile { display: inline-grid; place-items: center; width: var(--s, 40px); height: var(--s, 40px); flex-shrink: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface-2); box-shadow: inset 0 0 0 1px var(--color-hairline); }
.bc-logo-tile img { width: 100%; height: 100%; object-fit: cover; }
.bc-logo-tile--round { border-radius: 50%; }
.bc-broker-chip { display: inline-flex; align-items: center; gap: .5rem; height: 2.5rem; padding: 0 1rem 0 .375rem; border-radius: 999px; border: 1px solid var(--color-hairline); background: var(--color-surface-1); font-size: var(--text-small); font-weight: 600; color: var(--color-ink-2); transition: border-color .15s, color .15s; }
.bc-broker-chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.bc-broker-chip:hover, .bc-broker-chip.is-on { border-color: var(--color-accent-edge); color: var(--color-ink); }
.bc-broker-row { display: flex; align-items: center; gap: .75rem; padding-block: .75rem; border-top: 1px solid var(--color-hairline); }
.bc-broker-row img { width: 36px; height: 36px; border-radius: var(--radius-lg); object-fit: cover; box-shadow: 0 0 0 1px var(--color-hairline); }
.bc-broker-row-name { flex: 1; font-size: var(--text-small); font-weight: 600; color: var(--color-ink); }
a.bc-broker-row:hover .bc-broker-row-name { color: var(--color-accent); }
.bc-broker-row-val { font-size: var(--text-caption); color: var(--color-ink-4); }
.bc-broker-row-val b { color: var(--color-accent); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ============ 13. copy rows (partner codes) — verbatim .bc-cf ============ */
.bc-cf { gap: 6px; margin-top: 10px; display: grid; }
.bc-cf-row { border: 1px solid var(--color-hairline); background: var(--color-page); border-radius: 12px; grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 7px 7px 7px 12px; display: grid; }
.bc-cf-lbl { color: var(--color-ink-4); white-space: nowrap; font-size: 12px; }
.bc-cf-val { min-width: 0; font-family: var(--font-mono); color: var(--color-ink); overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; }
.bc-cf-val a { color: var(--color-accent); text-underline-offset: 2px; text-decoration: underline; }
.bc-cf-sub { color: var(--color-ink-3); padding: 2px; font-size: 13px; line-height: 1.5; }
.bc-cf-copy { border: 1px solid var(--color-hairline); background: var(--color-surface-1); width: 32px; height: 32px; color: var(--color-ink-3); cursor: pointer; border-radius: 9px; place-items: center; transition: color .2s, border-color .2s; display: grid; }
.bc-cf-copy:hover { color: var(--color-accent); border-color: var(--color-accent-edge); }
.bc-cf-copy .bc-cf-ok { display: none; }
.bc-cf-copy.is-done { color: var(--color-accent); border-color: var(--color-accent-edge); }
.bc-cf-copy.is-done .bc-cf-ic { display: none; }
.bc-cf-copy.is-done .bc-cf-ok { display: block; }
@media (max-width: 480px) { .bc-cf-row { grid-template-columns: minmax(0, 1fr) auto; } .bc-cf-lbl { grid-column: 1 / -1; } }

/* ============ 14. toast (core.js: BC.toast(msg, {type})) ============ */
.bc-toasts { position: fixed; z-index: 100004; left: 50%; bottom: calc(1.25rem + var(--bc-rb-h, 0px)); transform: translateX(-50%); display: grid; gap: .5rem; width: max-content; max-width: calc(100vw - 2rem); pointer-events: none; }
.bc-toast { pointer-events: auto; display: flex; align-items: center; gap: .625rem; padding: .75rem 1rem; border-radius: var(--radius-xl); font-size: var(--text-small); font-weight: 500; color: var(--color-ink); background: color-mix(in srgb, var(--color-surface-2) 92%, transparent); border: 1px solid var(--color-hairline); box-shadow: 0 18px 40px -16px var(--color-shade-glow); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); animation: bc-toast-in .28s var(--bc-ease-enter) both; }
.bc-toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); flex-shrink: 0; }
.bc-toast--error::before { background: var(--color-down); }
.bc-toast--warn::before { background: var(--color-warn); }
.bc-toast.is-out { animation: bc-toast-out .2s ease-in both; }
@keyframes bc-toast-in { from { opacity: 0; translate: 0 12px; scale: .98; } }
@keyframes bc-toast-out { to { opacity: 0; translate: 0 8px; } }

/* ============ 15. header ============ */
.bc-header-veil { position: sticky; top: .5rem; z-index: 40; margin: .5rem .5rem 0; height: 4rem; }
.bc-header-veil::before { content: ""; z-index: -1; background: linear-gradient(180deg, var(--color-page) 55%, transparent); pointer-events: none; position: absolute; inset: -.75rem -.5rem 30%; }
@media (min-width: 40rem) { .bc-header-veil { margin: .75rem .75rem 0; top: .75rem; } .bc-header-veil::before { inset: -.75rem -.75rem 30%; } }
.bc-glass-bar { position: relative; isolation: isolate; margin-inline: auto; display: flex; height: 4rem; width: 100%; max-width: 1280px; align-items: center; gap: .5rem; border-radius: 1rem; padding-inline: .75rem; }
@media (min-width: 40rem) { .bc-glass-bar { padding-inline: 1.25rem; } }
@media (min-width: 80rem) { .bc-glass-bar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; } }
.bc-glass-bar::before { content: ""; z-index: -1; border-radius: inherit; pointer-events: none; position: absolute; inset: 0; background: linear-gradient(180deg, #ffffff13, #ffffff05), color-mix(in srgb, var(--color-page) 70%, transparent); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); border: 1px solid #ffffff1a; box-shadow: inset 0 1px #ffffff29, inset 0 -1px #ffffff08, 0 24px 60px -24px #000000bf; }
html[data-theme=light] .bc-glass-bar::before { background: linear-gradient(#fdfcfacc, #f4f3ee9e); border-color: #12111014; box-shadow: inset 0 1px #fffffff2, 0 18px 48px -24px #12111040; }
.bc-logo-link { display: flex; flex-shrink: 0; align-items: center; border-radius: .25rem; }
@media (min-width: 80rem) { .bc-logo-link { justify-self: start; } }
.bc-logo-link .bc-logo { height: 22px; width: 165px; max-width: 132px; object-fit: contain; object-position: left; }
@media (min-width: 440px) { .bc-logo-link .bc-logo { max-width: 150px; } }
@media (min-width: 40rem) { .bc-logo-link .bc-logo { max-width: none; } }
.bc-logo-link .bc-logo-svg { height: 22px; width: auto; max-width: none; }
@media (min-width: 440px) { .bc-logo-link .bc-logo-svg { height: 25px; } }
@media (min-width: 40rem) { .bc-logo-link .bc-logo-svg { height: 28px; } }
.bc-nav { display: none; min-width: 0; }
@media (min-width: 64rem) { .bc-nav { display: block; } }
.bc-nav-list { display: flex; align-items: center; gap: .125rem; white-space: nowrap; }
.bc-bar-item { display: flex; height: 2.5rem; align-items: center; gap: .25rem; border-radius: .5rem; padding-inline: .75rem; font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: var(--color-ink-3); cursor: pointer; list-style: none; transition: color .18s, background-color .18s, box-shadow .18s; }
.bc-bar-item::-webkit-details-marker { display: none; }
.bc-bar-item:hover { color: var(--color-accent); }
.bc-bar-item:hover, details[open] > .bc-bar-item { background: #ffffff0e; box-shadow: inset 0 1px #ffffff17, inset 0 0 0 1px #ffffff0d; }
details[open] > .bc-bar-item:not(:hover) { color: var(--color-ink); }
.bc-bar-item[aria-current=page] { color: var(--color-ink); }
html[data-theme=light] .bc-bar-item:hover, html[data-theme=light] details[open] > .bc-bar-item { background: #ffffffb3; box-shadow: inset 0 1px #fff, inset 0 0 0 1px #12111012; }
.bc-chev { flex-shrink: 0; color: var(--color-ink-dim); transition: transform .15s var(--bc-ease-std); }
details[open] > summary > .bc-chev { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .bc-chev { transition: none; } }
.bc-hd-actions { margin-left: auto; display: flex; flex-shrink: 0; align-items: center; gap: .375rem; }
@media (min-width: 40rem) { .bc-hd-actions { gap: .5rem; } }
@media (min-width: 80rem) { .bc-hd-actions { justify-self: end; } }
.bc-hd-theme { display: none; }
@media (min-width: 40rem) { .bc-hd-theme { display: contents; } }
.bc-login { display: flex; height: 2.25rem; align-items: center; justify-content: center; border-radius: var(--radius-xl); background: var(--color-cta); padding-inline: .625rem; font-size: var(--text-xs); line-height: var(--text-xs--line-height); font-weight: 600; white-space: nowrap; color: var(--color-cta-ink); }
.bc-login-t { display: none; }
@media (min-width: 340px) { .bc-login { padding-inline: .75rem; } .bc-login-ic { display: none; } .bc-login-t { display: inline; } }

/* ============ 16. mega menu ============ */
.bc-mega { position: absolute; top: calc(100% + 8px); left: 50%; z-index: 50; transform: translateX(-50%); border-radius: 1rem; padding: .5rem; width: min(720px, calc(100vw - 48px)); white-space: normal; }
@media (prefers-reduced-motion: no-preference) { details[open] > .bc-mega > * { animation: bc-mega-body .24s var(--ease-out-expo) both; } }
@keyframes bc-mega-body { 0% { opacity: 0; translate: 0 -4px; } }
.bc-mega-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: .5rem; }
.bc-mega-list { display: grid; gap: .375rem; }
.bc-mega-list.is-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bc-mega-list.is-stack { gap: .25rem; align-content: start; }
.bc-span2 { grid-column: span 2 / span 2; }
.bc-mi { position: relative; isolation: isolate; display: flex; height: 100%; align-items: center; gap: .875rem; border-radius: .75rem; padding: .625rem .75rem; }
.bc-mi::before { content: ""; z-index: -1; border-radius: inherit; position: absolute; inset: 0; opacity: 0; transition: opacity .22s var(--ease-out-expo); background: linear-gradient(90deg, color-mix(in srgb, var(--color-accent) 10%, transparent), transparent 72%), linear-gradient(180deg, #ffffff12, #ffffff06); box-shadow: inset 0 1px #ffffff1c, inset 0 0 0 1px #ffffff0f; }
html[data-theme=light] .bc-mi::before { background: linear-gradient(90deg, color-mix(in srgb, var(--color-accent) 12%, transparent), transparent 72%), linear-gradient(180deg, #ffffffd9, #ffffff8c); box-shadow: inset 0 1px #fff, inset 0 0 0 1px #12111012, 0 4px 14px -8px #12111040; }
.bc-mi:hover::before, .bc-mi:focus-visible::before { opacity: 1; }
.bc-ni { display: grid; width: 2.5rem; height: 2.5rem; flex-shrink: 0; place-items: center; border-radius: .75rem; color: var(--color-ink-3); transition: color .22s, background .22s, box-shadow .22s; }
.bc-mi:hover .bc-ni, .bc-mi:focus-visible .bc-ni, .bc-mg:hover .bc-ni { color: var(--color-ink); background: linear-gradient(180deg, color-mix(in srgb, var(--color-accent) 16%, transparent), color-mix(in srgb, var(--color-accent) 5%, transparent)); box-shadow: inset 0 1px 0 #ffffff24, 0 0 0 1px var(--color-accent-edge), 0 6px 18px -8px color-mix(in srgb, var(--color-accent) 55%, transparent); }
.bc-mi-body { min-width: 0; flex: 1; }
.bc-mi-title { display: flex; align-items: center; gap: .5rem; font-size: var(--text-small); line-height: var(--text-small--line-height); font-weight: 500; color: var(--color-ink); }
.bc-mi-desc { display: block; font-size: var(--text-caption); line-height: var(--text-caption--line-height); color: var(--color-ink-4); white-space: normal; }
.bc-mi .bc-badge-new, .bc-mg .bc-badge-new { border-radius: var(--radius-md); background: var(--color-accent-soft); padding: 1px .375rem; font-size: var(--text-micro); line-height: var(--text-micro--line-height); font-weight: 600; color: var(--color-accent); font-style: normal; }
.bc-mi-arrow { flex-shrink: 0; opacity: 0; transition: opacity .22s, translate .26s var(--ease-out-expo); color: var(--color-accent); translate: -6px; }
.bc-mi:focus-visible .bc-mi-arrow { opacity: 1; translate: 0; }
@media (hover: hover) and (pointer: fine) { .bc-mi:hover .bc-mi-arrow { opacity: 1; translate: 0; } }
@media (prefers-reduced-motion: reduce) { .bc-mi-arrow { transition: opacity .12s; translate: none; } }
.bc-mg { display: flex; gap: .875rem; border-radius: .75rem; padding: .75rem; }
.bc-mg-body { min-width: 0; flex: 1; }
.bc-mg .bc-mi-desc { margin-top: 0; }
.bc-mg-chips { margin-top: .5rem; display: flex; flex-wrap: wrap; gap: .375rem; }
.bc-mg-chip { display: inline-flex; align-items: center; border-radius: .5rem; padding: .25rem .625rem; font-size: var(--text-caption); line-height: var(--text-caption--line-height); color: var(--color-ink-3); transition: color .15s, background .15s, box-shadow .15s; }
.bc-mg-chip:hover { color: var(--color-accent); }
.bc-sub-link:hover, .bc-sub-link:focus-visible { background: #ffffff0f; box-shadow: inset 0 1px #ffffff17, inset 0 0 0 1px #ffffff0d; }
html[data-theme=light] .bc-sub-link:hover, html[data-theme=light] .bc-sub-link:focus-visible { background: #fffc; box-shadow: inset 0 1px #fff, inset 0 0 0 1px #12111012; }
.bc-subs { border-radius: .75rem; padding: .5rem; }
.bc-sub-head { padding: 0 .5rem .5rem; font-size: var(--text-micro); line-height: var(--text-micro--line-height); font-weight: 600; letter-spacing: .14em; color: var(--color-ink-4); text-transform: uppercase; }
.bc-sub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem; }
.bc-sub-grid .bc-sub-link { display: flex; align-items: center; gap: .5rem; border-radius: .5rem; padding: .375rem .5rem; font-size: var(--text-small); line-height: var(--text-small--line-height); color: var(--color-ink-3); transition: color .15s; }
.bc-sub-grid .bc-sub-link:hover { color: var(--color-ink); }
.bc-sub-grid img { width: 22px; height: 22px; flex-shrink: 0; border-radius: var(--radius-md); object-fit: cover; }
.bc-sub-all { margin-top: .5rem; display: flex; align-items: center; gap: .25rem; padding-inline: .5rem; font-size: var(--text-caption); line-height: var(--text-caption--line-height); font-weight: 600; color: var(--color-accent); }
.bc-sub-all:hover { text-decoration: underline; }
.bc-sub-notice { margin-inline: .25rem; border-radius: .5rem; padding: 1rem; white-space: normal; }
.bc-sub-notice-ic { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: 50%; color: var(--color-ink-3); }
.bc-sub-notice-t { margin-top: .75rem; font-size: var(--text-small); font-weight: 600; color: var(--color-ink); }
.bc-sub-notice-d { margin-top: .25rem; font-size: var(--text-caption); line-height: var(--text-caption--line-height); color: var(--color-ink-4); }
.bc-sub-notice-cta { margin-top: .75rem; display: inline-flex; height: 2.25rem; align-items: center; gap: .375rem; border-radius: .5rem; background: var(--color-cta); padding-inline: .75rem; font-size: var(--text-caption); font-weight: 600; color: var(--color-cta-ink); }
.bc-sub-crypto { display: none; }
:is(.bc-mega[data-active=crypto] .bc-sub-crypto, .bc-mega:not([data-active]):has([data-sub=crypto]:hover) .bc-sub-crypto) { display: block; }
:is(.bc-mega[data-active=crypto] .bc-sub-forex, .bc-mega:not([data-active]):has([data-sub=crypto]:hover) .bc-sub-forex) { display: none; }
.bc-mega[data-active=crypto] [data-sub=crypto] .bc-mi::before, .bc-mega:not([data-active=crypto]) [data-sub=forex] .bc-mi::before { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .bc-sub { animation: bc-sub-in .18s var(--ease-out-expo); } }
@keyframes bc-sub-in { 0% { opacity: 0; translate: 4px; } }

/* ============ 17. language switcher & theme ============ */
.bc-lang { position: relative; display: none; }
@media (min-width: 390px) { .bc-lang { display: block; } }
.bc-lang-sum { display: flex; height: 2.25rem; cursor: pointer; list-style: none; align-items: center; gap: .375rem; border-radius: .5rem; border: 1px solid var(--color-hairline); padding-inline: .625rem; font-size: var(--text-xs); line-height: var(--text-xs--line-height); font-weight: 500; color: var(--color-ink-3); transition: color .15s, border-color .15s; }
.bc-lang-sum::-webkit-details-marker { display: none; }
.bc-lang-sum:hover { border-color: var(--color-accent-edge); color: var(--color-accent); }
.bc-lang-name { display: none; }
@media (min-width: 40rem) { .bc-lang-name { display: inline; } }
@media (min-width: 64rem) { .bc-lang-name { display: none; } }
@media (min-width: 80rem) { .bc-lang-name { display: inline; } }
.bc-flag { display: inline-block; height: .75rem; width: 1rem; flex-shrink: 0; border-radius: 2px; background-size: cover; background-position: center; box-shadow: 0 0 0 1px var(--color-hairline); }
.bc-lang-menu { position: absolute; top: 100%; right: 0; z-index: 50; margin-top: .25rem; width: 10rem; border-radius: .75rem; border: 1px solid var(--color-hairline); background: var(--color-surface-2); padding: .25rem; box-shadow: 0 25px 50px -12px color-mix(in oklab, var(--color-shade) 60%, transparent); }
.bc-lang-opt { display: flex; align-items: center; gap: .5rem; border-radius: .5rem; padding: .375rem .625rem; font-size: .875rem; line-height: 1.25rem; color: var(--color-ink-4); white-space: nowrap; transition: color .15s, background-color .15s; }
.bc-lang-opt:hover { background: var(--color-surface-3); color: var(--color-accent); }
.bc-lang-opt.is-current { background: var(--color-accent-soft); font-weight: 500; color: var(--color-accent); }

/* ============ 18. mobile drawer ============ */
.bc-burger > summary::-webkit-details-marker { display: none; }
@media (min-width: 64rem) { .bc-burger { display: none; } }
.bc-burger-btn { display: flex; width: 2.5rem; height: 2.5rem; cursor: pointer; list-style: none; align-items: center; justify-content: center; border-radius: .5rem; border: 1px solid var(--color-edge); color: var(--color-ink-3); transition: color .15s, border-color .15s; }
.bc-burger-btn:hover { border-color: var(--color-accent-edge); color: var(--color-accent); }
.bc-burger-b { transform-origin: center; transition: transform .15s; }
.bc-burger-c { display: none; transform-origin: center; }
.bc-burger[open] .bc-burger-a { display: none; }
.bc-burger[open] .bc-burger-b { transform: rotate(45deg); }
.bc-burger[open] .bc-burger-c { display: inline; transform: rotate(-45deg); }
.bc-drawer { position: absolute; left: 0; right: 0; top: 4.5rem; max-height: calc(100dvh - 6rem); overflow-y: auto; border-radius: 1rem; padding: .75rem 1rem 1.5rem; }
@media (min-width: 40rem) { .bc-drawer { padding-inline: 1.5rem; } }
@media (prefers-reduced-motion: no-preference) { .bc-burger[open] > .bc-drawer > * { animation: bc-mega-body .24s var(--ease-out-expo) both; } }
.bc-drawer-in { margin-inline: auto; width: 100%; max-width: 1280px; }
.bc-dr-list { display: flex; flex-direction: column; gap: .25rem; }
.bc-dr-item { display: flex; align-items: center; justify-content: space-between; gap: .5rem; border-radius: .5rem; padding: .625rem .75rem; font-size: 15px; font-weight: 500; color: var(--color-ink-2); cursor: pointer; list-style: none; transition: color .15s; }
.bc-dr-item::-webkit-details-marker { display: none; }
.bc-dr-item:hover { color: var(--color-accent); }
.bc-dr-sub { margin: .125rem 0 .25rem; display: flex; flex-direction: column; gap: .125rem; border-left: 1px solid var(--color-hairline); padding-left: .75rem; }
.bc-dr-link { display: block; border-radius: .5rem; padding: .5rem .75rem; transition: color .15s; }
.bc-dr-link-t { display: flex; align-items: center; gap: .5rem; font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: var(--color-ink); }
.bc-dr-link-d { margin-top: .125rem; display: block; font-size: var(--text-xs); line-height: 1.375; color: var(--color-ink-dim); }
.bc-dr-link .bc-badge-new { border-radius: .25rem; background: var(--color-nav-soft); padding: 1px .375rem; font-size: 10px; font-weight: 600; color: var(--color-nav); font-style: normal; }
.bc-dr-group { padding: .5rem .75rem 0; }
.bc-dr-group-t { font-size: 11px; font-weight: 600; letter-spacing: .025em; color: var(--color-ink-dim); text-transform: uppercase; }
.bc-dr-group-d { margin-top: .125rem; font-size: var(--text-xs); line-height: 1.375; color: var(--color-ink-dim); }
.bc-dr-chips { margin: .25rem 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.bc-dr-chip { display: inline-flex; align-items: center; border-radius: .5rem; border: 1px solid var(--color-hairline); padding: .25rem .625rem; font-size: 13px; color: var(--color-ink-3); transition: color .15s, border-color .15s; }
.bc-dr-chip:hover { border-color: var(--color-accent-edge); color: var(--color-accent); }
.bc-drawer-theme { position: absolute; top: .75rem; right: .75rem; border: 1px solid var(--color-edge); }
@media (min-width: 40rem) { .bc-drawer-theme { display: none; } }

/* ============ 19. promo bar (Exness Turbo) — verbatim #ldtb ============ */
.ldtb-off #ldtb { display: none !important; }
#ldtb { z-index: 100000; box-sizing: border-box; color: #121110; background: var(--bc-grad-brand); align-items: center; gap: 8px; min-height: 42px; padding: 9px 46px 9px 16px; font-family: inherit; font-size: 14px; line-height: 1.35; display: flex; position: relative; }
#ldtb *, #ldtb ::before { box-sizing: border-box; }
.ldtb-link { flex-wrap: wrap; flex: 1; justify-content: center; align-items: center; gap: 10px; min-width: 0; font-weight: 600; text-decoration: none; display: flex; color: #121110 !important; }
.ldtb-link:hover .ldtb-go { text-decoration: underline; }
.ldtb-tag { letter-spacing: .02em; color: #ffc72c; white-space: nowrap; background: #121110; border-radius: 999px; flex: none; align-items: center; gap: 6px; padding: 3px 10px; font-weight: 900; display: inline-flex; }
.ldtb-txt b { font-weight: 900; }
.ldtb-go { white-space: nowrap; flex: none; align-items: center; gap: 2px; font-weight: 900; display: inline-flex; }
.ldtb-go svg { width: 1em; height: 1em; }
.ldtb-short, .ldtb-ico, .ldtb-sep { display: none; }
#ldtb.ldtb--turbo { color: #f7f6f2; background: radial-gradient(460px 90px at 50% 135%, #ffc72c38, #0000 70%), radial-gradient(300px 70px at 32% -45%, #ffde021f, #0000 70%), linear-gradient(#141416, #0b0b0c); overflow: hidden; }
#ldtb.ldtb--turbo::after { content: ""; pointer-events: none; background: linear-gradient(90deg, #0000, #ffde02 22%, #ffc72c 50%, #ffdf85 78%, #0000); height: 1px; position: absolute; bottom: 0; left: 0; right: 0; }
#ldtb.ldtb--turbo::before { content: ""; pointer-events: none; background: linear-gradient(100deg, #0000, #ffc72c29 42%, #f7f6f224 50%, #ffc72c29 58%, #0000); width: 30%; animation: 1.9s cubic-bezier(.16, 1, .3, 1) .7s both ldtb-sweep; position: absolute; top: 0; bottom: 0; left: -30%; transform: skew(-20deg); }
@keyframes ldtb-sweep { 0% { transform: translate(0) skew(-20deg); } to { transform: translate(560%) skew(-20deg); } }
.ldtb--turbo .ldtb-link { font-weight: 500; color: #cfcec8 !important; }
.ldtb--turbo .ldtb-ico { color: #ffc72c; background: radial-gradient(circle, #ffc72c4d, #ffc72c0f 70%); border-radius: 999px; flex: none; place-items: center; width: 24px; height: 24px; display: grid; box-shadow: inset 0 0 0 1px #ffc72c80, 0 0 16px -2px #ffc72c99; }
.ldtb--turbo .ldtb-tag { letter-spacing: .06em; text-transform: uppercase; color: #ffc72c; text-shadow: 0 0 14px #ffc72c59; background: 0 0; padding: 0; font-style: italic; font-weight: 900; }
.ldtb-ex { color: #ffde02; text-shadow: 0 0 14px #ffde024d; }
.ldtb--turbo .ldtb-sep { background: linear-gradient(#0000, #f7f6f24d, #0000); flex: none; width: 1px; height: 16px; display: block; }
.ldtb--turbo .ldtb-txt b, .ldtb--turbo .ldtb-short b { color: #ffc72c; text-shadow: 0 0 12px #ffc72c73; font-weight: 800; }
.ldtb--turbo .ldtb-short { white-space: nowrap; }
.ldtb--turbo .ldtb-go { color: #121110; background: linear-gradient(324deg, #ffdf85 0%, #ffc72c 42%); border-radius: 999px; gap: 5px; margin-left: 4px; padding: 3px 11px 3px 14px; font-size: 13px; font-weight: 800; transition: box-shadow .18s; box-shadow: 0 0 0 1px #ffc72c59, 0 6px 18px -6px #ffc72cbf; }
.ldtb--turbo .ldtb-go svg { transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
.ldtb--turbo .ldtb-link:hover .ldtb-go { text-decoration: none; box-shadow: 0 0 0 1px #ffc72c8c, 0 8px 24px -6px #ffc72cf2; }
.ldtb--turbo .ldtb-link:hover .ldtb-go svg { transform: translate(3px); }
.ldtb--turbo .ldtb-x { color: #f7f6f2; opacity: .5; }
.ldtb--turbo .ldtb-x:hover { opacity: 1; background: #f7f6f21f; }
.ldtb--turbo .ldtb-x:focus-visible, .ldtb--turbo .ldtb-link:focus-visible { outline-color: #ffc72c; }
@media (prefers-reduced-motion: reduce) { #ldtb.ldtb--turbo::before { display: none; } }
.ldtb-x { color: #121110; cursor: pointer; opacity: .65; background: 0 0; border: 0; border-radius: 50%; justify-content: center; align-items: center; width: 28px; height: 28px; padding: 0; font-size: 21px; line-height: 1; display: flex; position: absolute; top: 50%; right: 10px; transform: translateY(-50%); }
.ldtb-x:hover { opacity: 1; background: #12111024; }
.ldtb-x:focus-visible, .ldtb-link:focus-visible { outline-offset: -2px; outline: 2px solid #121110; }
@media (max-width: 860px) { #ldtb { gap: 7px; padding: 8px 40px 8px 12px; font-size: 13px; } .ldtb-txt { display: none; } .ldtb--turbo .ldtb-short { display: inline; } .ldtb--turbo .ldtb-sep { display: none; } }
@media (max-width: 600px) { .ldtb-link { flex-wrap: nowrap; gap: 8px; } .ldtb-go { display: none !important; } }

/* ============ 20. disclaimer dialog ============ */
.bc-dc-scrim { position: fixed; inset: 0; z-index: 100002; display: flex; align-items: center; justify-content: center; padding: 18px; opacity: 1; outline: none; transition: opacity .2s; }
.bc-dc-scrim.is-closing { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .bc-dc-scrim { transition: none; } }
.bc-dc-scrim::before { content: ""; position: absolute; inset: 0; -webkit-backdrop-filter: blur(3px) saturate(115%); backdrop-filter: blur(3px) saturate(115%); background: radial-gradient(60% 55%, #00000014, #0000006b), #00000024; }
html[data-theme=light] .bc-dc-scrim::before { background: #12111042; }
.bc-glass-dialog { background: radial-gradient(120% 55% at 0% 0%, #ffffff29, transparent 50%), radial-gradient(90% 55% at 100% 100%, color-mix(in srgb, var(--color-warn) 11%, transparent), transparent 62%), radial-gradient(70% 40% at 92% 0%, color-mix(in srgb, var(--color-accent) 7%, transparent), transparent 60%), linear-gradient(180deg, #ffffff12, #ffffff03 42%), color-mix(in srgb, var(--color-page) 38%, transparent); -webkit-backdrop-filter: blur(26px) saturate(210%) brightness(1.08); backdrop-filter: blur(26px) saturate(210%) brightness(1.08); border: 1px solid #ffffff24; box-shadow: inset 0 1px #ffffff4d, inset 1px 0 #ffffff12, inset -1px 0 #ffffff0a, inset 0 -1px #ffffff0f, 0 2px 8px #00000040, 0 40px 90px -30px #000000d9; }
html[data-theme=light] .bc-glass-dialog { background: radial-gradient(120% 60% at 0% 0%, #ffffffe6, transparent 52%), radial-gradient(90% 55% at 100% 100%, color-mix(in srgb, var(--color-warn) 9%, transparent), transparent 62%), linear-gradient(180deg, #ffffffbd, #f8f7f39e); border-color: #fffc; box-shadow: inset 0 1px #fff, 0 0 0 1px #12111012, 0 2px 8px #12111012, 0 32px 70px -26px #1211105c; }
.bc-glass-dialog::after { content: ""; border-radius: inherit; pointer-events: none; background: linear-gradient(140deg, #ffffffbf, #ffffff1a 30%, #ffffff05 60%, color-mix(in srgb, var(--color-accent) 60%, transparent)); padding: 1px; position: absolute; inset: 0; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
html[data-theme=light] .bc-glass-dialog::after { background: linear-gradient(140deg, #fff, #fff6 40%, color-mix(in srgb, var(--color-accent) 30%, transparent)); }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .bc-glass-dialog { background: var(--color-surface-2); } .bc-dc-scrim::before { background: var(--color-scrim); } }
.bc-dc { position: relative; width: 100%; max-width: 430px; border-radius: 26px; padding: 2rem 1.75rem 1.25rem; text-align: center; }
.bc-dc-ico { margin: 0 auto .75rem; width: 46px; height: 46px; border-radius: 14px; padding: .75rem; color: var(--color-warn); background: linear-gradient(180deg, color-mix(in srgb, var(--color-warn) 24%, transparent), color-mix(in srgb, var(--color-warn) 8%, transparent)); box-shadow: inset 0 1px 0 #ffffff3d, inset 0 0 0 1px color-mix(in srgb, var(--color-warn) 38%, transparent), 0 10px 26px -10px color-mix(in srgb, var(--color-warn) 55%, transparent); }
html[data-theme=light] .bc-dc-ico { background: linear-gradient(180deg, #ffffffe6, color-mix(in srgb, var(--color-warn) 12%, white)); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px color-mix(in srgb, var(--color-warn) 30%, transparent); }
.bc-dc-title { margin-bottom: .875rem; font-size: 19px; line-height: 1.375; font-weight: 800; color: var(--color-ink); }
.bc-dc-p { margin-bottom: .75rem; font-size: 13.5px; line-height: 1.7; color: var(--color-ink-3); }
.bc-dc-ok { margin-top: 1rem; display: block; width: 100%; cursor: pointer; border-radius: 14px; background: var(--color-cta); padding: .875rem 1rem; font-size: .875rem; line-height: 1.25rem; font-weight: 800; letter-spacing: .025em; color: var(--color-cta-ink); transition: filter .15s, transform .15s; box-shadow: inset 0 1px #ffffff8c, inset 0 -1px #0000001f, 0 12px 30px -12px #ffc72c99; }
.bc-dc-ok:hover { filter: brightness(1.05); }
.bc-dc-more { margin-top: .75rem; display: inline-block; border-radius: 999px; padding: .375rem .75rem; font-size: var(--text-xs); color: var(--color-ink-dim); text-decoration: underline; text-underline-offset: 3px; transition: color .15s; background: #ffffff0a; box-shadow: inset 0 1px #ffffff12, inset 0 0 0 1px #ffffff0f; }
.bc-dc-more:hover { color: var(--color-warn); }
html[data-theme=light] .bc-dc-more { background: #fff9; box-shadow: inset 0 1px #fff, inset 0 0 0 1px #12111012; }
/* generic modal for page tickets: <div class="bc-modal" hidden data-bc-modal="id"><div class="bc-modal-panel bc-glass-dialog">…</div></div> */
.bc-modal { position: fixed; inset: 0; z-index: 100003; display: flex; align-items: center; justify-content: center; padding: 18px; background: var(--color-scrim); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); animation: bc-ck-fade .2s ease-out both; }
.bc-modal-panel { position: relative; width: 100%; max-width: 520px; max-height: calc(100dvh - 36px); overflow-y: auto; border-radius: 24px; padding: 1.5rem; animation: bc-ck-in .28s cubic-bezier(.16, 1, .3, 1) both; }
.bc-modal-x { position: absolute; top: .75rem; right: .75rem; }

/* ============ 21. footer ============ */
.bc-footer { position: relative; margin-top: 5rem; overflow: hidden; border-top: 1px solid var(--color-hairline); background: var(--color-page); }
.bc-footer > .bc-ambient { pointer-events: none; position: absolute; inset: 0; z-index: 0; opacity: .5; }
.bc-ft-in { position: relative; margin-inline: auto; width: 100%; max-width: 1280px; padding-inline: 1rem; }
@media (min-width: 40rem) { .bc-ft-in { padding-inline: 1.5rem; } }
.bc-ft-top { display: flex; flex-direction: column; gap: 1.5rem; padding-block: 3rem; }
@media (min-width: 48rem) { .bc-ft-top { flex-direction: row; align-items: center; justify-content: space-between; } }
.bc-ft-brand { max-width: 560px; }
.bc-ft-logo { height: 1.75rem; width: 210px; }
.bc-ft-logo.bc-logo-svg { height: 2.125rem; width: auto; }
.bc-ft-intro { margin-top: 1rem; font-size: var(--text-small); line-height: 1.625; color: var(--color-ink-4); }
.bc-ft-reviews { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.bc-ft-reviews-l { font-size: var(--text-caption); line-height: var(--text-caption--line-height); color: var(--color-ink-dim); }
.bc-ft-reviews ul { display: flex; flex-wrap: wrap; gap: .375rem; }
.bc-ft-review { display: inline-flex; height: 2rem; align-items: center; gap: .375rem; border-radius: 999px; border: 1px solid var(--color-hairline); background: var(--color-surface-1); padding-inline: .75rem; font-size: var(--text-caption); line-height: var(--text-caption--line-height); color: var(--color-ink-2); transition: color .15s, border-color .15s; }
.bc-ft-review:hover { border-color: var(--color-edge-soft); color: var(--color-ink); }
.bc-ft-review-in { display: inline-flex; align-items: center; gap: .375rem; font-weight: 600; }
.bc-ft-review-ic { width: 16px; height: 16px; flex-shrink: 0; border-radius: 22%; }
.bc-ft-review img.bc-rv-ondark, .bc-ft-review img.bc-rv-onlight { height: 15px; width: 61px; flex-shrink: 0; }
.bc-ft-cta { height: 2.75rem; padding-inline: 1.25rem; align-self: flex-start; flex-shrink: 0; }
@media (min-width: 48rem) { .bc-ft-cta { align-self: auto; } }
.bc-ft-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; row-gap: 2.5rem; border-top: 1px solid var(--color-hairline); padding-block: 3rem; }
@media (min-width: 40rem) { .bc-ft-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2rem; } }
@media (min-width: 64rem) { .bc-ft-grid:not(.is-6) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 80rem) { .bc-ft-grid.is-6 { grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.5fr); } }
.bc-ft-col { min-width: 0; }
.bc-ft-info-col { grid-column: span 2 / span 2; }
@media (min-width: 40rem) { .bc-ft-info-col { grid-column: span 1 / span 1; } }
.bc-ft-h { font-size: var(--text-caption); line-height: var(--text-caption--line-height); font-weight: 600; color: var(--color-ink); }
.bc-ft-links { margin-top: 1rem; display: flex; flex-direction: column; gap: .625rem; }
.bc-ft-link { font-size: var(--text-small); line-height: var(--text-small--line-height); color: var(--color-ink-4); text-align: left; transition: color .15s; }
.bc-ft-link:hover { color: var(--color-ink); }
.bc-ft-infos { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; font-size: var(--text-small); line-height: var(--text-small--line-height); color: var(--color-ink-4); }
.bc-ft-info { display: inline-flex; align-items: center; gap: .625rem; transition: color .15s; }
.bc-ft-info:hover { color: var(--color-ink); }
.bc-ft-info-ic { display: grid; width: 1.75rem; height: 1.75rem; flex-shrink: 0; place-items: center; border-radius: .5rem; border: 1px solid var(--color-hairline); background: var(--color-surface-1); color: var(--color-accent); transition: border-color .15s; }
.bc-ft-info:hover .bc-ft-info-ic { border-color: var(--color-accent-edge); }
.bc-ft-follow { margin-top: 1.5rem; }
.bc-ft-socials { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .375rem; }
.bc-ft-social { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--graphite-100); box-shadow: 0 0 0 1px var(--color-hairline); transition: translate .15s, box-shadow .15s; }
.bc-ft-social:hover { translate: 0 -2px; box-shadow: 0 0 0 1px var(--color-accent-edge); }
@media (prefers-reduced-motion: reduce) { .bc-ft-social:hover { translate: none; } }
.bc-ft-social img { width: 1rem; height: 1rem; object-fit: contain; }
.bc-ft-risk { border-top: 1px solid var(--color-hairline); padding-block: 2rem; }
.bc-ft-risk-h { display: inline-flex; align-items: center; gap: .375rem; font-size: var(--text-caption); line-height: var(--text-caption--line-height); font-weight: 600; color: var(--color-warn); }
.bc-ft-risk-p { margin-top: .5rem; max-width: 110ch; font-size: var(--text-caption); line-height: 1.625; color: var(--color-ink-dim); }
.bc-ft-bottom { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: .75rem; border-top: 1px solid var(--color-hairline); padding-block: 1.5rem; }
@media (min-width: 40rem) { .bc-ft-bottom { flex-direction: row; align-items: center; } }
.bc-ft-copy { font-size: var(--text-caption); line-height: var(--text-caption--line-height); color: var(--color-ink-dim); }

/* ============ 22. floating support + back to top ============ */
.bc-support { pointer-events: none; position: fixed; right: 1rem; bottom: calc(1.5rem + var(--bc-rb-h, 0px)); z-index: 1000; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
@media (min-width: 40rem) { .bc-support { right: 1.75rem; } }
.bc-support-links { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
@media (max-width: 39.99rem) { .bc-support:not([data-open]) .bc-support-links { display: none; } .bc-support[data-open] .bc-support-links { animation: .2s cubic-bezier(.16, 1, .3, 1) both bc-sup-in; } }
@keyframes bc-sup-in { 0% { opacity: 0; transform: translateY(10px); } }
.bc-sup-btn { pointer-events: auto; display: flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; box-shadow: 0 10px 15px -3px var(--color-shade-glow), 0 4px 6px -4px var(--color-shade-glow); transition: translate .15s, filter .15s; }
.bc-sup-btn:hover { filter: brightness(1.1); }
.bc-sup-btn:active { translate: 0 1px; }
.bc-sup-btn.is-tg { background: #229ed9; } .bc-sup-btn.is-tg img { width: 2.75rem; height: 2.75rem; }
.bc-sup-btn.is-zalo, .bc-sup-btn.is-mail { background: #fff; box-shadow: 0 0 0 1px #0000001a, 0 10px 15px -3px var(--color-shade-glow), 0 4px 6px -4px var(--color-shade-glow); }
.bc-sup-btn.is-zalo img { width: 1.75rem; height: 1.75rem; }
.bc-sup-btn.is-wa { background: #25d366; } .bc-sup-btn.is-wa img { width: 1.5rem; height: 1.5rem; filter: brightness(0) invert(1); }
.bc-sup-toggle { pointer-events: auto; position: relative; display: flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--color-edge) !important; color: var(--color-accent); box-shadow: 0 10px 15px -3px var(--color-shade-glow), 0 4px 6px -4px var(--color-shade-glow) !important; transition: color .15s; }
.bc-sup-toggle:active { translate: 0 1px; }
@media (min-width: 40rem) { .bc-sup-toggle { display: none; } }
.bc-sup-ic-x { display: none; }
.bc-support[data-open] .bc-sup-ic-x { display: block; }
.bc-support[data-open] .bc-sup-ic-chat, .bc-support[data-open] .bc-sup-dot { display: none; }
.bc-sup-dot { position: absolute; top: .375rem; right: .375rem; width: .625rem; height: .625rem; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 2px var(--color-page); }
.bc-top { display: flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--color-edge); background: var(--color-surface-2); color: var(--color-ink); box-shadow: 0 10px 15px -3px var(--color-shade-glow), 0 4px 6px -4px var(--color-shade-glow); transition: opacity .3s, translate .3s, scale .3s, border-color .3s, color .15s; pointer-events: none; translate: 0 .75rem; opacity: 0; }
.bc-top.is-on { pointer-events: auto; translate: 0 0; opacity: 1; }
.bc-top:hover { border-color: var(--color-accent-edge); color: var(--color-accent); }
@media (prefers-reduced-motion: no-preference) { .bc-top:active { scale: .94; } }

/* ============ 23. risk bar ============ */
.bc-rb { position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 1100; margin-inline: auto; max-width: 1180px; transform: translateY(calc(100% + 2rem)); border-radius: 1rem; transition: transform .3s; }
#bc-rb.bc-glass { background: color-mix(in srgb, var(--color-page) 82%, transparent); }
.bc-rb.is-in { transform: none; }
@media (prefers-reduced-motion: reduce) { .bc-rb { transition: none; } }
.bc-rb-in { display: flex; width: 100%; align-items: center; gap: .75rem; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 40rem) { .bc-rb-in { padding-inline: 1.25rem; } }
.bc-rb-ic { margin-top: 1px; flex-shrink: 0; align-self: flex-start; color: var(--color-warn); }
@media (min-width: 40rem) { .bc-rb-ic { margin-top: 0; align-self: center; } }
.bc-rb-p { min-width: 0; flex: 1; font-size: 12.5px; line-height: 1.375; color: var(--color-ink-3); }
@media (min-width: 40rem) { .bc-rb-p { font-size: .875rem; line-height: 1.5; } }
.bc-rb-p b { font-weight: 800; color: var(--color-warn); }
.bc-rb-p a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; transition: color .15s; }
.bc-rb-p a:hover { color: var(--color-nav); }
.bc-rb-x { display: flex; width: 2.5rem; height: 2.5rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: .5rem; color: var(--color-ink-dim); transition: color .15s; }
.bc-rb-x:hover { color: var(--color-ink); }

/* ============ 24. cookie consent (verbatim .bc-ck-*) ============ */
.bc-ck-bar { z-index: 1200; left: 12px; right: 12px; bottom: max(calc(var(--bc-rb-h, 0px) + 12px), calc(env(safe-area-inset-bottom, 0px) + 12px)); box-sizing: border-box; max-width: 1180px; color: var(--color-ink-3); font-size: var(--text-caption); animation: bc-ck-up .42s var(--bc-ease-enter) both; border-radius: 16px; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ic title" "text text" "act act"; align-items: center; gap: 10px 12px; margin-inline: auto; padding: 14px; line-height: 1.55; display: grid; position: fixed; }
.bc-ck-bar.bc-glass, html[data-theme=light] .bc-ck-bar.bc-glass { background: color-mix(in srgb, var(--color-page) 82%, transparent); }
.bc-ck-ic { background: var(--color-accent-soft); width: 40px; height: 40px; color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent-edge); border-radius: 12px; flex: none; place-items: center; display: grid; }
.bc-ck-bar > .bc-ck-ic { border-radius: 10px; grid-area: ic; width: 32px; height: 32px; }
.bc-ck-title { font-size: var(--text-small); letter-spacing: -.01em; color: var(--color-ink); grid-area: title; margin: 0; font-weight: 600; line-height: 1.4; }
.bc-ck-text { grid-area: text; margin: 0; }
.bc-ck-text a, .bc-ck-intro a { color: var(--color-accent); text-underline-offset: 3px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; transition: color .15s; }
.bc-ck-text a:hover, .bc-ck-intro a:hover { color: var(--color-nav); }
.bc-ck-actions { grid-area: act; grid-template-columns: auto 1fr 1fr; gap: 8px; display: grid; }
@media (max-width: 359.98px) { .bc-ck-actions { grid-template-columns: 1fr 1fr; } .bc-ck-actions .is-quiet { order: 1; grid-column: 1 / -1; min-height: 40px; } }
@media (min-width: 40rem) { .bc-ck-bar { font-size: var(--text-small); grid-template-areas: "ic title" "ic text" "act act"; gap: 2px 14px; padding: 14px 14px 14px 16px; } .bc-ck-bar > .bc-ck-ic { border-radius: 12px; width: 40px; height: 40px; } .bc-ck-title { align-self: end; } .bc-ck-text { align-self: start; } .bc-ck-actions { justify-self: end; margin-top: 10px; display: flex; } .bc-ck-actions .is-solid { min-width: 120px; } }
@media (min-width: 64rem) { .bc-ck-bar { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ic title act" "ic text act"; column-gap: 16px; } .bc-ck-actions { margin-top: 0; } }
.bc-ck-btn { box-sizing: border-box; min-height: 44px; color: var(--color-ink); font: inherit; font-size: var(--text-small); white-space: nowrap; cursor: pointer; background: 0 0; border: 1px solid #0000; border-radius: 12px; justify-content: center; align-items: center; gap: 6px; padding: 0 16px; font-weight: 600; line-height: 1.2; display: inline-flex; }
.bc-ck-btn:focus-visible, .bc-ck-x:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.bc-ck-btn.is-solid { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-page); }
.bc-ck-btn.is-solid:hover { background: var(--color-ink-2); border-color: var(--color-ink-2); }
.bc-ck-btn.is-quiet { color: var(--color-ink-3); padding: 0 12px; }
.bc-ck-btn.is-quiet:hover, .bc-ck-btn.is-line:hover, .bc-ck-x:hover { background: color-mix(in srgb, var(--color-ink) 7%, transparent); color: var(--color-ink); }
.bc-ck-btn.is-line { border-color: var(--color-edge); }
.bc-ck-btn.is-cta { background: var(--color-cta); color: var(--color-cta-ink); }
.bc-ck-scrim { z-index: 100003; background: var(--color-scrim); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); justify-content: center; align-items: flex-end; animation: .2s ease-out both bc-ck-fade; display: flex; position: fixed; inset: 0; }
.bc-ck-panel { overscroll-behavior: contain; box-sizing: border-box; width: 100%; max-width: 560px; max-height: 92dvh; padding: 10px 20px max(20px, env(safe-area-inset-bottom, 0px)); border: 1px solid var(--color-hairline); background: var(--color-surface-1); box-shadow: 0 -24px 80px -32px var(--color-shade-glow); color: var(--color-ink-3); font-size: var(--text-small); border-bottom: 0; border-radius: 24px 24px 0 0; flex-direction: column; gap: 16px; line-height: 1.6; animation: .28s cubic-bezier(.16, 1, .3, 1) both bc-ck-in; display: flex; overflow-y: auto; }
.bc-ck-grip { background: var(--color-edge-soft); border-radius: 999px; flex: none; align-self: center; width: 40px; height: 4px; }
@media (min-width: 40rem) { .bc-ck-scrim { align-items: center; padding: 24px; } .bc-ck-panel { border-bottom: 1px solid var(--color-hairline); max-height: calc(100dvh - 48px); box-shadow: 0 40px 120px -40px var(--color-shade-glow); border-radius: 24px; padding: 24px; } .bc-ck-grip { display: none; } }
.bc-ck-head { align-items: center; gap: 12px; display: flex; }
.bc-ck-head h2 { min-width: 0; font-size: var(--text-title); letter-spacing: -.02em; color: var(--color-ink); flex: 1; margin: 0; font-weight: 600; line-height: 1.35; }
.bc-ck-x { width: 40px; height: 40px; color: var(--color-ink-4); cursor: pointer; background: 0 0; border: 0; border-radius: 999px; flex: none; place-items: center; display: grid; }
.bc-ck-intro { color: var(--color-ink-4); margin: 0; }
.bc-ck-cats { gap: 8px; margin: 0; padding: 0; list-style: none; display: grid; }
.bc-ck-cat { border: 1px solid var(--color-hairline); background: var(--color-surface-2); border-radius: 16px; transition: border-color .16s, background-color .16s; }
.bc-ck-cat:has(input:checked) { border-color: var(--color-accent-edge); background: color-mix(in srgb, var(--color-accent) 6%, var(--color-surface-2)); }
.bc-ck-row { grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 14px; display: grid; }
label.bc-ck-row { cursor: pointer; }
.bc-ck-cat-ic { background: var(--color-surface-3); width: 36px; height: 36px; color: var(--color-ink-3); border-radius: 10px; place-items: center; transition: background-color .16s, color .16s; display: grid; }
.bc-ck-cat:has(input:checked) .bc-ck-cat-ic { background: var(--color-accent-soft); color: var(--color-accent); }
.bc-ck-cat-body { flex-direction: column; gap: 2px; min-width: 0; display: flex; }
.bc-ck-t { color: var(--color-ink); font-weight: 600; line-height: 1.45; }
.bc-ck-d { font-size: var(--text-caption); color: var(--color-ink-4); line-height: 1.55; }
.bc-ck-pill { border: 1px solid var(--color-edge-soft); background: var(--color-surface-3); color: var(--color-ink-3); white-space: nowrap; border-radius: 999px; margin-top: 5px; padding: 3px 10px; font-size: 12px; font-weight: 600; line-height: 1.5; }
.bc-ck-switch { flex: none; width: 44px; height: 26px; margin-top: 5px; position: relative; }
.bc-ck-switch input { z-index: 1; opacity: 0; cursor: pointer; width: 100%; height: 100%; margin: 0; position: absolute; inset: 0; }
.bc-ck-foot { grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 2px; display: grid; }
.bc-ck-foot .is-cta { grid-column: 1 / -1; }
@media (min-width: 40rem) { .bc-ck-foot { grid-template-columns: 1fr 1fr 1fr; } .bc-ck-foot .is-cta { grid-column: auto; } }
@media (prefers-reduced-motion: reduce) { .bc-ck-bar, .bc-ck-scrim, .bc-ck-panel, .bc-modal, .bc-modal-panel { animation: none; } .bc-ck-cat, .bc-ck-cat-ic, .bc-ck-track, .bc-ck-track::after { transition: none; } }
@media print { .bc-ck-bar, .bc-ck-scrim, .bc-support, .bc-rb, #ldtb { display: none !important; } }
@keyframes bc-ck-up { 0% { opacity: 0; translate: 0 16px; } }
@keyframes bc-ck-fade { 0% { opacity: 0; } }
@keyframes bc-ck-in { 0% { opacity: 0; translate: 0 24px; } }

/* ============ 25. app header (chrome:'app') ============ */
/* --bc-header-h: height of the sticky app header, for full-screen apps (chart / library reader) to offset themselves */
body.chrome-app { --bc-header-h: 52px; }
.bc-header--app { position: sticky; top: 0; z-index: 40; height: 52px; border-bottom: 1px solid var(--color-hairline); background: color-mix(in srgb, var(--color-page) 86%, transparent); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.bc-app-bar { position: relative; display: flex; height: 100%; align-items: center; gap: .5rem; padding-inline: .75rem; }
@media (min-width: 40rem) { .bc-app-bar { padding-inline: 1rem; } }
.bc-header--app .bc-logo-link .bc-logo { height: 18px; width: 135px; max-width: 120px; }
@media (min-width: 40rem) { .bc-header--app .bc-logo-link .bc-logo { max-width: none; } }
.bc-header--app .bc-logo-link .bc-logo-svg { height: 20px; width: auto; max-width: none; }
@media (min-width: 40rem) { .bc-header--app .bc-logo-link .bc-logo-svg { height: 22px; } }
.bc-header--app .bc-nav { margin-left: 1rem; }
.bc-header--app .bc-bar-item { height: 2.25rem; padding-inline: .625rem; font-size: .8125rem; }
.bc-header--app .bc-mega { top: calc(100% + 6px); left: 0; transform: none; }
.bc-header--app .bc-icon-btn { width: 2.25rem; height: 2.25rem; }
.bc-header--app .bc-burger-btn { width: 2.25rem; height: 2.25rem; }
.bc-header--app .bc-drawer { top: calc(100% + 6px); left: .5rem; right: .5rem; }
.bc-header--app .bc-lang-sum { height: 2rem; }

/* ============ 26. 404 ============ */
.bc-nf { margin-inline: auto; width: 100%; max-width: 1280px; padding: 2rem 1rem 4rem; }
@media (min-width: 40rem) { .bc-nf { padding-inline: 1.5rem; } }
@media (min-width: 64rem) { .bc-nf { padding-top: 3.5rem; } }
.bc-nf-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "chip chip" "num art" "h1 h1" "lead lead" "search search"; align-items: end; column-gap: 1rem; }
@media (min-width: 64rem) { .bc-nf-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "chip art" "num art" "h1 art" "lead art" "search art"; align-items: start; column-gap: 3rem; } }
.bc-nf-chip { grid-area: chip; justify-self: start; display: inline-flex; max-width: 100%; align-items: center; gap: .5rem; border-radius: 999px; border: 1px solid var(--color-hairline); background: var(--color-surface-1); padding: .375rem .75rem; font-size: var(--text-caption); color: var(--color-ink-4); }
.bc-nf-chip svg { flex-shrink: 0; color: var(--color-warn); }
.bc-nf-chip code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); color: var(--color-ink-2); }
.bc-nf-num { grid-area: num; margin-top: .5rem; color: var(--color-accent); font-variant-numeric: tabular-nums; font-size: var(--text-404); line-height: var(--text-404--line-height); letter-spacing: var(--text-404--letter-spacing); font-weight: var(--text-404--font-weight); }
@media (min-width: 64rem) { .bc-nf-num { margin-top: 1.25rem; } }
.bc-nf-art { grid-area: art; position: relative; margin-top: .5rem; display: grid; width: 168px; height: 168px; place-items: center; justify-self: end; }
.bc-nf-art::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--color-accent) 26%, transparent), transparent 72%); filter: blur(10px); }
.bc-nf-art img { position: relative; width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 64rem) { .bc-nf-art { margin-top: 0; width: 440px; height: 440px; justify-self: center; align-self: center; } }
.bc-nf-h1 { grid-area: h1; margin-top: .75rem; color: var(--color-ink); font-size: var(--text-h1); line-height: var(--text-h1--line-height); font-weight: 600; }
@media (min-width: 64rem) { .bc-nf-h1 { margin-top: 1.25rem; } }
.bc-nf-lead { grid-area: lead; margin-top: .75rem; max-width: 34em; font-size: var(--text-body); line-height: var(--text-body--line-height); color: var(--color-ink-4); }
@media (min-width: 64rem) { .bc-nf-lead { margin-top: 1rem; font-size: var(--text-lead); } }
.bc-nf-search { grid-area: search; margin-top: 1.25rem; max-width: 560px; }
.bc-nf-search svg { color: var(--color-ink-dim); flex-shrink: 0; }
.bc-nf-search .bc-btn { min-height: 2.75rem; height: auto; border-radius: var(--radius-xl); padding-inline: 1.25rem; }
@media (min-width: 64rem) { .bc-nf-search { margin-top: 1.75rem; } }
.bc-nf-grid { margin-top: 3rem; display: grid; gap: 1rem; }
@media (min-width: 64rem) { .bc-nf-grid { margin-top: 3.5rem; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.5rem; } }
.bc-nf-box { border-radius: var(--radius-2xl); border: 1px solid var(--color-hairline); background: var(--color-surface-1); padding: 1rem; }
@media (min-width: 40rem) { .bc-nf-box { padding: 1.5rem; } }
.bc-nf-box h2 { font-size: var(--text-title); line-height: var(--text-title--line-height); letter-spacing: var(--text-title--letter-spacing); font-weight: 600; color: var(--color-ink); }
@media (min-width: 64rem) { .bc-nf-box h2 { font-size: var(--text-h4); line-height: var(--text-h4--line-height); } }
.bc-nf-box > p { margin-top: .25rem; font-size: var(--text-caption); color: var(--color-ink-dim); }
.bc-nf-posts { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.bc-nf-post { display: flex; align-items: center; gap: .75rem; border-radius: var(--radius-xl); border: 1px solid var(--color-hairline); background: color-mix(in srgb, var(--color-page) 50%, transparent); padding: .75rem; transition: border-color .15s; }
@media (min-width: 40rem) { .bc-nf-post { gap: .875rem; padding: .875rem 1rem; } }
.bc-nf-post:hover { border-color: var(--color-accent-edge); }
.bc-nf-post-ic { display: grid; width: 2.25rem; height: 2.25rem; flex-shrink: 0; place-items: center; border-radius: var(--radius-lg); background: var(--color-surface-2); color: var(--color-ink-3); }
.bc-nf-post-b { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: .125rem; }
.bc-nf-post-t { font-size: var(--text-small); font-weight: 600; color: var(--color-ink); }
@media (min-width: 40rem) { .bc-nf-post-t { font-size: var(--text-body); } }
.bc-nf-post-u { display: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: var(--text-micro); color: var(--color-ink-dim); }
@media (min-width: 40rem) { .bc-nf-post-u { display: block; } }
.bc-nf-tag { flex-shrink: 0; border-radius: 999px; padding: .125rem .625rem; font-size: var(--text-micro); font-weight: 600; background: var(--color-surface-2); color: var(--color-ink-3); }
.bc-nf-partners { margin-top: .75rem; }
.bc-nf-tiles { margin-top: .75rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; }
@media (min-width: 64rem) { .bc-nf-tiles { margin-top: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.bc-nf-tile { display: flex; flex-direction: column; gap: .625rem; border-radius: var(--radius-2xl); border: 1px solid var(--color-hairline); background: var(--color-surface-1); padding: 1rem; transition: border-color .15s; }
.bc-nf-tile:hover { border-color: var(--color-accent-edge); }
.bc-nf-help { margin-top: 2rem; display: flex; flex-direction: column; gap: .75rem; border-radius: var(--radius-2xl); border: 1px solid var(--color-hairline); background: var(--color-surface-1); padding: 1rem; }
@media (min-width: 40rem) { .bc-nf-help { flex-direction: row; flex-wrap: wrap; align-items: center; } .bc-nf-help .bc-btn--cta { margin-left: auto; } }

/* CTA fill: backcom.io paints every a/button with bg-cta using a lime→mint gradient (:where(a,button).bg-cta); BackComTrader: pale gold→gold (--bc-grad-cta) */
.bc-cta-bg, .bc-btn--cta, .bc-login, .bc-dc-ok, .bc-ck-btn.is-cta, .bc-sub-notice-cta { background-color: var(--color-cta); background-image: var(--bc-grad-cta); }
.bc-cta-bg:hover, .bc-btn--cta:hover, .bc-login:hover, .bc-dc-ok:hover, .bc-ck-btn.is-cta:hover, .bc-sub-notice-cta:hover { filter: brightness(1.05); }
.bc-btn--cta:disabled, .bc-btn--cta[aria-disabled=true] { filter: none; background-image: none; background-color: var(--color-cta-disabled); color: var(--color-cta-disabled-ink); }

/* ============ 15b. header polish: BackComTrader identity (docs/research/home-v2/NOTES.md) ============
   Same markup and behaviour as sections 15-18; adds a gold hairline, an active pill, a hover underline, Muse icon tiles in
   the mega menu, a compact language pill, a pressed gold CTA, a scroll-driven "scrolled" state and a matching drawer. */
@property --bc-hd-a { syntax: "<percentage>"; inherits: false; initial-value: 70%; }
@property --bc-hd-b { syntax: "<length>"; inherits: false; initial-value: 24px; }
.bc-glass-bar::before { background: linear-gradient(180deg, #ffffff13, #ffffff05), color-mix(in srgb, var(--color-page) var(--bc-hd-a), transparent); -webkit-backdrop-filter: blur(var(--bc-hd-b)) saturate(180%); backdrop-filter: blur(var(--bc-hd-b)) saturate(180%); }
.bc-glass-bar::after { content: ""; position: absolute; z-index: -1; left: 10%; right: 10%; bottom: 0; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-accent) 75%, transparent) 50%, transparent); box-shadow: 0 0 14px 1px var(--color-accent-glow); opacity: .6; }
html[data-theme=light] .bc-glass-bar::after { opacity: .45; box-shadow: none; }
@media (min-width: 80rem) { .bc-logo-link .bc-logo-svg { height: 29px; } }
.bc-logo-link { transition: opacity .18s; }
.bc-logo-link:hover { opacity: .9; }
/* nav: quieter type, underline that grows from the centre on hover, gold pill on the current page */
.bc-bar-item { position: relative; letter-spacing: .003em; }
.bc-bar-item::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .4375rem; height: 1.5px; border-radius: 2px; background: var(--bc-grad-brand); transform: scaleX(0); transform-origin: 50% 50%; transition: transform .32s var(--ease-out-expo); pointer-events: none; }
.bc-bar-item:hover::after, .bc-bar-item:focus-visible::after { transform: scaleX(1); }
details[open] > .bc-bar-item::after, .bc-bar-item[aria-current=page]::after { transform: scaleX(0); }
.bc-bar-item:hover, html[data-theme=light] .bc-bar-item:hover { background: none; box-shadow: none; }
details[open] > .bc-bar-item, details[open] > .bc-bar-item:hover { background: #ffffff0e; box-shadow: inset 0 1px #ffffff17, inset 0 0 0 1px #ffffff0d; }
html[data-theme=light] details[open] > .bc-bar-item, html[data-theme=light] details[open] > .bc-bar-item:hover { background: #ffffffb3; box-shadow: inset 0 1px #fff, inset 0 0 0 1px #12111012; }
.bc-bar-item[aria-current=page], .bc-bar-item[aria-current=page]:hover { color: var(--color-ink); background: linear-gradient(180deg, color-mix(in srgb, var(--color-accent) 15%, transparent), color-mix(in srgb, var(--color-accent) 5%, transparent)); box-shadow: inset 0 0 0 1px var(--color-accent-edge), inset 0 1px 0 color-mix(in srgb, var(--color-accent) 25%, transparent); }
@media (prefers-reduced-motion: reduce) { .bc-bar-item::after { transition: none; } }
/* compact language pill */
.bc-lang-sum { height: 2.125rem; border-radius: var(--radius-pill); padding-inline: .5rem .5625rem; gap: .3125rem; background: color-mix(in srgb, var(--color-ink) 3%, transparent); }
.bc-lang-sum .bc-flag { width: 1.0625rem; height: .75rem; border-radius: 3px; }
.bc-lang[open] > .bc-lang-sum { border-color: var(--color-accent-edge); color: var(--color-ink); }
.bc-lang-menu { margin-top: .5rem; border-radius: var(--radius-xl); }
/* login: gold gradient, inner highlight, soft glow, pressed state */
.bc-login { border-radius: var(--radius-pill); padding-inline: .875rem; box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-white) 55%, transparent), inset 0 -1px 0 color-mix(in srgb, var(--color-shade) 18%, transparent), var(--shadow-cta); transition: filter .15s, box-shadow .18s, transform .12s; }
.bc-login:hover { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-white) 60%, transparent), inset 0 -1px 0 color-mix(in srgb, var(--color-shade) 18%, transparent), 0 10px 28px -10px var(--color-accent-glow), var(--shadow-cta); }
.bc-login:active { transform: translateY(1px); filter: brightness(.95); box-shadow: inset 0 2px 5px color-mix(in srgb, var(--color-shade) 28%, transparent); }
@media (min-width: 340px) { .bc-login { padding-inline: 1rem; } }
@media (prefers-reduced-motion: reduce) { .bc-login:active { transform: none; } }
/* mega menu: gold hairline on top, Muse 3D icon tiles for the feature items */
.bc-mega::before { content: ""; position: absolute; top: -1px; left: 14%; right: 14%; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--color-accent), transparent); opacity: .55; }
.bc-ni:has(.bc-ni-3d) { width: 2.75rem; height: 2.75rem; background: radial-gradient(circle at 50% 38%, var(--color-accent-faint), transparent 72%), linear-gradient(#ffffff0c, #ffffff03); }
html[data-theme=light] .bc-ni:has(.bc-ni-3d) { background: radial-gradient(circle at 50% 38%, var(--color-accent-faint), transparent 72%), linear-gradient(#ffffffd9, #ffffff8c); }
.bc-ni-3d { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 4px 6px color-mix(in srgb, var(--color-shade) 40%, transparent)); transition: translate .3s var(--ease-out-expo), scale .3s var(--ease-out-expo); }
.bc-mi:hover .bc-ni-3d, .bc-mi:focus-visible .bc-ni-3d, .bc-mg:hover .bc-ni-3d { translate: 0 -2px; scale: 1.06; }
@media (prefers-reduced-motion: reduce) { .bc-ni-3d { transition: none; } .bc-mi:hover .bc-ni-3d, .bc-mg:hover .bc-ni-3d { translate: none; scale: none; } }
.bc-sub-head { color: var(--color-accent); letter-spacing: .16em; }
/* scrolled state (scroll-driven, no JS): the bar settles 4px lower and 8px slimmer, with a denser, blurrier glass */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .bc-header-veil .bc-glass-bar { animation: bc-hd-shrink linear both; animation-timeline: scroll(root); animation-range: 0 160px; }
    .bc-header-veil .bc-glass-bar::before { animation: bc-hd-glass linear both; animation-timeline: scroll(root); animation-range: 0 160px; }
    .bc-header-veil .bc-glass-bar::after { animation: bc-hd-line linear both; animation-timeline: scroll(root); animation-range: 0 160px; }
  }
}
@keyframes bc-hd-shrink { to { height: 3.5rem; margin-top: .25rem; } }
@keyframes bc-hd-glass { to { --bc-hd-a: 86%; --bc-hd-b: 36px; } }
@keyframes bc-hd-line { to { opacity: .9; } }
/* mobile drawer: matching rows, gold current-page marker, hairline under the open group */
.bc-drawer::before { content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--color-accent), transparent); opacity: .5; }
.bc-dr-list { gap: .125rem; }
.bc-dr-list > li + li { border-top: 1px solid color-mix(in srgb, var(--color-hairline) 70%, transparent); }
.bc-dr-item { border-radius: var(--radius-xl); padding: .75rem .75rem; }
.bc-dr-item[aria-current=page] { color: var(--color-ink); background: linear-gradient(90deg, color-mix(in srgb, var(--color-accent) 14%, transparent), transparent 80%); box-shadow: inset 2px 0 0 var(--color-accent); }
details[open] > .bc-dr-item { color: var(--color-accent); }
.bc-dr-sub { border-left-color: var(--color-accent-edge); margin-bottom: .5rem; }
.bc-dr-link:hover .bc-dr-link-t { color: var(--color-accent); }
.bc-dr-chip { border-radius: var(--radius-pill); }
