/* FXScalpers theme v2
   Hệ thống: nền than tối (sáng khi máy đặt light mode), MỘT màu nhấn emerald,
   Be Vietnam Pro cho chữ, Geist Mono chỉ cho con số.
   Bo góc: control (nút, chip, input) 8px; bề mặt (card, khối) 14px. Không dùng số khác.
   Chuyển động: chỉ transform/opacity, ease-out mạnh, <= 220ms. Không glow. */

/* ---------- Tokens ---------- */
:root {
  --bg: oklch(14.8% 0.009 255);
  --band: oklch(18% 0.011 255);
  --surface: oklch(20.5% 0.01 255);
  --surface-2: oklch(24% 0.012 255);
  --line: oklch(29% 0.012 255);
  --line-strong: oklch(38% 0.014 255);
  --text: oklch(95% 0.004 255);
  --text-2: oklch(77% 0.01 255);
  --text-3: oklch(62% 0.012 255);
  --brand: oklch(76% 0.13 165);
  --brand-ink: oklch(19% 0.03 165);
  --brand-soft: oklch(76% 0.13 165 / 0.1);
  --up: oklch(76% 0.13 165);
  --down: oklch(70% 0.15 25);

  --font: var(--gh-font-body, "Be Vietnam Pro"), system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-control: 8px;
  --r-surface: 14px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --gutter: 20px;
  --w-page: 1180px;
  --w-text: 700px;
  --w-wide: 960px;
  --header-h: 64px;
  --stack-shadow: 0 -24px 60px -30px oklch(5% 0.02 255 / 0.7);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--gh-font-heading, var(--font)); margin: 0; font-weight: 700; line-height: 1.22; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: var(--brand-ink); }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 30;
  padding: 10px 14px; border-radius: var(--r-control);
  background: var(--brand); color: var(--brand-ink); font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--w-page) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container-text { width: 100%; max-width: calc(var(--w-text) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { width: 100%; max-width: calc(var(--w-wide) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
@media (max-width: 480px) { :root { --gutter: 16px; } }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--r-control);
  font: 600 0.9375rem/1 var(--font); white-space: nowrap; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 1rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, var(--text)); }
  .btn-ghost:hover { border-color: var(--text-3); }
}

.link-quiet { color: var(--text-2); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.link-arrow { color: var(--brand); font-weight: 600; font-size: 0.9375rem; white-space: nowrap; }
.link-arrow::after { content: "→"; display: inline-block; margin-left: 0.35em; transition: transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-quiet:hover { color: var(--text); text-decoration-color: var(--text-3); }
  .link-arrow:hover::after { transform: translateX(3px); }
}

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: var(--r-control); background: transparent; color: var(--text-2); cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.icon-btn:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--surface-2); color: var(--text); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
  max-width: calc(var(--w-page) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter);
}
.logo { display: inline-flex; align-items: center; gap: 9px; flex: none; color: var(--text); }
.logo-a { fill: var(--text); }
.logo-b { fill: var(--brand); }
.signal-avatar .logo-a { fill: var(--text); }
.logo-text { font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.035em; }

.header-nav { flex: 1; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-block; padding: 8px 11px; border-radius: var(--r-control);
  color: var(--text-2); font-size: 0.9375rem; font-weight: 500; white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
}
.nav-link.is-current { color: var(--text); }
@media (hover: hover) and (pointer: fine) { .nav-link:hover { color: var(--text); background: var(--surface-2); } }
.nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-cta { height: 40px; padding: 0 16px; }
.menu-btn { display: none; }

@media (max-width: 1119px) {
  .menu-btn { display: inline-grid; }
  .header-cta { display: none; }
  .header-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 19;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: 8px var(--gutter) 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(-6px); visibility: hidden;
    transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms;
  }
  .header-nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { display: block; padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; color: var(--text); }
  .nav-cta-mobile { display: flex; width: 100%; margin-top: 20px; height: 52px; }
  .menu-btn[aria-expanded="true"] .menu-line-a { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-line-b { transform: translateY(-4px) rotate(-45deg); }
  .menu-line-a, .menu-line-b { transform-origin: 12px 12px; transition: transform 180ms var(--ease-out); }
}
body.menu-open { overflow: hidden; }

/* ---------- Home: hero 3D ---------- */
.hero3d { position: relative; isolation: isolate; overflow-x: clip; }
.hero-visual { position: relative; display: flex; align-items: flex-end; min-height: 600px; padding-top: 220px; }
.hero3d-canvas {
  position: absolute; z-index: -1; inset: -40px -160px -10px -80px;
  opacity: 0; transition: opacity 900ms var(--ease-out);
  -webkit-mask-image: radial-gradient(70% 62% at 58% 42%, #000 45%, transparent 100%);
          mask-image: radial-gradient(70% 62% at 58% 42%, #000 45%, transparent 100%);
}
.hero3d-canvas.is-ready { opacity: 1; }
.hero3d-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.hero-visual .signal { position: relative; width: min(356px, 100%); margin-left: -28px; }
.hero {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  align-items: center; gap: 56px;
  min-height: min(700px, calc(100svh - var(--header-h)));
  padding-top: 64px; padding-bottom: 88px;
}
.hero-kicker { font-size: 0.9375rem; font-weight: 600; color: var(--brand); margin-bottom: 14px; }
.hero-title { font-size: clamp(2.25rem, 1.3rem + 3vw, 3.5rem); line-height: 1.14; letter-spacing: -0.03em; max-width: 19ch; }
.hero-sub { margin-top: 20px; max-width: 46ch; font-size: 1.1875rem; color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }

/* Thẻ tín hiệu: nghiêng 3D theo chuột (main.js), có quán tính */
.signal { margin: 0; perspective: 900px; }
.signal-card {
  background: color-mix(in oklch, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: var(--r-surface);
  padding: 18px 18px 16px;
  box-shadow: 0 40px 80px -40px oklch(8% 0.03 165 / 0.7), inset 0 1px 0 oklch(100% 0 0 / 0.06);
  transform: rotateY(calc(var(--tx, 0) * 1deg)) rotateX(calc(var(--ty, 0) * 1deg));
  transform-style: preserve-3d; will-change: transform;
}
.signal-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.signal-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.signal-channel { font-weight: 600; font-size: 0.9375rem; }
.signal-time { margin-left: auto; color: var(--text-3); font-size: 0.8125rem; }
.signal-body { padding-top: 14px; }
.signal-pair { display: flex; align-items: baseline; gap: 10px; font-size: 1.125rem; font-weight: 600; }
.signal-side { font-size: 0.8125rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.signal-side.is-sell { color: var(--down); background: color-mix(in oklch, var(--down) 12%, transparent); }
.signal-side.is-buy { color: var(--up); background: color-mix(in oklch, var(--up) 12%, transparent); }
.signal-levels { margin: 14px 0 0; display: grid; gap: 2px; font-size: 0.9375rem; }
.signal-levels > div { display: grid; grid-template-columns: 52px 1fr auto; align-items: baseline; padding: 6px 0; }
.signal-levels dt { color: var(--text-3); }
.signal-levels dd { margin: 0; }
.signal-delta { font-size: 0.8125rem; text-align: right; }
.signal-delta.is-up { color: var(--up); }
.signal-delta.is-down { color: var(--down); }
.signal-why { margin-top: 10px; font-size: 0.9375rem; color: var(--text-2); line-height: 1.55; }
.signal-reply {
  display: flex; gap: 10px; align-items: baseline;
  margin-top: 14px; padding: 10px 12px;
  border-radius: 10px; background: var(--surface-2); border-left: 2px solid var(--brand);
  font-size: 0.9375rem;
}
.signal-reply time { color: var(--text-3); font-size: 0.8125rem; }
.signal-caption { margin-top: 12px; font-size: 0.8125rem; color: var(--text-3); }
@media (prefers-reduced-motion: no-preference) {
  .signal-levels > div, .signal-why, .signal-reply { animation: rise 420ms var(--ease-out) both; }
  .signal-levels > div:nth-child(1) { animation-delay: 160ms; }
  .signal-levels > div:nth-child(2) { animation-delay: 200ms; }
  .signal-levels > div:nth-child(3) { animation-delay: 240ms; }
  .signal-levels > div:nth-child(4) { animation-delay: 280ms; }
  .signal-why { animation-delay: 320ms; }
  .signal-reply { animation-delay: 1100ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 899px) {
  .hero { grid-template-columns: 1fr; gap: 40px; min-height: 0; padding-top: 40px; padding-bottom: 56px; }
  .hero-sub { font-size: 1.0625rem; }
  .hero-visual { min-height: 0; padding-top: 200px; }
  .hero-visual .signal { margin-left: 0; }
  .hero3d-canvas { inset: -20px calc(var(--gutter) * -1) 40% calc(var(--gutter) * -1); -webkit-mask-image: radial-gradient(80% 70% at 50% 45%, #000 40%, transparent 100%); mask-image: radial-gradient(80% 70% at 50% 45%, #000 40%, transparent 100%); }
  .hero-visual .signal { width: 100%; }
}

/* ---------- Home: sections ---------- */
.section-title { font-size: clamp(1.625rem, 1.2rem + 1.3vw, 2.25rem); letter-spacing: -0.025em; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }

.inside { padding-top: 40px; padding-bottom: 104px; }
.bento-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 28px; }
.bento-tags li { padding: 5px 10px; border-radius: var(--r-control); background: var(--surface-2); font-size: 0.8125rem; color: var(--text); }
@media (max-width: 899px) {
  .inside { padding-bottom: 72px; }
}

.fit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding-bottom: 104px; align-items: start; }
@media (max-width: 899px) { .fit { grid-template-columns: 1fr; gap: 24px; padding-bottom: 72px; } }

.perks { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; padding-bottom: 104px; }
@media (max-width: 899px) { .perks { grid-template-columns: 1fr; gap: 28px; padding-bottom: 72px; } }
.vip-label { font-weight: 600; font-size: 0.9375rem; color: var(--brand); }

/* ---------- Post list ---------- */

.post-row-tag { color: var(--brand); font-weight: 600; }
.empty-note { padding: 28px 0; color: var(--text-3); }

/* ---------- CTA block ---------- */
.cta-free {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  margin-bottom: 96px; padding: 32px;
  background: var(--brand-soft); border: 1px solid color-mix(in oklch, var(--brand) 26%, transparent); border-radius: var(--r-surface);
}
.cta-free-copy { max-width: 52ch; }
.cta-free-title { font-size: 1.5rem; letter-spacing: -0.02em; }
.cta-free p { margin-top: 8px; color: var(--text-2); }
.article-foot .cta-free { margin: 40px 0 0; }
@media (max-width: 599px) { .cta-free { padding: 24px 20px; } .cta-free .btn { width: 100%; } }

/* ---------- Listing ---------- */
.listing { padding-top: 56px; padding-bottom: 96px; }
.listing-head { max-width: var(--w-text); margin-bottom: 28px; }
.listing-title { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); letter-spacing: -0.025em; }
.listing-sub { margin-top: 10px; color: var(--text-2); font-size: 1.0625rem; }
.pillars {
  display: flex; gap: 8px; margin: 0 calc(var(--gutter) * -1) 8px; padding: 0 var(--gutter) 16px;
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.pillars::-webkit-scrollbar { display: none; }
.pill {
  flex: none; scroll-snap-align: start;
  padding: 7px 13px; border: 1px solid var(--line); border-radius: var(--r-control);
  font-size: 0.875rem; font-weight: 500; color: var(--text-2); white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);
}
.pill:active { transform: scale(0.97); }
.pill.is-current { background: var(--text); border-color: var(--text); color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .pill:not(.is-current):hover { color: var(--text); border-color: var(--line-strong); } }

.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 32px; }
.pagination > :last-child { justify-self: end; }
.pagination-info { color: var(--text-3); font-size: 0.875rem; }

/* ---------- Article ---------- */
.article { padding-top: 56px; }
.article-head { margin-bottom: 36px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 0.8125rem; color: var(--text-3); margin-bottom: 16px; }
.article-tag { color: var(--brand); font-weight: 600; font-family: var(--font); }
.article-title { font-size: clamp(2rem, 1.35rem + 2.2vw, 2.875rem); line-height: 1.18; letter-spacing: -0.025em; }
.article-lede { margin-top: 16px; font-size: 1.1875rem; color: var(--text-2); line-height: 1.6; }
.article-image { margin: 0 auto 40px; }
.article-image img { width: 100%; border-radius: var(--r-surface); border: 1px solid var(--line); }
.article-image figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--text-3); text-align: center; }
.article-foot { padding-top: 40px; padding-bottom: 72px; }
.article-risk { font-size: 0.875rem; color: var(--text-3); padding-top: 20px; border-top: 1px solid var(--line); }
.related { padding-bottom: 96px; }
.related .section-title { font-size: 1.375rem; margin-bottom: 16px; }

/* Prose (nội dung Ghost) */
.prose { font-size: 1.0625rem; line-height: 1.75; color: color-mix(in oklch, var(--text) 88%, var(--text-2)); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.1em; font-size: 1.625rem; letter-spacing: -0.02em; color: var(--text); }
.prose h3 { margin-top: 1.8em; font-size: 1.3125rem; color: var(--text); }
.prose h4 { margin-top: 1.6em; font-size: 1.0625rem; color: var(--text); }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.6em; }
.prose a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--text-3); }
.prose blockquote { margin-inline: 0; padding: 2px 0 2px 20px; border-left: 2px solid var(--brand); color: var(--text); font-weight: 500; }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2.5em; }
.prose code { font-family: var(--mono); font-size: 0.9em; padding: 2px 5px; border-radius: 5px; background: var(--surface-2); }
.prose pre { overflow-x: auto; padding: 16px; border-radius: var(--r-control); background: var(--surface); border: 1px solid var(--line); font-size: 0.875rem; }
.prose pre code { padding: 0; background: none; }
.prose img { border-radius: 10px; }
.prose figure { margin-inline: 0; }
.prose figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--text-3); text-align: center; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; white-space: nowrap; }
.prose td { font-variant-numeric: tabular-nums; }
.prose .kg-width-wide { position: relative; width: min(var(--w-wide), 100vw - var(--gutter) * 2); left: 50%; transform: translateX(-50%); }
.prose .kg-width-full { position: relative; width: 100vw; left: 50%; transform: translateX(-50%); }
.prose .kg-width-full img { border-radius: 0; }
.prose .kg-callout-card { border-radius: var(--r-control); }
.prose .kg-bookmark-card a { color: inherit; text-decoration: none; }

/* ---------- Error ---------- */
.error { padding-top: 96px; padding-bottom: 120px; }
.error-code { color: var(--text-3); font-size: 0.9375rem; margin-bottom: 12px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 40px; color: var(--text-3); font-size: 0.875rem; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; }
.footer-tagline { margin-top: 12px; max-width: 42ch; color: var(--text-2); }
.footer-nav .nav-list { justify-content: flex-end; flex-wrap: wrap; }
.footer-nav .nav-link { font-size: 0.875rem; }
.footer-side { display: grid; gap: 10px; justify-items: end; }
.footer-contact a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.footer-risk { grid-column: 1 / -1; max-width: 80ch; line-height: 1.6; }
.footer-risk a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.footer-copy { grid-column: 1 / -1; }
@media (max-width: 699px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav .nav-list { justify-content: flex-start; margin-left: -11px; }
  .footer-side { justify-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

/* Chủ đề chưa có bài: menu chờ, không bấm được */
.pill.is-soon { display: inline-flex; align-items: center; gap: 7px; color: var(--text-3); border-style: dashed; cursor: default; }
.pill-soon { font-size: 0.75rem; color: var(--text-3); }

/* ---------- Chiều sâu toàn trang ---------- */

/* Section trồi lên có chiều sâu khi cuộn (scroll-driven, chỉ trình duyệt hỗ trợ) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-depth linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
      transform-origin: 50% 100%;
    }
    @keyframes reveal-depth {
      from { opacity: 0; transform: perspective(1200px) translateY(56px) rotateX(10deg) scale(0.97); }
      to { opacity: 1; transform: none; }
    }
  }
}

/* Thẻ nghiêng 3D + vệt sáng theo chuột (main.js gắn --rx --ry --mx --my) */
.tilt { position: relative; transform: perspective(900px) rotateX(calc(var(--ry, 0) * 1deg)) rotateY(calc(var(--rx, 0) * 1deg)); transition: transform 500ms var(--ease-out), border-color 160ms ease; }
.tilt.is-active { transition: border-color 160ms ease; }
.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklch, var(--brand) 16%, transparent), transparent 60%);
  transition: opacity 240ms ease;
}
.tilt.is-active::after { opacity: 1; }

/* Thanh CTA dính đáy trên mobile */
.sticky-cta { display: none; }
@media (max-width: 899px) {
  .sticky-cta {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 15;
    padding: 10px 10px 10px 16px; border-radius: var(--r-surface);
    background: color-mix(in oklch, var(--surface) 90%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line); box-shadow: 0 18px 40px -18px oklch(5% 0.02 255 / 0.8);
    transform: translateY(calc(100% + 24px)); opacity: 0;
    transition: transform 260ms var(--ease-out), opacity 200ms ease;
  }
  .sticky-cta.is-shown { transform: none; opacity: 1; }
  .sticky-cta p { flex: 1; font-size: 0.875rem; font-weight: 600; line-height: 1.3; }
  .sticky-cta .btn { height: 42px; padding: 0 16px; }
}

/* Đổi kèo mẫu: mờ + nhòe để hai trạng thái hòa vào nhau (không thấy 2 lớp chồng) */
.signal-body, .signal-reply, .signal-time { transition: opacity 220ms ease, filter 220ms ease; }
.signal-card.is-swapping .signal-body, .signal-card.is-swapping .signal-reply, .signal-card.is-swapping .signal-time { opacity: 0; filter: blur(4px); }

/* ---------- Máy tính khối lượng lệnh ---------- */
.calc {
  margin-bottom: 40px; padding: 24px; border-radius: var(--r-surface);
  background: var(--surface); border: 1px solid var(--line);
}
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.calc-field { display: grid; gap: 6px; font-size: 0.875rem; font-weight: 500; color: var(--text-2); }
.calc-field[hidden] { display: none; }
.calc-field input, .calc-field select {
  height: 46px; padding: 0 12px; border-radius: var(--r-control);
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--text);
  font: 500 1rem/1 var(--mono); font-variant-numeric: tabular-nums;
}
.calc-field select { font-family: var(--font); }
.calc-field input:focus-visible, .calc-field select:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.calc-out {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 10px;
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line);
}
.calc-lots { font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 500; color: var(--brand); line-height: 1; }
.calc-unit { font-size: 1.125rem; color: var(--text-2); }
.calc-detail { grid-column: 1 / -1; font-size: 0.9375rem; color: var(--text-2); }
@media (max-width: 559px) { .calc { padding: 18px; } .calc-grid { grid-template-columns: 1fr; } }

/* Dải công cụ ở cuối mục playbook trên trang chủ */

/* ---------- Phiên giao dịch ---------- */
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--up); vertical-align: 1px; box-shadow: 0 0 0 0 color-mix(in srgb, var(--up) 60%, transparent); }
@media (prefers-reduced-motion: no-preference) { .live-dot { animation: live 2s ease-out infinite; } }
@keyframes live { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.sess-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-height: 240px; }
.sess { padding: 18px 20px; border-radius: var(--r-surface); background: var(--surface); border: 1px solid var(--line); }
.sess.is-open { border-color: color-mix(in srgb, var(--up) 40%, var(--line)); }
.sess-head { display: flex; justify-content: space-between; align-items: baseline; }
.sess-name { font-weight: 700; font-size: 1.125rem; }
.sess-state { font-size: 0.875rem; color: var(--text-3); }
.sess.is-open .sess-state { color: var(--up); font-weight: 600; }
.sess-bar { height: 4px; margin: 14px 0 10px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.sess-bar span { display: block; height: 100%; background: var(--up); transform-origin: left; transition: transform 600ms var(--ease-out); }
.sess-meta { font-size: 0.8125rem; color: var(--text-2); }
.sess-note { margin: 14px 0 36px; color: var(--text-2); font-size: 0.9375rem; }
@media (max-width: 559px) { .sess-board { grid-template-columns: 1fr; } }

/* Khối "Start here" ở trang 1 của /insights/ */
.start-here { margin: 8px 0 40px; }
.start-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 14px; }
.start-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.start-card {
  display: flex; flex-direction: column; gap: 10px; min-height: 168px; padding: 18px;
  border-radius: var(--r-surface); background: var(--surface); border: 1px solid var(--line);
}
.start-card h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
@media (max-width: 999px) { .start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .start-grid { grid-template-columns: 1fr; } .start-card { min-height: 0; } }
.start-card .post-row-tag { font-size: 0.8125rem; }
.ms-archive { margin-top: 48px; }
.ms-archive .section-title { font-size: 1.375rem; margin-bottom: 14px; }

/* Thanh tiến độ đọc (scroll-driven, chỉ trình duyệt hỗ trợ) */
.read-progress { display: none; }
@supports (animation-timeline: scroll()) {
  .read-progress {
    display: block; position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 21; height: 2px;
    background: var(--brand); transform-origin: left; transform: scaleX(0);
    animation: read-progress linear both; animation-timeline: scroll(root);
  }
  @keyframes read-progress { to { transform: scaleX(1); } }
}

/* Chia sẻ bài */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; }
.share-label { font-size: 0.875rem; font-weight: 600; color: var(--text-2); margin-right: 6px; }
.share-btn { height: 38px; padding: 0 14px; font-size: 0.875rem; }
.article-risk a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
   BOLD LAYER (2026-09-26): mega type, marquee, scroll statement, sticky stack,
   drenched CTA, grain. Chuyển động: transform/opacity/filter, reduced-motion tắt hết.
   ===================================================================== */

/* Grain phủ toàn trang để bớt phẳng */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Hero: toàn màn hình, tiêu đề khổng lồ */
@media (min-width: 900px) {
  .hero { min-height: calc(100svh - var(--header-h)); padding-top: 40px; padding-bottom: 64px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
  .hero-visual { min-height: 640px; }
  .hero3d-canvas { inset: -120px -30vw -40px -140px; }
}
.hero-title.mega {
  font-size: clamp(3rem, 1.2rem + 6.4vw, 7.25rem); line-height: 0.98; letter-spacing: -0.045em; font-weight: 700;
  max-width: 9.5ch; text-wrap: balance;
}
.mega .w { display: inline-block; }
.mega .w:last-child { color: var(--brand); }
@media (prefers-reduced-motion: no-preference) {
  .mega .w { animation: word-in 900ms var(--ease-out) both; animation-delay: calc(80ms + var(--i) * 70ms); }
  .hero-sub, .hero-actions, .hero-kicker { animation: word-in 900ms var(--ease-out) both; }
  .hero-kicker { animation-delay: 0ms; } .hero-sub { animation-delay: 480ms; } .hero-actions { animation-delay: 600ms; }
}
@keyframes word-in { from { opacity: 0; transform: translateY(0.35em); filter: blur(8px); } }
.hero-sub { font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.3125rem); max-width: 40ch; margin-top: 28px; }
.hero-actions { margin-top: 36px; }
@media (max-width: 899px) {
  .hero { min-height: 0; }
  .hero-title.mega { font-size: clamp(3rem, 1.5rem + 8.4vw, 4.75rem); max-width: 10ch; }
}

/* Nút cỡ lớn + nút mực (dùng trên nền emerald) */
.btn-xl { height: 60px; padding: 0 30px; font-size: 1.0625rem; }
.btn-ink { background: oklch(16% 0.02 165); color: oklch(97% 0.02 165); }
@media (hover: hover) and (pointer: fine) { .btn-ink:hover { background: oklch(22% 0.03 165); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Tuyên ngôn: chữ sáng dần theo cuộn (main.js gắn .is-lit) */
.statement { padding-bottom: 104px; }

/* Tiêu đề section lớn */
.big-title { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.5rem); line-height: 1; letter-spacing: -0.04em; margin-bottom: 40px; }

/* Chồng thẻ dính */
.inside { padding-top: 24px; padding-bottom: 120px; }

/* CTA cuối: phủ kín emerald, tràn viền */
.final-cta { background: var(--brand); color: oklch(16% 0.03 165); padding: clamp(72px, 10vw, 140px) 0; margin-top: 40px; }
.final-cta h2 { font-size: clamp(2.5rem, 1.3rem + 5vw, 6rem); line-height: 0.98; letter-spacing: -0.045em; max-width: 14ch; }
.final-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; }
.final-row p { font-size: 1.25rem; font-weight: 500; max-width: 30ch; color: oklch(22% 0.04 165); }
.site-footer { border-top: 0; }

/* Trang bên trong: cùng ngôn ngữ đậm với trang chủ */
.listing-title { font-size: clamp(3rem, 1.4rem + 6vw, 7rem); line-height: 0.95; letter-spacing: -0.05em; }
.listing-sub { font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.3125rem); max-width: 46ch; margin-top: 18px; }
.listing-head { margin-bottom: 40px; }
.article-title { font-size: clamp(2.375rem, 1.3rem + 3.6vw, 4.25rem); line-height: 1.02; letter-spacing: -0.04em; }
.article-head { margin-bottom: 48px; }
.article-lede { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); }
.article-tag { display: inline-flex; padding: 4px 10px; border-radius: var(--r-control); background: var(--brand-soft); }
.error-code {
  font-size: clamp(7rem, 4rem + 14vw, 16rem); font-weight: 700; letter-spacing: -0.06em; line-height: 0.85;
  color: transparent; -webkit-text-stroke: 2px var(--brand); margin-bottom: 24px; font-family: var(--font);
}

/* Chủ đề cỡ khổng lồ mờ sau tiêu đề bài */
.article { overflow-x: clip; }
.article-head { position: relative; isolation: isolate; }
.article-bg {
  position: absolute; z-index: -1; left: 50%; top: -0.2em; transform: translateX(-38%);
  font-size: clamp(5rem, 2rem + 12vw, 14rem); font-weight: 700; letter-spacing: -0.06em; line-height: 1; white-space: nowrap;
  color: color-mix(in srgb, var(--brand) 7%, transparent); pointer-events: none;
}
/* Start here: 4 tông giống chồng thẻ trang chủ */
.start-card:nth-child(1) { background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--brand) 34%, var(--surface)), var(--surface) 70%); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.start-card:nth-child(3) { background: linear-gradient(160deg, oklch(26% 0.05 250), oklch(18% 0.03 250)); border-color: transparent; color: oklch(96% 0.01 250); }
.start-card:nth-child(3) .post-row-tag{ color: oklch(84% 0.1 165); }
.start-card:nth-child(4) { background: oklch(96% 0.01 165); border-color: transparent; color: oklch(18% 0.02 165); }
.start-card:nth-child(4) .post-row-tag{ color: oklch(45% 0.11 165); }
.start-card h3 { font-size: 1.1875rem; letter-spacing: -0.02em; }

/* 3D mực trong CTA emerald */
.final-cta { position: relative; overflow: hidden; isolation: isolate; }
.final-3d {
  position: absolute; z-index: -1; top: 0; bottom: 0; right: -10vw; width: 70vw; opacity: 0; transition: opacity 900ms var(--ease-out);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%);
}
.final-3d.is-ready { opacity: 0.9; }
.final-3d canvas { display: block; width: 100% !important; height: 100% !important; }
.final-inner { position: relative; }
@media (max-width: 899px) { .final-3d { width: 120vw; right: -40vw; opacity: 0; } .final-3d.is-ready { opacity: 0.45; } }

/* Menu mobile toàn màn hình, chữ lớn, mục vào lần lượt */
@media (max-width: 1119px) {
  .header-nav { bottom: 0; max-height: none; height: calc(100dvh - var(--header-h)); padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
  .header-nav .nav-list { flex: 1; }
  .header-nav .nav-link { font-size: clamp(1.75rem, 1.2rem + 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; padding: 14px 0; }
  .header-nav .nav-list li { opacity: 0; transform: translateY(10px); transition: opacity 260ms ease, transform 320ms var(--ease-out); }
  .header-nav.is-open .nav-list li { opacity: 1; transform: none; }
  .header-nav.is-open .nav-list li:nth-child(2) { transition-delay: 30ms; }
  .header-nav.is-open .nav-list li:nth-child(3) { transition-delay: 60ms; }
  .header-nav.is-open .nav-list li:nth-child(4) { transition-delay: 90ms; }
  .header-nav.is-open .nav-list li:nth-child(5) { transition-delay: 120ms; }
  .header-nav.is-open .nav-list li:nth-child(6) { transition-delay: 150ms; }
  .nav-cta-mobile { height: 60px; font-size: 1.0625rem; }
}

/* Glossary */
.prose .glossary { display: grid; gap: 0; margin-top: 2em; border-top: 1px solid var(--line); }
.prose .glossary dt { margin-top: 0; padding-top: 22px; font-size: 1.25rem; font-weight: 700; color: var(--text); letter-spacing: -0.015em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose .glossary dd { margin: 6px 0 0; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.prose .glossary dt:target { color: var(--brand); }
.kicker-live { display: inline-flex; align-items: center; margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line-strong); color: var(--text-2); font-weight: 500; }
.kicker-live[hidden] { display: none; }

/* Đầu trang bán hàng (VIP, EA) */
.page-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px 48px; align-items: center; padding-top: 48px; padding-bottom: 56px; min-height: min(560px, 70svh); }
.page-hero-num { font-size: clamp(7rem, 3rem + 16vw, 19rem); font-weight: 700; letter-spacing: -0.07em; line-height: 0.82; color: var(--brand); }
.page-hero-title { font-size: clamp(2.75rem, 1.4rem + 5vw, 5.5rem); line-height: 0.98; letter-spacing: -0.045em; margin-top: 10px; }
.page-hero .article-lede { max-width: 40ch; }
@media (max-width: 899px) {
  .page-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 32px; }
}

/* Timeline 24h các phiên */
.tl { margin-bottom: 28px; padding: 20px 20px 12px; border-radius: var(--r-surface); background: var(--surface); border: 1px solid var(--line); }
.tl-head { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--text-3); margin-bottom: 14px; }
.tl-now-label { color: var(--brand); font-weight: 500; }
.tl-grid { position: relative; padding-left: 84px; }
.tl-bands { position: absolute; inset: 0 0 26px 84px; pointer-events: none; }
.tl-overlap { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--brand) 9%, transparent); border-inline: 1px dashed color-mix(in srgb, var(--brand) 45%, transparent); }
.tl-overlap.is-major { background: color-mix(in srgb, var(--brand) 18%, transparent); }
.tl-overlap em { position: absolute; top: -2px; left: 6px; font-style: normal; font-size: 0.6875rem; font-weight: 600; color: var(--brand); white-space: nowrap; }
.tl-row { position: relative; display: flex; align-items: center; height: 34px; }
.tl-name { position: absolute; left: -84px; width: 76px; font-size: 0.8125rem; font-weight: 600; color: var(--text-2); }
.tl-track { position: relative; flex: 1; height: 12px; border-radius: 6px; background: var(--surface-2); }
.tl-bar { position: absolute; top: 0; bottom: 0; border-radius: 6px; }
.tl-sydney { background: oklch(62% 0.09 250); }
.tl-tokyo { background: oklch(66% 0.12 300); }
.tl-london { background: oklch(72% 0.12 200); }
.tl-newyork { background: var(--brand); }
.tl-axis { position: relative; height: 26px; margin-top: 4px; }
.tl-tick { position: absolute; top: 6px; transform: translateX(-50%); font-size: 0.6875rem; color: var(--text-3); }
.tl-tick:first-child { transform: none; }
.tl-nowline { position: absolute; top: -6px; bottom: 22px; width: 2px; margin-left: 84px; background: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bg) 70%, transparent); }
.tl-nowline::before { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--text); }
@media (max-width: 559px) { .tl-grid { padding-left: 64px; } .tl-bands { left: 64px; } .tl-name { left: -64px; width: 58px; font-size: 0.75rem; } .tl-nowline { margin-left: 64px; } .tl-tick:nth-child(even) { display: none; } }
.tl-grid { padding-top: 22px; }
.tl-bands { top: 0; }
.tl-overlap em { top: 2px; }
.tl-overlap { top: 0; }
/* Hero: chart SMC chiếm phần trên, thẻ tín hiệu hạ xuống góc dưới */
@media (min-width: 900px) {
  .hero-visual { min-height: 700px; padding-top: 380px; }
  .hero-visual .signal { width: min(320px, 100%); margin-left: auto; margin-right: -12px; }
  .hero-visual .signal-card { padding: 14px 14px 12px; }
  .hero-visual .signal-levels { font-size: 0.875rem; }
}

/* ---------- Hiệu ứng 3D bổ sung ---------- */
/* Logo khối 3D cạnh câu tuyên ngôn */
.statement { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.55fr); align-items: center; gap: 24px; }
@media (max-width: 899px) { .statement { grid-template-columns: 1fr; } }

/* Tiêu đề hero có chiều sâu theo chuột (main.js gắn --dx --dy) */
[data-depth] { transform: perspective(1200px) rotateY(calc(var(--dx, 0) * 4deg)) rotateX(calc(var(--dy, 0) * -3deg)); transition: transform 600ms var(--ease-out); transform-style: preserve-3d; }
[data-depth] .w { display: inline-block; transform: translateZ(calc(var(--i, 0) * 6px)); }

/* Ảnh bìa bài viết lật từ nghiêng về phẳng khi cuộn tới */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .article-image, .page-article .article-image { perspective: 1400px; }
    .article-image img {
      animation: img-flip linear both; animation-timeline: view(); animation-range: entry 0% cover 45%;
      transform-origin: 50% 100%;
    }
    @keyframes img-flip { from { transform: rotateX(24deg) scale(0.92); opacity: 0.4; } to { transform: none; opacity: 1; } }
  }
}

/* ---------- v3: nội dung dày hơn (2026-09-26) ---------- */
/* Thẻ bài có ảnh hình giải thích */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
@media (max-width: 1099px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 649px) { .card-grid { grid-template-columns: 1fr; gap: 32px; } }
.post-card-link { display: flex; flex-direction: column; height: 100%; }
.post-card-media { aspect-ratio: 16 / 9; border-radius: var(--r-surface); overflow: hidden; background: #101318; border: 1px solid var(--line); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 320ms var(--ease-out); }
.post-card-meta { display: flex; gap: 12px; align-items: center; margin-top: 16px; font-size: 0.8125rem; color: var(--text-3); }
.post-card-title { margin-top: 8px; font-size: 1.1875rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; transition: color 160ms ease; }
.post-card-excerpt { margin-top: 8px; color: var(--text-2); font-size: 0.9375rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .post-card-link:hover .post-card-media img { transform: scale(1.03); }
  .post-card-link:hover .post-card-title { color: var(--brand); }
}
.listing .card-grid, .ms-archive .card-grid { margin-top: 32px; }
.ms-archive { margin-top: 56px; }
.ms-archive .section-title { margin-bottom: 8px; }
.related .card-grid { margin-top: 24px; }

/* Start here: thẻ ảnh */
.start-card, .start-card:nth-child(n) { padding: 0; min-height: 0; overflow: hidden; background: var(--surface); color: var(--text); border: 1px solid var(--line); display: flex; flex-direction: column; }
.start-card:nth-child(n) .post-row-tag { color: var(--brand); }
.start-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #101318; }
.start-body { padding: 16px 18px 20px; }
.start-body h3 { margin-top: 6px; font-size: 1.0625rem; line-height: 1.35; }
@media (hover: hover) and (pointer: fine) { .start-card:hover { border-color: var(--brand); } }

/* What's inside: bento có demo thật */
.inside { padding-top: 24px; padding-bottom: 112px; }
.inside-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 24px 56px; align-items: end; margin-bottom: 40px; }
.inside-head .big-title { margin-bottom: 0; }
.inside-head p { color: var(--text-2); font-size: 1.125rem; max-width: 40ch; }
.bento2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.b2 { border: 1px solid var(--line); background: var(--surface); border-radius: 22px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 28px; align-content: start; overflow: hidden; }
.b2-setups { grid-column: 1 / -1; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--brand) 16%, var(--surface)), var(--surface) 70%); }
.b2-k { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.b2 h3 { margin-top: 10px; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); line-height: 1.08; letter-spacing: -0.03em; }
.b2 p { margin-top: 12px; color: var(--text-2); font-size: 1.0625rem; line-height: 1.55; max-width: 46ch; }
.b2 .link-arrow { display: inline-block; margin-top: 18px; }
.b2 .bento-tags { margin-top: 20px; padding-top: 0; }
.b2-note { margin-top: 10px !important; font-size: 0.75rem !important; color: var(--text-3) !important; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--mono); }
.b2-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-surface); border: 1px solid var(--line); background: #101318; }
/* Telegram demo */
.tg { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 10px; }
.tg-msg { background: var(--surface-2); border-radius: 14px 14px 14px 4px; padding: 14px 16px; }
.tg-top { display: flex; align-items: center; gap: 10px; }
.tg-top time { margin-left: auto; color: var(--text-3); font-size: 0.8125rem; }
.tg-side { font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.tg-side.is-buy { background: color-mix(in srgb, var(--up) 18%, transparent); color: var(--up); }
.tg-side.is-sell { background: color-mix(in srgb, var(--down) 18%, transparent); color: var(--down); }
.tg-lv { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 0.875rem; color: var(--text-2); }
.tg-lv b { color: var(--text); font-weight: 600; }
.tg-lv .dn b { color: var(--down); } .tg-lv .up b { color: var(--up); }
.tg-msg p { margin-top: 8px; font-size: 0.9375rem; color: var(--text-2); max-width: none; }
.tg-reply { justify-self: start; margin-left: 18px; font-size: 0.9375rem; padding: 9px 14px; border-radius: 12px; background: var(--surface-2); border-left: 3px solid var(--up); display: flex; gap: 10px; align-items: baseline; }
.tg-reply time { color: var(--text-3); font-size: 0.8125rem; }
.tg-reply.is-win b { color: var(--up); } .tg-reply.is-loss { border-left-color: var(--down); } .tg-reply.is-loss b { color: var(--down); }
.up { color: var(--up); } .dn { color: var(--down); }
/* Alert demo */
.alert-demo { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.alert-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.alert-top b { color: var(--down); }
.alert-top .num { color: var(--text-2); font-size: 0.875rem; }
.alert-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--down); box-shadow: 0 0 0 4px color-mix(in srgb, var(--down) 20%, transparent); }
.alert-demo ul { display: grid; gap: 10px; margin-top: 14px; }
.alert-demo li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; font-size: 0.9375rem; color: var(--text-2); }
.alert-demo li .num { color: var(--text); font-weight: 600; }
/* Scorecard demo */
.score-demo { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 8px 20px 16px; }
.score-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; color: var(--text-2); }
.score-row > span:last-child { font-weight: 700; white-space: nowrap; }
.score-row b { color: var(--text); }
.score-h { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.score-h > span:last-child { font-weight: 500; }
@media (max-width: 899px) {
  .inside-head { grid-template-columns: 1fr; }
  .bento2 { grid-template-columns: 1fr; }
  .b2-setups { grid-template-columns: 1fr; }
}

/* Một tuần trong kênh */
.week { padding-bottom: 112px; }
.wk { position: relative; border-top: 3px solid var(--line-strong); padding: 20px 4px 0 0; }
.wk.is-key { border-top-color: var(--brand); }
.wk h3 { margin-top: 8px; font-size: 1.375rem; letter-spacing: -0.02em; }
.wk p { margin-top: 8px; color: var(--text-2); font-size: 0.9375rem; line-height: 1.5; }

/* Phương pháp + playbook */
.method { padding-bottom: 112px; }
.method .big-title{ margin-bottom: 0; }
.method .section-head{ align-items: end; margin-bottom: 20px; }
.method-lede { color: var(--text-2); font-size: 1.125rem; max-width: 60ch; margin-bottom: 36px; }

/* Công cụ */
.tools { padding-bottom: 104px; }
.tools .section-title { margin-bottom: 20px; }
.tool { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-surface); padding: 26px; transition: border-color 160ms ease, transform 200ms var(--ease-out); }
.tool h3 { margin-top: 14px; font-size: 1.1875rem; }
.tool p { margin-top: 6px; color: var(--text-2); font-size: 0.9375rem; line-height: 1.5; }
@media (hover: hover) and (pointer: fine) { .tool:hover { border-color: var(--brand); transform: translateY(-2px); } }

/* FAQ */
.faq { padding-bottom: 112px; display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 32px 56px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--brand); font-size: 1.25rem; line-height: 1; transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--text-2); font-size: 1rem; line-height: 1.65; max-width: 62ch; }
.faq details a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 899px) { .faq { grid-template-columns: 1fr; } }
.b2-plan { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; }
.b2-plan .b2-img { order: -1; }
@media (max-width: 899px) { .b2-plan { grid-template-columns: 1fr; } .b2-plan .b2-img { order: 0; } }

/* ---------- v4: dải nền + khối rõ ràng (2026-09-26, ui-ux-pro-max + frontend-design) ---------- */
/* Mỗi section là một dải full-bleed có viền trên; dải xen kẽ đổi nền để mắt thấy ranh giới khối. */
.band { padding: clamp(64px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.band-alt { background: var(--band); }
.band > section.container { padding-top: 0; padding-bottom: 0; }

/* Tiêu đề section: vừa phải, không còn chữ mega khắp nơi */
.big-title { font-size: clamp(2rem, 1.35rem + 2.2vw, 3.25rem); line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 32px; }
.inside-head{ margin-bottom: 36px; }

/* Fit: đặt trong khung */
.fit { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(28px, 4vw, 48px) !important; }

/* Thẻ bên trong dải nền: nền thẻ phải khác nền dải */
.band-alt .b2, .band-alt .tool, .band-alt .fit { background: var(--surface); }

/* Trang danh sách + trang tĩnh: đầu trang thành một dải */
.listing-head { padding-bottom: 8px; }
.prose table { display: table; }
@media (max-width: 699px) { .prose table { display: block; } }

/* Menu: VIP nổi bật (vàng, cao cấp), EA có chấm "sắp ra mắt" */
:root { --gold: oklch(80% 0.12 85); --gold-ink: oklch(22% 0.05 85); }
.nav-vip .nav-link { display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px 6px 12px; border-radius: 999px; color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 16%, transparent), color-mix(in srgb, var(--gold) 4%, transparent)); font-weight: 700; transition: background 180ms ease, border-color 180ms ease; }
.nav-badge { font-family: var(--mono); font-size: 0.6875rem; font-weight: 700; line-height: 1; padding: 4px 6px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); }
@media (hover: hover) and (pointer: fine) { .nav-vip .nav-link:hover { color: var(--gold); border-color: var(--gold); background: color-mix(in srgb, var(--gold) 22%, transparent); } }
.nav-ea .nav-link { display: inline-flex; align-items: center; gap: 7px; }
.nav-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); animation: navpulse 2.4s ease-in-out infinite; }
@keyframes navpulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .nav-dot { animation: none; } }
@media (max-width: 899px) { .nav-vip .nav-link { padding: 10px 16px; margin: 6px 0; } }

/* Trang EA */
.ea-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 32px; min-height: 560px; padding-top: 48px; padding-bottom: 64px; }
.ea-hero-stage { position: absolute; inset: 0 0 0 40%; opacity: 0.9; pointer-events: none; }
.ea-hero-copy { position: relative; z-index: 1; }
.ea-status { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.875rem; font-weight: 600; color: var(--text-2); }
.ea-title { margin-top: 22px; font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); line-height: 1; letter-spacing: -0.04em; }
.ea-lede { margin-top: 18px; font-size: 1.1875rem; color: var(--text-2); max-width: 44ch; }
.ea-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); background: transparent; }
.ea-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 20px 56px; align-items: end; margin-bottom: 36px; }
.ea-head .big-title { margin-bottom: 0; }
.ea-head p { color: var(--text-2); font-size: 1.0625rem; max-width: 46ch; }
.ea-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--surface); }
.ea-stat { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.ea-stat:nth-child(3n) { border-right: 0; }
.ea-stat:nth-last-child(-n+3) { border-bottom: 0; }
.ea-k { font-size: 0.875rem; color: var(--text-3); font-weight: 600; }
.ea-v { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; }
.ea-v.up { color: var(--up); } .ea-v.dn { color: var(--down); }
.ea-stat.is-pending .ea-v { font-size: 1rem; font-weight: 600; color: var(--text-3); padding: 8px 12px; border: 1px dashed var(--line-strong); border-radius: 8px; justify-self: start; }
.ea-note { margin-top: 16px; color: var(--text-3); font-size: 0.9375rem; }
.ea-widget { margin-top: 28px; } .ea-widget img { border-radius: var(--r-surface); max-width: 100%; }
.ea-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--surface); }
.ea-specs div { display: flex; justify-content: space-between; gap: 16px; padding: 20px 26px; border-bottom: 1px solid var(--line); }
.ea-specs dt { color: var(--text-3); } .ea-specs dd { font-weight: 600; text-align: right; }
.ea-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ea-grid li { padding: 26px; border: 1px solid var(--line); border-radius: var(--r-surface); background: var(--surface); }
.ea-grid h3 { font-size: 1.1875rem; } .ea-grid p { margin-top: 8px; color: var(--text-2); font-size: 0.9375rem; line-height: 1.55; }
.ea-grid a { color: var(--brand); }
.ea-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ea-steps li { padding: 26px; border: 1px solid var(--line); border-radius: var(--r-surface); background: var(--surface); }
.ea-steps .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 700; }
.ea-steps h3 { margin-top: 16px; font-size: 1.1875rem; } .ea-steps p { margin-top: 8px; color: var(--text-2); font-size: 0.9375rem; line-height: 1.55; }
.ea-lower { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: start; }
.ea-lower .prose { max-width: none; }
.ea-faq details { border-bottom: 1px solid var(--line); }
.ea-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 1.0625rem; font-weight: 600; }
.ea-faq summary::-webkit-details-marker { display: none; }
.ea-faq summary::after { content: "+"; color: var(--brand); font-family: var(--mono); }
.ea-faq details[open] summary::after { content: "−"; }
.ea-faq details p { padding-bottom: 18px; color: var(--text-2); line-height: 1.6; }
.ea-faq a { color: var(--brand); }
@media (max-width: 999px) { .ea-grid, .ea-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  .ea-hero { grid-template-columns: 1fr; min-height: 0; }
  .ea-hero-stage { inset: auto 0 0 0; height: 240px; position: relative; order: 2; }
  .ea-head, .ea-lower { grid-template-columns: 1fr; }
  .ea-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ea-stat:nth-child(3n) { border-right: 1px solid var(--line); } .ea-stat:nth-child(2n) { border-right: 0; }
  .ea-stat:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); } .ea-stat:nth-last-child(-n+2) { border-bottom: 0; }
  .ea-specs { grid-template-columns: 1fr; }
}
@media (max-width: 559px) { .ea-grid, .ea-steps { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }

/* v5: thẻ bài thoáng hơn (khối rõ, khoảng cách lớn), trang chủ gọn 6 khối */
.card-grid { gap: 28px; }
@media (max-width: 649px) { .card-grid { gap: 20px; } }
.post-card { height: 100%; }
.post-card-link { padding: 12px 12px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: border-color 180ms ease, transform 220ms var(--ease-out); }
.band-alt .post-card-link { background: var(--bg); }
.post-card-media { border-radius: 12px; border: 0; }
.post-card-meta, .post-card-title, .post-card-excerpt { padding-inline: 8px; }
.post-card-meta { margin-top: 18px; }
.post-card-title { margin-top: 10px; font-size: 1.125rem; line-height: 1.35; }
.post-card-excerpt { margin-top: 10px; -webkit-line-clamp: 2; }
@media (hover: hover) and (pointer: fine) {
  .post-card-link:hover { border-color: color-mix(in srgb, var(--brand) 60%, var(--line)); transform: translateY(-3px); }
  .post-card-link:hover .post-card-media img { transform: none; }
}
.method-lede { margin-bottom: 40px; }
.method-tools { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; color: var(--text-3); font-size: 0.9375rem; }
.method-tools a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .method-tools a:hover { border-color: var(--brand); } }

/* When you trade live: 3 thẻ gọn */
.next-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.next-card { display: flex; flex-direction: column; gap: 12px; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: border-color 180ms ease, transform 220ms var(--ease-out); }
.next-card h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.next-card p { color: var(--text-2); line-height: 1.55; flex: 1; }
.next-k { font-size: 0.8125rem; font-weight: 700; color: var(--brand); }
.next-card.is-vip { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 10%, var(--surface)), var(--surface) 60%); }
.next-card.is-vip .next-k, .next-card.is-vip .link-arrow { color: var(--gold); }
@media (hover: hover) and (pointer: fine) { .next-card:hover { border-color: var(--brand); transform: translateY(-3px); } .next-card.is-vip:hover { border-color: var(--gold); } }
@media (max-width: 899px) { .next-grid { grid-template-columns: 1fr; } }
.band-inside { border-top: 0; }
.band + .final-cta { margin-top: 0; }

/* Bài viết: khung "The short version" (post-template là class Ghost gắn vào body) */
.post-template .gh-content > h2:first-of-type { margin-top: 36px; padding: 22px 24px 0; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-surface) var(--r-surface) 0 0; background: var(--surface); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.post-template .gh-content > h2:first-of-type + ul { margin-top: 0; padding: 12px 24px 22px 44px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-surface) var(--r-surface); background: var(--surface); }
