/* global.css — design port from live longf.vn (tokens sampled from production CSS 2026-05-29).
   Module/page CSS lives under /static/web/pages/<page>/. Plugin CSS under /static/web/css/.
   Visual identity = longf.vn (Inter + NextUI/Tailwind palette) + the 5 UI changes (build-spec §2). */

:root {
  /* brand — tokens resolved from prod tailwind.config.ts + NextUI semantic palette (UI-PARITY-AUDIT §1) */
  --lf-primary: #192147;       /* prod `primary` navy — nav-active, login btn, "Tiện ích Mobile" */
  --lf-primary-700: #004493;   /* NextUI primary-700 */
  --lf-blue: #547ddd;          /* brand blue — used SPARINGLY (search icon, switch track, download) */
  --lf-blue-dark: #3f61d1;     /* hover/active */
  --lf-accent-blue: #006fee;   /* NextUI primary-500 — DC tabs/buttons accent */
  --lf-accent-blue-50: #e6f1fe;/* NextUI primary-50 — active tab/button bg */
  --lf-accent-blue-200: #99c7fb;/* NextUI primary-200 — disabled/idle arrow */
  --lf-navy: #26326a;          /* secondary (rgba(38,50,106,*)) */
  --lf-footer-bg: #0c1827;     /* prod tertiary — footer bg */
  --lf-blue-soft: #eff5ff;     /* light-blue surface */
  --lf-blue-accent: #c7d8f6;   /* light-blue accent (UI change #5 / sidebar) */
  --lf-indigo-100: #e0e7ff;    /* day-divider / DateChip bg */

  /* market direction (live Tailwind utilities) */
  --lf-up: #17b26a;            /* .text-green rgb(23 178 106) — tables */
  --lf-up-bright: #47cd89;     /* ticker / MiniQuotes / timeline dot green */
  --lf-down: #f04438;          /* .text-red rgb(240 68 56) */
  --lf-flat: #efb34e;          /* flat/zero (prod .text-yellow) */

  /* neutrals (Tailwind gray scale used on live site) */
  --lf-text: #111827;          /* gray-900 primary text */
  --lf-text-2: #374151;        /* gray-700 */
  --lf-title: #414651;         /* feed/article title */
  --lf-author: #181d27;        /* author name (gray-950) */
  --lf-time: #535862;          /* feed time / action icons */
  --lf-section: #252b37;       /* section heading */
  --lf-muted: #6b7280;         /* gray-500 */
  --lf-muted-2: #9ca3af;       /* gray-400 */
  --lf-muted-3: #717680;       /* prod muted */
  --lf-muted-4: #a4a7ae;       /* prod table-header muted */
  --lf-trending: #d92d20;      /* TOP XU HƯỚNG heading red */
  --lf-gold: #fdb022;          /* trending marker / fav star */
  --lf-border: #e5e7eb;        /* gray-200 */
  --lf-border-2: #eaecf0;      /* hairline */
  --lf-border-3: #d4d4d8;      /* gray-300 (card borders) */
  --lf-bg: #f5f5f5;            /* page background (live) */
  --lf-hover: #f5f5f5;         /* feed row hover */
  --lf-surface: #ffffff;

  /* shape */
  --lf-radius: 0.75rem;        /* cards */
  --lf-radius-sm: 0.5rem;
  --lf-radius-lg: 1rem;        /* rounded-2xl SSI cards */
  --lf-radius-pill: 9999px;
  --lf-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  --lf-shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --lf-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1);

  /* layout */
  --lf-header-h: 72px;         /* prod 72px → 80px at lg */
  --lf-ticker-h: 50px;         /* fixed bottom MiniIndices strip */
  --lf-gap: 16px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--lf-text);
  background: var(--lf-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@supports (font-variation-settings: normal) {
  body { font-family: "InterVariable", "Inter", ui-sans-serif, system-ui, sans-serif; }
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--lf-blue); }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4 { color: var(--lf-text); font-weight: 700; line-height: 1.3; margin: 0 0 .5em; }

.site-main { padding: 24px 0 48px; }
/* prod is effectively full-bleed (container max-w-[100vw] + lg:px-10 2xl:px-20). Match that on
   sidebar pages too (UI: container should equal PROD width). */
.site-main--wide { padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 1024px) { .site-main--wide { padding-left: 2.5rem; padding-right: 2.5rem; } }
@media (min-width: 1536px) { .site-main--wide { padding-left: 5rem; padding-right: 5rem; } }
/* the footer's inner .container follows the same full-bleed gutters */
.site-footer .container { max-width: none; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 1024px) { .site-footer .container { padding-left: 2.5rem; padding-right: 2.5rem; } }
@media (min-width: 1536px) { .site-footer .container { padding-left: 5rem; padding-right: 5rem; } }
.text-muted { color: var(--lf-muted) !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Section titles ─────────────────────────────────────────── */
.section-title,
.page-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 4px solid var(--lf-blue);
  line-height: 1.2;
}
.page-title { font-size: 1.5rem; margin-bottom: 20px; }

/* ── Header (prod parity, UI-PARITY-AUDIT §2.1 — sticky, like prod NextUI Navbar) ─── */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: var(--lf-surface);
  box-shadow: var(--lf-shadow-sm);
}
.header-inner { padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 1024px) { .header-inner { padding-left: 2.5rem; padding-right: 2.5rem; } }
@media (min-width: 1536px) { .header-inner { padding-left: 5rem; padding-right: 5rem; } }
.site-header .navbar { min-height: var(--lf-header-h); padding: 0; }
@media (min-width: 1024px) { .site-header .navbar { min-height: 80px; } }
.site-header .navbar-brand { display: inline-flex; align-items: center; padding: 12px 0; }
.brand-logo { height: 32px; width: auto; display: block; }
@media (min-width: 1024px) { .brand-logo { height: 36px; } }
.site-header .navbar-nav { gap: 4px; }
@media (min-width: 1024px) { .site-header .navbar-nav { gap: 24px; } }
.site-header .nav-link {
  font-weight: 700;
  font-size: 1rem;
  color: var(--lf-text-2);
  padding: 8px 6px !important;
  white-space: nowrap;
  transition: color .15s;
}
.site-header .nav-link:hover { color: var(--lf-accent-blue); }
.site-header .nav-link.active { color: var(--lf-primary); }
.nav-more .nav-link { color: var(--lf-muted); }
.nav-more .dropdown-toggle::after { display: none; }
.site-header .main-nav .dropdown-menu { font-size: .92rem; border-color: var(--lf-border); box-shadow: var(--lf-shadow); border-radius: var(--lf-radius); padding: 8px; }

/* header actions: icon search · pill theme switch · mobile CTA (download + QR) · login */
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-search-icon {
  border: 0; background: transparent; cursor: pointer;
  color: var(--lf-blue); font-size: 1.4rem; line-height: 1; padding: 4px;
}
.header-search-icon:hover { color: var(--lf-blue-dark); }

/* pill sun/moon switch (track-on = blue) */
.theme-switch { display: inline-flex; cursor: pointer; }
.theme-switch input { position: absolute; opacity: 0; pointer-events: none; }
.theme-switch__track {
  position: relative; display: inline-flex; align-items: center; justify-content: space-between;
  width: 52px; height: 28px; padding: 0 6px;
  background: var(--lf-border); border-radius: var(--lf-radius-pill);
  transition: background .2s;
}
.theme-switch__track .theme-switch__sun { color: #f59e0b; font-size: .7rem; }
.theme-switch__track .theme-switch__moon { color: #fff; font-size: .7rem; }
.theme-switch__thumb {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  background: #fff; border-radius: 50%; box-shadow: var(--lf-shadow-sm);
  transition: transform .2s;
}
.theme-switch input:checked + .theme-switch__track { background: var(--lf-blue); }
.theme-switch input:checked + .theme-switch__track .theme-switch__thumb { transform: translateX(24px); }

.mobile-cta-wrap { position: relative; }
.btn-mobile-cta {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; color: var(--lf-primary); background: transparent;
  padding: 6px 8px; font-size: .9rem; font-weight: 700; white-space: nowrap; cursor: pointer;
}
.btn-mobile-cta i { color: var(--lf-blue); }
.btn-mobile-cta:hover { color: var(--lf-blue-dark); }
.mobile-cta-qr {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 1050;
  background: #fff; border: 1px solid var(--lf-border); border-radius: var(--lf-radius);
  box-shadow: var(--lf-shadow); padding: 12px; text-align: center; width: 160px;
}
.mobile-cta-qr img { display: block; margin: 0 auto 6px; }
.mobile-cta-qr span { font-size: .72rem; color: var(--lf-muted); }
.btn-login {
  background: var(--lf-primary); color: #fff;
  border-radius: var(--lf-radius-pill);
  padding: 8px 20px; font-size: .9rem; font-weight: 700; white-space: nowrap;
}
.btn-login:hover { background: var(--lf-primary-700); color: #fff; }

/* ── Article card ───────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--lf-gap);
  margin-bottom: 32px;
}
.news-list { display: flex; flex-direction: column; gap: 4px; }

.article-card {
  background: var(--lf-surface);
  border: 1px solid var(--lf-border-2);
  border-radius: var(--lf-radius);
  overflow: hidden;
  transition: box-shadow .18s, transform .18s;
}
.article-card:hover { box-shadow: var(--lf-shadow); transform: translateY(-2px); }
.article-card__link { display: block; color: inherit; }
.article-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--lf-bg);
}
.article-card__text { display: block; }
.article-card__title {
  display: -webkit-box;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 12px 14px 0;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__link:hover .article-card__title { color: var(--lf-blue); }
.article-card__summary {
  display: -webkit-box;
  margin: 8px 14px 0;
  font-size: .9rem;
  color: var(--lf-muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 14px 14px;
  font-size: .8rem;
  color: var(--lf-muted-2);
}
.article-card__author { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--lf-muted); }
.article-card__pfp { border-radius: 50%; }
.article-card__time::before { content: "·"; margin-right: 8px; }

/* compact row variant — left thumbnail · title · meta (live module list) */
.article-card--compact {
  border: 0;
  border-bottom: 1px solid var(--lf-border-2);
  border-radius: 0;
  background: transparent;
}
.article-card--compact:hover { box-shadow: none; transform: none; }
.article-card--compact .article-card__link {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
}
.article-card--compact .article-card__thumb {
  display: block; overflow: hidden; border-radius: var(--lf-radius-sm); background: var(--lf-bg);
}
.article-card--compact .article-card__thumb--empty {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1.8; color: var(--lf-muted-2); font-size: 1.4rem;
}
.article-card--compact .article-card__img { aspect-ratio: 1.8; object-fit: cover; width: 100%; }
.article-card--compact .article-card__title { margin: 0; font-size: 1rem; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card--compact .article-card__summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .85rem; color: var(--lf-muted-3); margin: 4px 0 0; }
.article-card--compact .article-card__meta { margin: 8px 0 0; }
@media (max-width: 575.98px) { .article-card--compact .article-card__link { grid-template-columns: 104px 1fr; } }

/* ── Quotes table ───────────────────────────────────────────── */
.quote-tabs.nav-tabs { border-bottom: 2px solid var(--lf-border); gap: 4px; margin-bottom: 0; }
.quote-tabs .nav-link {
  border: 0;
  border-radius: 0;
  font-weight: 500;
  font-size: .9rem;
  color: var(--lf-muted);
  padding: 10px 16px;
  margin-bottom: -2px;
  border-bottom: 2px solid transparent;
}
.quote-tabs .nav-link:hover { color: var(--lf-blue); border-bottom-color: var(--lf-blue-accent); }
.quote-tabs .nav-link.active {
  color: var(--lf-blue);
  font-weight: 600;
  background: transparent;
  border-bottom-color: var(--lf-blue);
}

.quote-table {
  width: 100%;
  background: var(--lf-surface);
  border: 1px solid var(--lf-border-2);
  border-top: 0;
  border-radius: 0 0 var(--lf-radius-sm) var(--lf-radius-sm);
  overflow: hidden;
  margin-bottom: 0;
  font-variant-numeric: tabular-nums;
}
.quote-table thead th {
  position: sticky;
  top: var(--lf-header-h);
  background: var(--lf-bg);
  color: var(--lf-muted);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--lf-border);
}
.quote-table thead th.th-num { text-align: right; }
.quote-table thead th.th-fav,
.quote-table thead th.th-stt { text-align: center; width: 1%; white-space: nowrap; }
.quote-row td { padding: 11px 14px; border-bottom: 1px solid var(--lf-border-2); font-size: .92rem; }
.quote-row:hover td { background: var(--lf-blue-soft); }
.quote-row__fav { text-align: center; color: var(--lf-muted-2); cursor: pointer; }
.quote-row__fav .fa-solid { color: #fdb022; }
.quote-row__stt { text-align: center; color: var(--lf-muted); font-variant-numeric: tabular-nums; }
.quote-row__code { font-weight: 700; color: var(--lf-blue); }
.quote-row__name { display: block; font-weight: 400; font-size: .78rem; color: var(--lf-muted); }
.quote-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.quote-row__price, .quote-row__chg, .quote-row__pct { font-weight: 600; }
.quote-row__vol { color: var(--lf-muted); font-weight: 400; }
.quote-row--up .quote-row__price,
.quote-row--up .quote-row__chg,
.quote-row--up .quote-row__pct { color: var(--lf-up); }
.quote-row--down .quote-row__price,
.quote-row--down .quote-row__chg,
.quote-row--down .quote-row__pct { color: var(--lf-down); }
/* flat/zero values render orange (matches live longf.vn) */
.quote-row--flat .quote-row__chg,
.quote-row--flat .quote-row__pct { color: #f59e0b; }

/* ── Breadcrumbs ────────────────────────────────────────────── */
.lf-breadcrumb { margin-bottom: 14px; }
.lf-breadcrumb .breadcrumb { margin: 0; font-size: .82rem; }
.lf-breadcrumb .breadcrumb-item,
.lf-breadcrumb .breadcrumb-item a { color: var(--lf-muted); }
.lf-breadcrumb .breadcrumb-item a:hover { color: var(--lf-blue); }
.lf-breadcrumb .breadcrumb-item.active { color: var(--lf-text-2); }

/* ── Article detail ─────────────────────────────────────────── */
.article-detail { background: var(--lf-surface); border: 1px solid var(--lf-border-2); border-radius: var(--lf-radius); padding: 28px; }
.article-detail__meta { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--lf-time); margin-bottom: 12px; }
.article-detail__author { font-weight: 700; color: var(--lf-author); text-transform: capitalize; }
.article-detail__time { font-weight: 600; text-transform: capitalize; }
.article-detail__sep { color: var(--lf-muted-2); }
.article-detail__title { font-size: 2rem; font-weight: 700; line-height: 1.25; margin-bottom: 14px; }
.article-detail__lead { font-size: 1.25rem; font-weight: 700; line-height: 1.5; color: var(--lf-text-2); margin: 0 0 20px; }
.article-detail__hero { width: 100%; aspect-ratio: 1.8; object-fit: cover; border-radius: var(--lf-radius-sm); margin-bottom: 22px; }
.article-detail__tools { display: flex; align-items: center; gap: 18px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--lf-border-2); color: var(--lf-time); }
.article-detail__stat { display: inline-flex; align-items: center; gap: 5px; font-size: .9rem; }
.article-detail__share { margin-left: auto; display: inline-flex; gap: 8px; }
.article-detail__share .share-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lf-bg); color: var(--lf-time); }
.article-detail__share .share-fb:hover { background: #1877f2; color: #fff; }
.article-detail__share .share-tw:hover { background: #000; color: #fff; }
.article-detail__body { font-size: 1.05rem; line-height: 1.75; color: var(--lf-text-2); }
.article-detail__body p { margin: 0 0 1.1em; }
.article-detail__body h2 { font-size: 1.35rem; margin: 1.4em 0 .6em; }
.article-detail__body h3 { font-size: 1.15rem; margin: 1.3em 0 .5em; }
.article-detail__body img { border-radius: var(--lf-radius-sm); margin: 1em 0; }
.article-detail__body a { color: var(--lf-blue); text-decoration: underline; text-underline-offset: 2px; }
.article-detail__body blockquote {
  margin: 1.2em 0; padding: 4px 18px;
  border-left: 4px solid var(--lf-blue-accent);
  color: var(--lf-muted); font-style: italic;
}
.article-detail__body ul,
.article-detail__body ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.article-detail__body table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.article-detail__body th,
.article-detail__body td { border: 1px solid var(--lf-border); padding: 8px 12px; }

/* ── Right sidebar — MiniQuotes (prod parity, UI-PARITY-AUDIT §4.1) ── */
.sidebar-realtime { background: var(--lf-surface); }
/* prod widget titles: plain 20px, NO colored bar */
.sidebar-title {
  font-size: 1.25rem; font-weight: 600; margin: 0 0 12px;
  color: var(--lf-section);
}
.rt-tabs {
  display: flex; gap: 16px; overflow-x: auto; border-bottom: 1px solid var(--lf-border);
  margin-bottom: 4px; scrollbar-width: none;
}
.rt-tabs::-webkit-scrollbar { display: none; }
.rt-tab {
  border: 0; background: transparent; cursor: pointer; white-space: nowrap;
  padding: 8px 2px; font-size: .92rem; color: var(--lf-muted-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.rt-tab.is-active { color: var(--lf-blue); font-weight: 700; border-bottom-color: var(--lf-blue); }
.rt-head {
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  padding: 10px 4px; background: #fafafa; color: var(--lf-muted-4);
  font-size: .78rem; font-weight: 500;
}
.rt-head span:first-child { grid-column: 1; }
.rt-head span:nth-child(2), .rt-head span:nth-child(3) { display: none; } /* compact: collapse to Mã + % */
.rt-head { grid-template-columns: 1fr auto; }
.rt-head span:nth-child(3) { display: block; text-align: right; }
.realtime-quotes { max-height: 22rem; overflow-y: auto; }
.rt-row {
  display: grid;
  grid-template-columns: auto 1fr auto;   /* ☆ | name/code | price+pct(chg) */
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--lf-border-2);
  font-size: .9rem;
}
.rt-row:last-child { border-bottom: 0; }
.rt-row:hover { background: var(--lf-bg); }
.rt-star { color: var(--lf-muted-2); cursor: pointer; }
.rt-star.is-fav { color: var(--lf-gold); }
.rt-name { min-width: 0; }
.rt-name .rt-label { display: block; font-weight: 500; color: var(--lf-author); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-name .rt-code { display: block; font-size: .78rem; color: rgba(113,118,128,.7); margin-top: 2px; }
.rt-price { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.rt-pct { display: block; font-size: .8rem; text-align: right; font-variant-numeric: tabular-nums; }
.rt-row--up .rt-price, .rt-row--up .rt-pct { color: var(--lf-up-bright); }
.rt-row--down .rt-price, .rt-row--down .rt-pct { color: var(--lf-down); }
.rt-row--flat .rt-price, .rt-row--flat .rt-pct { color: var(--lf-flat); }
.rt-empty { padding: 20px 16px; text-align: center; font-size: .88rem; }

/* ── Buttons / load-more ────────────────────────────────────── */
.btn-load-more,
.load-more {
  display: inline-flex; align-items: center; justify-content: center;
  margin: 20px auto 0;
  padding: 10px 28px;
  font-weight: 600; font-size: .9rem;
  color: var(--lf-blue);
  background: var(--lf-surface);
  border: 1px solid var(--lf-blue);
  border-radius: var(--lf-radius-pill);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-load-more:hover,
.load-more:hover { background: var(--lf-blue); color: #fff; }

/* ── Footer (prod parity, UI-PARITY-AUDIT §2.2) ─────────────── */
.site-footer {
  position: relative; overflow: hidden;
  background: var(--lf-footer-bg);
  color: rgba(255, 255, 255, .8);
  margin-top: 48px;
  padding: 32px 0 48px;
}
.site-footer a { color: rgba(255, 255, 255, .8); }
.site-footer a:hover { color: #fff; }
.site-footer .container { position: relative; z-index: 1; }
.footer-logo img { height: 56px; width: auto; }
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
}
.site-footer .footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer .footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: .88rem; }
.site-footer .footer-social { display: flex; gap: 12px; margin-top: 16px; }
.site-footer .footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: #e5e7eb; color: var(--lf-footer-bg); font-size: 1.05rem;
}
.site-footer .footer-social a:hover { background: #fff; }
.site-footer .footer-bottom { padding-top: 18px; font-size: .82rem; color: rgba(255, 255, 255, .6); }

/* ── Scroll-to-top (jQuery toggled) ─────────────────────────── */
.scroll-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 44px; height: 44px;
  display: none; align-items: center; justify-content: center;
  background: var(--lf-blue);
  color: #fff;
  border-radius: var(--lf-radius-pill);
  box-shadow: var(--lf-shadow);
  z-index: 1040;
}
.scroll-top:hover { background: var(--lf-blue-dark); color: #fff; }

/* ── Symbol detail (Lightweight Charts) ─────────────────────── */
.symbol-detail { background: var(--lf-surface); border: 1px solid var(--lf-border);
  border-radius: var(--lf-radius); padding: 16px; box-shadow: var(--lf-shadow-sm); }
.symbol-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.symbol-code { font-size: 1.25rem; font-weight: 700; color: var(--lf-text); margin: 0; }
.symbol-res { display: flex; gap: 4px; }
.res-btn { border: 1px solid var(--lf-border); background: #fff; color: var(--lf-muted);
  padding: 4px 12px; border-radius: var(--lf-radius-sm); cursor: pointer; font-size: .85rem; }
.res-btn.is-active { background: var(--lf-blue); border-color: var(--lf-blue); color: #fff; }
.symbol-chart { width: 100%; height: 420px; }
.symbol-empty { text-align: center; color: var(--lf-muted); padding: 16px; }

/* ── Data center: sub-nav + sections (prod parity §5) ───────── */
.dc-subnav { display: flex; gap: 24px; overflow-x: auto; border-bottom: 1px solid var(--lf-border); margin-bottom: 32px; scrollbar-width: none; }
.dc-subnav::-webkit-scrollbar { display: none; }
.dc-subnav__tab {
  position: relative; padding: 8px 4px 14px; font-weight: 500; color: var(--lf-muted); white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.dc-subnav__tab.is-active { color: var(--lf-accent-blue); border-bottom-color: var(--lf-accent-blue); }
.dc-section { padding-bottom: 48px; }
.dc-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dc-heading__title { font-size: 1.25rem; font-weight: 600; text-transform: uppercase; color: var(--lf-section); display: inline-flex; align-items: center; gap: 6px; }
.dc-heading__title .dc-caret { font-size: 1.6rem; line-height: 1; color: var(--lf-muted); }
.dc-title { font-size: 1.15rem; font-weight: 700; color: var(--lf-text); margin: 20px 0 12px; }

/* SSI carousel (prod Swiper parity §5.2) */
.dc-carousel__nav { display: flex; gap: 8px; }
.dc-arrow { border: 0; background: transparent; cursor: pointer; font-size: 1.7rem; line-height: 1; padding: 0; }
.dc-arrow--prev { color: var(--lf-accent-blue-200); }
.dc-arrow--next { color: var(--lf-accent-blue); }
.dc-arrow:hover { color: var(--lf-primary-700); }
.dc-carousel { overflow: hidden; border-bottom: 1px solid var(--lf-border-3); padding-bottom: 12px; }
.dc-carousel__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.dc-carousel__track::-webkit-scrollbar { display: none; }
.dc-carousel__slide { flex: 0 0 calc(25% - 9px); scroll-snap-align: start; min-width: 0; }
@media (max-width: 1279.98px) { .dc-carousel__slide { flex-basis: calc(33.333% - 8px); } }
@media (max-width: 1023.98px)  { .dc-carousel__slide { flex-basis: calc(50% - 6px); } }
@media (max-width: 767.98px)   { .dc-carousel__slide { flex-basis: 100%; } }
.ssi-card { border: 1px solid var(--lf-border-3); border-radius: var(--lf-radius-lg); padding: 16px 16px 4px; }
.ssi-card__head { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.ssi-card__flag { font-size: 1.4rem; line-height: 1; }
.ssi-card__pair { font-size: 1rem; }
.ssi-card__gauge { position: relative; height: 112px; margin-top: 8px; }
.ssi-gauge { width: 100%; height: 100%; }
.ssi-card__mua, .ssi-card__ban { position: absolute; bottom: 4px; display: flex; flex-direction: column; font-size: .75rem; }
.ssi-card__mua { left: 0; } .ssi-card__ban { right: 0; text-align: right; }
.ssi-card__mua .ssi-lab { color: var(--lf-up); } .ssi-card__ban .ssi-lab { color: var(--lf-down); }
.ssi-card__mua .ssi-val { font-weight: 700; color: var(--lf-up); }
.ssi-card__ban .ssi-val { font-weight: 700; color: var(--lf-down); }
.dc-reports { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.dc-report-class { background: var(--lf-surface); border: 1px solid var(--lf-border);
  border-radius: var(--lf-radius); padding: 12px; }
.dc-report-class-name { font-size: .9rem; font-weight: 600; margin: 0 0 8px; color: var(--lf-text); }
.dc-report-list { list-style: none; margin: 0; padding: 0; }
.dc-report-item a { color: var(--lf-blue); font-size: .85rem; text-decoration: none; display: block; padding: 3px 0; }
.dc-report-item a:hover { color: var(--lf-blue-dark); }
.dc-empty { color: var(--lf-muted); padding: 16px; }

/* ── Home: TOP XU HƯỚNG trending box (prod parity §3.1) ──────── */
.top-trending { background: #fff; border-radius: var(--lf-radius); box-shadow: var(--lf-shadow-lg); padding: 16px; margin-bottom: 24px; }
.top-trending__head { font-size: 1.125rem; font-weight: 700; text-transform: uppercase; color: var(--lf-trending); margin-bottom: 8px; }
.top-trending__list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.top-trending__list li { list-style: decimal; padding-left: 2px; }
.top-trending__list li::marker { color: var(--lf-gold); font-weight: 700; font-size: 1rem; }
.top-trending__list a { color: var(--lf-text-2); font-size: .95rem; }
.top-trending__list a:hover { color: var(--lf-blue); }
@media (max-width: 1023.98px) { .top-trending { display: none; } }

/* ── Home "Thảo luận 24/7" control bar (prod parity §3.2) ────── */
.home-feed__heading { font-size: 1.25rem; font-weight: 600; color: var(--lf-section); margin: 0 0 16px; }
.home-feed__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; background: #fff; padding-bottom: 16px; }
.article-tabs, .video-tabs,
.feed-tabs {
  display: flex; gap: 24px; flex: 1; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--lf-border);
}
.feed-tabs::-webkit-scrollbar { display: none; }
.feed-tab, .article-tab, .video-tab {
  border: 0; background: transparent; cursor: pointer; white-space: nowrap;
  font-weight: 400; font-size: 1rem; color: var(--lf-muted-3);
  padding: 12px 2px; margin-bottom: -1px;
  border-bottom: 2px solid transparent;
}
.feed-tab:hover, .article-tab:hover, .video-tab:hover { color: var(--lf-blue); }
.feed-tab.is-active, .article-tab.is-active, .video-tab.is-active {
  color: var(--lf-blue); font-weight: 700; border-bottom-color: var(--lf-blue);
}
.feed-controls { display: flex; align-items: center; gap: 10px; }
.feed-date {
  height: 36px; width: 150px; border: 1px solid var(--lf-border); border-radius: var(--lf-radius-sm);
  background: transparent; padding: 0 12px; font-weight: 700; color: var(--lf-blue); font-size: .9rem;
}
.feed-reset { width: 36px; height: 36px; border: 0; border-radius: var(--lf-radius-sm); background: var(--lf-accent-blue-50); color: var(--lf-blue); cursor: pointer; }
.feed-important { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.feed-important input { position: absolute; opacity: 0; pointer-events: none; }
.feed-important__track { position: relative; width: 40px; height: 22px; background: var(--lf-blue-accent); border-radius: 9999px; transition: background .2s; }
.feed-important__thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform .2s; }
.feed-important input:checked + .feed-important__track { background: var(--lf-blue); }
.feed-important input:checked + .feed-important__track .feed-important__thumb { transform: translateX(18px); }
.feed-important__label { font-weight: 500; color: var(--lf-text-2); font-size: .9rem; }

/* ── Home: day-group divider + timeline feed rows (prod parity §3.3/§3.4) ── */
.feed-daychip {
  background: var(--lf-indigo-100); color: var(--lf-blue);
  font-size: 1rem; font-weight: 700; border-radius: 4px;
  padding: 16px; margin: 16px 0 0;
}
.feed-list { position: relative; }
.feed-row { position: relative; display: flex; transition: background .15s; }
.feed-row:hover { background: var(--lf-hover); }
.feed-row__rail { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 12px 0; }
.feed-row__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lf-up-bright); flex: 0 0 auto; }
.feed-row__rail::after { content: ""; width: 1px; flex: 1; background: var(--lf-border-3); }
.feed-row--breaking .feed-row__dot { background: var(--lf-down); }
.feed-row__body { flex: 1; min-width: 0; padding: 16px 4px 16px 0; }
.feed-row__meta { display: flex; align-items: center; gap: 7px; font-size: .875rem; color: var(--lf-time); }
.feed-row__time { text-transform: uppercase; }
.feed-row__sep { color: var(--lf-muted-2); }
.feed-row__author { display: inline-flex; align-items: center; gap: 6px; }
.feed-row__pfp { border-radius: 50%; }
.feed-row__author-name { font-weight: 500; color: var(--lf-author); text-transform: capitalize; }
.feed-row__title {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  margin: 6px 0 0; font-size: 1.125rem; font-weight: 700; line-height: 1.333; color: var(--lf-title);
}
.feed-row__title:hover { color: var(--lf-blue); }
.feed-row--breaking .feed-row__title { color: var(--lf-down); }
.feed-row__actions { display: flex; justify-content: flex-end; gap: 18px; margin-top: 8px; font-size: .82rem; color: var(--lf-time); }
.feed-row__action { display: inline-flex; align-items: center; gap: 5px; color: var(--lf-time); }
.feed-row__action:hover { color: var(--lf-blue); }
.feed-row__share { color: var(--lf-blue); }

/* show-more (pill, blue outline → filled) */
.feed-more { display: flex; justify-content: center; margin-top: 18px; }
.btn-show-more {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 26px; font-weight: 600; font-size: .9rem;
  color: var(--lf-blue); background: var(--lf-surface);
  border: 1px solid var(--lf-blue); border-radius: var(--lf-radius-pill); cursor: pointer;
}
.btn-show-more:hover { background: var(--lf-blue); color: #fff; }

/* ── Module landing extras ──────────────────────────────────── */
.section-head { display: flex; align-items: center; justify-content: space-between; }
.section-more { font-size: .85rem; font-weight: 600; color: var(--lf-blue); }
.module-prices { margin-top: 28px; }

/* ── Right sidebar — shared widget card (prod: plain, no box) ── */
.sidebar-card {
  background: transparent;
  margin-bottom: 28px;
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; }
.sidebar-head .sidebar-title { flex: 1; }
.sidebar-more { font-size: .82rem; font-weight: 700; color: var(--lf-blue); white-space: nowrap; }

/* PizzINT gauge widget (prod parity, UI-PARITY-AUDIT §4.4) */
.pizzint-info { border: 0; background: transparent; color: var(--lf-blue); cursor: pointer; font-size: 1rem; }
.pizzint-question { margin: 0 0 8px; font-size: .85rem; }
.gauge { display: flex; align-items: center; justify-content: center; height: 130px; }
.gauge__fallback {
  width: 180px; height: 90px; margin-top: 16px;
  border-radius: 180px 180px 0 0;
  background: conic-gradient(from 270deg at 50% 100%, #c7d8f6 0deg, #749ee6 45deg, #3f61d1 90deg, #26326a 135deg, var(--lf-bg) 180deg);
  display: flex; align-items: flex-end; justify-content: center; position: relative;
}
.gauge__fallback::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; top: 28px;
  background: var(--lf-surface); border-radius: 160px 160px 0 0;
}
.gauge__value { position: relative; z-index: 1; font-size: 1.5rem; font-weight: 800; color: var(--lf-section); padding-bottom: 4px; }
.pizzint-status { margin: 8px 0 12px; text-align: center; font-size: .72rem; font-weight: 600; text-transform: uppercase; color: var(--lf-muted-3); }
.btn-ai {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%;
  border: 0; cursor: pointer;
  background: var(--lf-accent-blue); color: #fff;
  border-radius: var(--lf-radius-pill); padding: 10px 0; font-weight: 700; font-size: .9rem;
}
.btn-ai:hover { background: var(--lf-primary-700); color: #fff; }

/* sidebar video block — portrait, overlaid title+author (prod parity §4.3) */
.sidebar-video__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 1280px) { .sidebar-video__grid { grid-template-columns: 1fr 1fr 1fr; } }
.sidebar-video__grid .rt-empty { grid-column: 1 / -1; }

/* realtime-quotes 2-col widget (.rt-row*) is styled in the "Right sidebar — realtime" section above.
   Flat/zero percent renders orange to match live longf.vn. */
.rt-row--flat .rt-pct { color: #f59e0b; }

/* economic calendar (Lịch kinh tế) */
.econ-calendar { padding: 4px 0; }
.cal-row { padding: 10px 16px; border-bottom: 1px solid var(--lf-border-2); font-size: .82rem; }
.cal-row:last-child { border-bottom: 0; }
.cal-row__head { display: flex; align-items: center; gap: 7px; }
.cal-row__time { color: var(--lf-muted); font-variant-numeric: tabular-nums; }
.cal-row__flag { font-size: 1.1rem; line-height: 1; }
.cal-row__title { flex: 1; min-width: 0; color: var(--lf-text-2); }
.cal-row__impact { color: var(--lf-flat); white-space: nowrap; font-size: .72rem; }
.cal-row__vals { display: flex; gap: 12px; margin-top: 6px; color: var(--lf-muted); }
.cal-row__val { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.cal-row__val b { font-weight: 500; font-size: .72rem; color: var(--lf-muted-2); }

/* ── Article detail — share + related ───────────────────────── */
.article-detail__pfp { border-radius: 50%; vertical-align: middle; }
.article-detail__author { display: inline-flex; align-items: center; gap: 6px; }
.article-detail__stat { display: inline-flex; align-items: center; gap: 5px; }
.article-detail__stat::before { content: "·"; margin-right: 6px; color: var(--lf-muted-2); }
.article-detail__share { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--lf-border-2); }
.share-label { font-size: .85rem; font-weight: 600; color: var(--lf-muted); }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--lf-blue-soft); color: var(--lf-blue);
}
.share-btn:hover { background: var(--lf-blue); color: #fff; }
.article-related, .article-comments { margin-top: 28px; }

/* ── Video grid ─────────────────────────────────────────────── */
/* portrait video cards (UI-PARITY-AUDIT §6.4): 1/2/3 cols, aspect 3/4, overlaid title+author */
.video-grid { display: grid; grid-template-columns: 1fr; gap: 12px 12px; }
@media (min-width: 640px) { .video-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 12px; } }
@media (min-width: 1024px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.video-empty { grid-column: 1 / -1; padding: 32px; text-align: center; }
.video-card { border-radius: var(--lf-radius); overflow: hidden; }
.video-card__thumb { position: relative; display: block; aspect-ratio: 3 / 4; background: var(--lf-footer-bg); overflow: hidden; border-radius: var(--lf-radius); }
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem;
  opacity: 0; transition: opacity .18s;
}
.video-card:hover .video-card__play { opacity: 1; }
.video-card__overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 32px 12px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  display: flex; flex-direction: column; gap: 8px;
}
.video-card__overlay-title {
  color: #fff; font-weight: 700; font-size: .9rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-card__byline { display: flex; align-items: center; gap: 8px; font-size: .78rem; }
.video-card__pfp { border-radius: 50%; flex: 0 0 auto; }
.video-card__author { font-weight: 500; color: rgba(255,255,255,.9); text-transform: capitalize; }

/* ── Footer extras (legal block, QR, policy) ────────────────── */
.footer-watermark {
  position: absolute; left: 0; bottom: -20px; width: 60%; height: 80%;
  background: url('../img/logo-social.svg') no-repeat left bottom; background-size: contain;
  opacity: .05; pointer-events: none; z-index: 0;
}
.footer-qr { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: .78rem; color: rgba(255,255,255,.7); }
.footer-qr__img { border-radius: 8px; background: #fff; padding: 6px; }
.footer-legal { padding: 18px 0; font-size: .8rem; color: rgba(255,255,255,.6); border-top: 1px solid rgba(255,255,255,.12); }
.footer-legal__license { color: #fff; text-decoration: underline; white-space: nowrap; }
.footer-legal i { color: var(--lf-blue); margin-right: 4px; }
.footer-legal__company { font-weight: 700; color: rgba(255,255,255,.85); margin: 0 0 4px; }
.footer-legal p { margin: 0 0 3px; }
.site-footer .footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-policy { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; font-size: .82rem; }
.footer-policy li + li { border-left: 1px solid rgba(255,255,255,.25); padding-left: 16px; }
.footer-copy { font-size: .82rem; color: rgba(255,255,255,.6); }

/* ── Misc ───────────────────────────────────────────────────── */
.chart-empty { padding: 24px; text-align: center; color: var(--lf-muted); }

@media (max-width: 991.98px) {
  .news-grid { grid-template-columns: 1fr; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-actions { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 575.98px) {
  .article-card--compact .article-card__link { grid-template-columns: 104px 1fr; }
  .article-detail { padding: 18px; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
}

/* ── Member / auth (A8) ─────────────────────────────────────── */
.btn-account {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--lf-blue); color: var(--lf-blue); background: var(--lf-surface);
  border-radius: var(--lf-radius-pill); padding: 7px 16px; font-size: .88rem; font-weight: 600; white-space: nowrap;
}
.btn-account:hover { background: var(--lf-blue-soft); color: var(--lf-blue-dark); }
.btn-logout {
  border: 1px solid var(--lf-border); color: var(--lf-text-muted); background: var(--lf-surface);
  border-radius: var(--lf-radius-pill); padding: 7px 16px; font-size: .88rem; font-weight: 600; white-space: nowrap;
}
.btn-logout:hover { background: var(--lf-blue-soft); }
.member-auth { display: flex; justify-content: center; padding: 32px 0; }
.member-card {
  width: 100%; max-width: 420px; background: var(--lf-surface);
  border: 1px solid var(--lf-border); border-radius: var(--lf-radius); box-shadow: var(--lf-shadow);
  padding: 28px 26px;
}
.member-card__title { font-size: 1.35rem; font-weight: 700; margin: 0 0 18px; }
.member-card__notice {
  background: var(--lf-blue-soft); color: var(--lf-blue-dark);
  border-radius: var(--lf-radius-sm, 8px); padding: 10px 12px; font-size: .85rem; margin: 0 0 18px;
}
.member-field { margin-bottom: 14px; }
.member-field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 5px; }
.member-field input {
  width: 100%; border: 1px solid var(--lf-border); border-radius: var(--lf-radius-sm, 8px);
  padding: 9px 11px; font-size: .92rem; background: var(--lf-bg, #fff); color: var(--lf-text, inherit);
}
.member-field input:focus { outline: none; border-color: var(--lf-blue); box-shadow: 0 0 0 3px var(--lf-blue-soft); }
.member-field__otp { display: flex; gap: 8px; }
.member-field__otp input { flex: 1; }
.btn-otp { white-space: nowrap; border: 1px solid var(--lf-border); border-radius: var(--lf-radius-sm, 8px); padding: 0 14px; font-size: .85rem; }
.btn-otp:disabled { opacity: .5; cursor: not-allowed; }
.member-form__error { color: var(--lf-down, #d32f2f); font-size: .85rem; margin: 4px 0 12px; }
.member-form__submit { width: 100%; justify-content: center; margin-top: 6px; }
.member-form__logout { background: var(--lf-down, #d32f2f); color: #fff; border: none; margin-top: 18px; }
.member-form__links { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: .85rem; }
.member-form__links a { color: var(--lf-blue); }
.member-info { margin: 0 0 16px; }
.member-info dt { font-size: .8rem; color: var(--lf-text-muted); }
.member-info dd { font-size: 1rem; font-weight: 600; margin: 0 0 10px; }

/* ── Sidebar gauge (ECharts canvas overrides the CSS fallback) ── */
.gauge--charted .gauge__fallback { display: none; }
.pizzint-gauge[data-chart] { width: 100%; }

/* ── Sidebar video cards — portrait, overlaid title+author (prod parity §4.3) ── */
.sv-item { display: block; text-decoration: none; color: inherit; }
.sv-thumb {
  position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: var(--lf-radius-sm, 8px); background: var(--lf-footer-bg);
}
.sv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 8px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
}
.sv-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: .76rem; font-weight: 700; line-height: 1.3; color: #fff;
}
.sv-byline { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .7rem; color: rgba(255,255,255,.9); }
.sv-byline img { border-radius: 50%; flex: 0 0 auto; }

/* ── MiniIndices bottom ticker (UI-PARITY-AUDIT §2.3) ──────────────────────── */
.lf-ticker {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: var(--lf-ticker-h); overflow: hidden;
  background: rgba(55, 65, 81, .92); /* gray-700 */
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding-bottom: env(safe-area-inset-bottom);
}
.lf-ticker__track { display: flex; width: max-content; animation: lf-ticker linear infinite; }
.lf-ticker:hover .lf-ticker__track { animation-play-state: paused; }
.lf-ticker__list { display: flex; }
@keyframes lf-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  height: var(--lf-ticker-h); padding: 0 16px;
  border-right: 1px solid rgba(255, 255, 255, .12);
  font-size: .75rem; font-weight: 600; color: #fff;
  transition: background .15s;
}
.ticker-item:hover { background: rgba(0, 0, 0, .35); }
.ticker-code { color: #fff; }
.ticker-item--up   .ticker-price, .ticker-item--up   .ticker-pct { color: var(--lf-up-bright); }
.ticker-item--down .ticker-price, .ticker-item--down .ticker-pct { color: var(--lf-down); }
.ticker-item--flat .ticker-price, .ticker-item--flat .ticker-pct { color: var(--lf-flat); }
.ticker-pct { color: rgba(255, 255, 255, .75); }
/* keep the fixed strip from covering the footer's last line */
body { padding-bottom: var(--lf-ticker-h); }
/* full-width pages (home / data): no Bootstrap container cap, prod-style side padding */
.site-main--full { padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 1024px) { .site-main--full { padding-left: 2.5rem; padding-right: 2.5rem; } }
@media (min-width: 1536px) { .site-main--full { padding-left: 5rem; padding-right: 5rem; } }

/* ── DC chart sections (prod parity §5.3/§5.4) ─────────────────────────────── */
.dc-chart-head { flex-wrap: wrap; gap: 16px; }
.dc-typetabs { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-typetab {
  border: 1px solid var(--lf-border-3); background: transparent; cursor: pointer;
  border-radius: var(--lf-radius-sm); padding: 8px 16px; font-size: .95rem; color: var(--lf-text-2);
}
.dc-typetab.is-active { border-color: var(--lf-accent-blue); background: var(--lf-accent-blue-50); color: var(--lf-accent-blue); font-weight: 700; }
.dc-chart { position: relative; }
.dc-chart__toolbar { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.dc-chart__canvas { width: 100%; min-height: 300px; }
.dc-chart__legend {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 20px; margin-top: 40px;
}
.dc-legend-item { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .75rem; }
.dc-legend-item.disabled { opacity: .3; }
.dc-legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
