/* DinexSpace Indicators. Dựng từ bản xem trước (src/preview-origin/style.css).
   Hai chế độ kiểu TradingView: Tối (mặc định khi hệ thống tối) và Sáng; nhấn vàng ánh kim, xanh lá, xanh dương.
   Mọi màu là token: tối ở :root, sáng ở :root[data-theme='light'] (theme-init.js đặt trước khi vẽ)
   và ở @media (prefers-color-scheme: light) khi tắt JS. */
/* Phông dự phòng chỉnh số đo cho khớp Be Vietnam Pro (chỉ dùng trong lúc woff2 chưa tải xong, giảm nhảy bố cục khi đổi phông; unicode-range = các mã Be Vietnam Pro có hình chữ) */
@font-face { font-family: 'Be Vietnam Pro Fallback'; src: local('Arial'), local('ArialMT'); font-weight: 100 549; size-adjust: 110.52%; ascent-override: 90.48%; descent-override: 23.98%; line-gap-override: 0%; unicode-range: U+000D, U+0020-007E, U+00A0-0107, U+010A-0113, U+0116-011B, U+011E-0121, U+0126-012B, U+012E-0131, U+0139-013A, U+013D-013E, U+0141-0144, U+0147-0148, U+014C-014D, U+0150-0155, U+0158-015B, U+015E-016B, U+016E-017E, U+01A0-01A1, U+01AF-01B0, U+01E6-01E7, U+02C6-02C7, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+1E20-1E21, U+1E80-1E85, U+1E9E, U+1EA0-1EF9, U+2013-2014, U+2018-201A, U+201C-201E, U+2020, U+2022, U+2026, U+2039-203A, U+2044, U+20AB-20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: 'Be Vietnam Pro Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 550 900; size-adjust: 108.49%; ascent-override: 92.18%; descent-override: 24.43%; line-gap-override: 0%; unicode-range: U+000D, U+0020-007E, U+00A0-0107, U+010A-0113, U+0116-011B, U+011E-0121, U+0126-012B, U+012E-0131, U+0139-013A, U+013D-013E, U+0141-0144, U+0147-0148, U+014C-014D, U+0150-0155, U+0158-015B, U+015E-016B, U+016E-017E, U+01A0-01A1, U+01AF-01B0, U+01E6-01E7, U+02C6-02C7, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+1E20-1E21, U+1E80-1E85, U+1E9E, U+1EA0-1EF9, U+2013-2014, U+2018-201A, U+201C-201E, U+2020, U+2022, U+2026, U+2039-203A, U+2044, U+20AB-20AC, U+2122, U+2212, U+2215; }
/* Be Vietnam Pro tự host (16/11/2026): đúng các tệp woff2 và unicode-range Google Fonts trả cho css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap */
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/be-vietnam-pro-400-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/be-vietnam-pro-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/be-vietnam-pro-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/be-vietnam-pro-500-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/be-vietnam-pro-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/be-vietnam-pro-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/be-vietnam-pro-600-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/be-vietnam-pro-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/be-vietnam-pro-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/be-vietnam-pro-700-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/be-vietnam-pro-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/be-vietnam-pro-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/be-vietnam-pro-800-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/be-vietnam-pro-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/be-vietnam-pro-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0a0a0b;
  --bg-2: #0f1012;
  --panel: #131417;
  --panel-2: #1a1c20;
  --text: #f4f5f7;
  --muted: #a7acb3;
  --faint: #8a9098;
  --line: #24272c;
  --line-strong: #393d44;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -14px rgba(0, 0, 0, 0.7);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.45), 0 26px 50px -20px rgba(0, 0, 0, 0.85);
  --overlay: rgba(10, 10, 11, 0.86);
  --grid-dot: rgba(244, 245, 247, 0.06);

  /* Vàng ánh kim: một gradient dùng chung cho mọi chữ và nút vàng */
  --gold-metal: linear-gradient(100deg, #f6e27a 0%, #d4af37 34%, #b8860b 62%, #f6e27a 100%);
  --gold-text: var(--gold-metal); /* chữ vàng; bản sáng dùng gradient đậm hơn */
  --gold: #d4af37;
  --gold-ink: #1a1405;
  --gold-glow: 0 8px 28px -10px rgba(212, 175, 55, 0.55);
  --gold-glow-hover: 0 12px 36px -8px rgba(212, 175, 55, 0.75);
  --gold-soft: rgba(212, 175, 55, 0.12);

  --green: #2fcf8f;
  --green-soft: rgba(47, 207, 143, 0.13);
  --blue: #5b9dff;
  --blue-soft: rgba(91, 157, 255, 0.13);

  /* Màu logo DinexSpace (lấy đúng từ dinexspace.com) */
  --logo-1: #11e2b2;
  --logo-2: #0fc79a;
  --logo-glow: drop-shadow(0 0 3px #11e2b2);
  --red: #ff6b6b;

  --radius: 16px;
  --maxw: 1200px;
  --font: 'Be Vietnam Pro', 'Be Vietnam Pro Fallback', Inter, 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', Consolas, 'Courier New', monospace;
  color-scheme: dark;
}

/* Bản sáng: nền trắng ngà, chữ gần đen. Tương phản đo trên --bg #fbf8f1 và --bg-2 #f6f2e9 (WCAG AA 4,5:1 cho chữ thường):
   text 16,9 · muted 7,1 · faint 5,7 · green 5,4 · blue 5,9 · red 6,2 · mọi điểm của --gold-text ≥ 4,55 (điểm thấp nhất #8b6914 trên --bg-2); nút vàng giữ chữ #1a1405 ≥ 5,6.
   Logo #11e2b2 chỉ đạt 1,6:1 trên nền sáng nên dùng #0b6a5c (--grn-dim trong bảng màu dinexspace.com), 6,1:1. */
:root[data-theme='light'] {
  --bg: #fbf8f1;
  --bg-2: #f6f2e9;
  --panel: #ffffff;
  --panel-2: #f1ece1;
  --text: #16171a;
  --muted: #4f555d;
  --faint: #5d636b;
  --line: #e4dfd3;
  --line-strong: #c9c2b2;
  --shadow: 0 1px 2px rgba(40, 32, 12, 0.06), 0 8px 24px -12px rgba(40, 32, 12, 0.16);
  --shadow-lift: 0 2px 4px rgba(40, 32, 12, 0.06), 0 22px 44px -18px rgba(40, 32, 12, 0.26);
  --overlay: rgba(251, 248, 241, 0.88);
  --grid-dot: rgba(22, 23, 26, 0.07);
  --gold-text: linear-gradient(100deg, #6f5310 0%, #8b6914 30%, #5e450b 58%, #7a5c0f 100%);
  --gold: #8b6914;
  --gold-glow: 0 8px 24px -12px rgba(150, 110, 20, 0.45);
  --gold-glow-hover: 0 12px 30px -10px rgba(150, 110, 20, 0.6);
  --gold-soft: rgba(184, 134, 11, 0.12);
  --green: #08754f;
  --green-soft: rgba(8, 117, 79, 0.1);
  --blue: #1d56d6;
  --blue-soft: rgba(29, 86, 214, 0.09);
  --red: #b42318;
  --logo-1: #0b6a5c;
  --logo-2: #0b6a5c;
  --logo-glow: none;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #fbf8f1; --bg-2: #f6f2e9; --panel: #ffffff; --panel-2: #f1ece1; --text: #16171a; --muted: #4f555d; --faint: #5d636b;
    --line: #e4dfd3; --line-strong: #c9c2b2; --overlay: rgba(251, 248, 241, 0.88); --grid-dot: rgba(22, 23, 26, 0.07);
    --shadow: 0 1px 2px rgba(40, 32, 12, 0.06), 0 8px 24px -12px rgba(40, 32, 12, 0.16);
    --shadow-lift: 0 2px 4px rgba(40, 32, 12, 0.06), 0 22px 44px -18px rgba(40, 32, 12, 0.26);
    --gold-text: linear-gradient(100deg, #6f5310 0%, #8b6914 30%, #5e450b 58%, #7a5c0f 100%); --gold: #8b6914;
    --gold-glow: 0 8px 24px -12px rgba(150, 110, 20, 0.45); --gold-glow-hover: 0 12px 30px -10px rgba(150, 110, 20, 0.6);
    --gold-soft: rgba(184, 134, 11, 0.12); --green: #08754f; --green-soft: rgba(8, 117, 79, 0.1); --blue: #1d56d6;
    --blue-soft: rgba(29, 86, 214, 0.09); --red: #b42318; --logo-1: #0b6a5c; --logo-2: #0b6a5c; --logo-glow: none;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.18; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gold-text { background: var(--gold-text); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.muted { color: var(--muted); }
.section { padding: 64px 0; position: relative; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 700; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 17px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 28px; }
.head-row .section-head { margin-bottom: 0; }

/* Nút */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.5s ease, border-color 0.2s ease; }
.btn:hover { text-decoration: none; }
.btn-gold { background: var(--gold-metal); background-size: 200% 100%; color: var(--gold-ink); box-shadow: var(--gold-glow); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--gold-glow-hover); background-position: 100% 0; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); background: var(--panel-2); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Nhãn */
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.tag-free { background: var(--green-soft); color: var(--green); }
.tag-plat { background: var(--blue-soft); color: var(--blue); }
.tag-line { border: 1px solid var(--line-strong); color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--overlay); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 30px; height: 30px; flex: none; }
.brand .sub { font-weight: 600; }
.menu { display: none; align-items: center; gap: 2px; margin-left: 12px; }
.menu a { display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 8px; color: var(--text); font-size: 15px; font-weight: 500; }
.menu a:hover, .menu a[aria-current='page'] { background: var(--panel-2); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-cta { display: none; }
.burger { position: relative; }
.burger > summary { list-style: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
.burger > summary::-webkit-details-marker { display: none; }
.burger > summary svg { width: 20px; height: 20px; stroke: var(--text); fill: none; stroke-width: 2; }
.drawer { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px)); padding: 10px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-lift); }
.drawer a { display: block; padding: 11px 12px; border-radius: 10px; color: var(--text); font-weight: 500; }
.drawer a:hover { background: var(--panel-2); text-decoration: none; }
.drawer .btn { margin-top: 8px; width: 100%; color: var(--gold-ink); }
@media (min-width: 1000px) {
  .menu { display: flex; }
  .nav-cta { display: inline-flex; }
  .burger { display: none; }
}
@media (max-width: 380px) { .brand { font-size: 15px; } }

/* Nền */
.bg-anim { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bg-anim::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 75%); }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; animation: drift 22s ease-in-out infinite alternate; }
.orb.o1 { width: 420px; height: 420px; left: 50%; top: -140px; margin-left: -380px; background: var(--gold-soft); }
.orb.o2 { width: 360px; height: 360px; left: 50%; top: 20px; margin-left: 40px; background: var(--blue-soft); animation-duration: 28s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(40px, 30px, 0) scale(1.12); } }

/* Hero */
.hero { position: relative; padding: 64px 0 56px; text-align: center; overflow: hidden; }
@media (min-width: 900px) { .hero { padding: 104px 0 84px; } }
.hero .wrap { position: relative; z-index: 1; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; color: var(--muted); }
.hero-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.hero h1 { margin: 22px auto 0; max-width: 940px; font-size: clamp(34px, 6.6vw, 72px); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 .gold-text { display: inline-block; padding-bottom: 0.06em; }
.hero .lead { margin: 20px auto 0; max-width: 660px; font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); }
.hero .btn-row { justify-content: center; margin-top: 32px; }
.hero .btn-row .btn { min-width: 210px; }
@media (max-width: 520px) { .hero .btn-row .btn { width: 100%; min-width: 0; } }
.proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 30px; font-size: 14px; color: var(--muted); }
.proof b { font-size: 20px; margin-right: 6px; }
.ea-link { margin-top: 22px; font-size: 14px; color: var(--muted); }
.ea-link a { color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.ea-link a:hover { color: var(--text); text-decoration: none; }

/* Lưới, thẻ */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; overflow: hidden; min-width: 0; }
.card.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.card h3 { font-size: 19px; font-weight: 700; }
.card p { margin-top: 8px; color: var(--muted); }
.cat-card { color: var(--text); }
.cat-card:hover { text-decoration: none; }
.cat-card .n { margin-top: auto; padding-top: 16px; font-size: 14px; color: var(--muted); }
.cat-card .n b { font-size: 22px; margin-right: 6px; }
.cat-card p { font-size: 14px; }

/* Thẻ chỉ báo */
.lib-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .lib-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .lib-grid { grid-template-columns: repeat(3, 1fr); } }
.ind-card { padding: 0; }
.ind-card .thumb { display: block; aspect-ratio: 16 / 9; background: var(--bg-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.ind-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ind-card .thumb.none { display: grid; place-items: center; }
.ind-card .thumb.none svg { width: 56%; height: auto; opacity: 0.9; }
.ind-card .body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.ind-card h3 { font-size: 18px; }
.ind-card h3 a { color: var(--text); }
.ind-card .cat { font-size: 12px; color: var(--faint); margin-top: 2px; }
.ind-card p { font-size: 14px; flex: 1; }
.ind-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ind-card .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ind-card[hidden] { display: none; }
.stat-filters { display:flex; flex-wrap:wrap; gap:12px; margin-top:12px; }
.stat-filter { display:flex; flex-direction:column; gap:4px; font-size:12px; color:var(--muted); }
.stat-filter select { max-width:240px; min-height:38px; padding:6px 10px; border:1px solid var(--line); border-radius:8px; background:var(--panel); color:var(--text); font:inherit; font-size:13px; }
.measured-stats .stats-table { margin:18px 0 8px; }
.measured-stats .stats-table table { min-width:720px; }
.measured-stats .stats-table th[scope="row"], .measured-stats .stats-table thead th:first-child { position:sticky; left:0; z-index:1; background:var(--panel); }
.measured-stats .swipe-hint { display:none; margin:14px 0 0; font-size:12px; color:var(--muted); }
@media (max-width:760px) { .measured-stats .swipe-hint { display:block; } }
.measured-stats .stat-lead { font-weight:600; }
.measured-stats .stat-locked { display:block; margin-top:3px; color:var(--muted); }
.measured-stats .stat-extra { margin:18px 0; }
.measured-stats .stat-extra summary { cursor:pointer; }
.measured-stats h3 { margin-top:22px; }
.sk-line { fill: none; stroke-width: 2; }
.sk-a { stroke: var(--blue); }
.sk-b { stroke: var(--green); }
.sk-c { stroke: var(--gold); stroke-dasharray: 4 4; }
.sk-grid { stroke: var(--line); stroke-width: 1; }

/* Thẻ nổi bật GII */
.featured { display: grid; gap: 22px; align-items: center; padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
@media (min-width: 900px) { .featured { grid-template-columns: 1.4fr 1fr; padding: 36px; } }
.featured h2 { font-size: clamp(24px, 3.4vw, 32px); }
.featured p { margin-top: 10px; color: var(--muted); }
.featured .btn-row { justify-content: flex-start; }
@media (min-width: 900px) { .featured .btn-row { justify-content: flex-end; } }

/* Bước */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: st; display: grid; gap: 12px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); min-width: 0; }
.steps li::before { content: counter(st); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--blue-soft); color: var(--blue); }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: 15px; }
.steps code, .prose code { font-family: var(--mono); font-size: 0.92em; padding: 1px 6px; border-radius: 6px; background: var(--panel-2); overflow-wrap: anywhere; }
@media (min-width: 900px) { .steps.row { grid-template-columns: repeat(3, 1fr); } }

/* Bảng giá */
.plans { display: grid; gap: 18px; grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; }
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { padding: 28px 24px; }
.plan.main { border: 1.5px solid var(--gold); box-shadow: var(--gold-glow), var(--shadow); }
.plan .plan-name { font-size: 18px; font-weight: 700; }
.plan .price { margin: 14px 0 4px; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.plan .price.soon { color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; font-size: 15px; flex: 1; }
.plan li { position: relative; padding-left: 24px; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 11px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }

/* Hỏi đáp (details: đọc được không cần JS) */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding-bottom: 20px; color: var(--muted); }
.faq.left { margin: 0; }

/* CTA cuối */
.final-cta { position: relative; overflow: hidden; text-align: center; padding: 52px 22px; border-radius: 28px; background: var(--panel); border: 1px solid var(--line); }
.final-cta h2 { position: relative; font-size: clamp(26px, 4.4vw, 44px); }
.final-cta p { position: relative; margin: 14px auto 0; max-width: 560px; color: var(--muted); }
.final-cta .btn-row { position: relative; justify-content: center; margin-top: 26px; }

/* Footer */
.site-footer { margin-top: 40px; padding: 52px 0 32px; border-top: 1px solid var(--line); background: var(--bg-2); font-size: 14px; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot-grid h2 { font-size: 14px; margin-bottom: 12px; }
.foot-grid a { display: block; color: var(--muted); padding: 3px 0; }
.foot-grid a:hover { color: var(--text); }
.foot-grid a.brand { display: inline-flex; color: var(--text); padding: 0; }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-brand { grid-column: auto; } }
.foot-brand p { margin-top: 12px; color: var(--muted); max-width: 340px; }
.disclaimer { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* Trang con */
.page-hero { position: relative; overflow: hidden; padding: 44px 0 28px; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; letter-spacing: -0.03em; margin-top: 10px; }
.page-hero p.lead { margin-top: 14px; max-width: 720px; color: var(--muted); font-size: 17px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: '›'; margin-right: 6px; color: var(--faint); }
.crumbs a { color: var(--muted); }

/* Bộ lọc thư viện */
.filters { position: relative; z-index: 20; padding: 14px 0; background: var(--overlay); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .filters { position: sticky; top: 64px; } }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .chips { flex-wrap: wrap; overflow: visible; } }
.chip { flex: none; border: 1px solid var(--line); background: var(--panel); padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--text); }
.chip:hover { border-color: var(--line-strong); }
.chip[aria-pressed='true'] { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); }
.chip .n { margin-left: 6px; font-size: 12px; color: var(--faint); }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed='true'] { background: var(--panel); color: var(--blue); box-shadow: var(--shadow); }
.search { flex: 1 1 220px; min-width: 0; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); }
.search:focus-within { border-color: var(--blue); }
.search svg { width: 16px; height: 16px; flex: none; stroke: var(--muted); fill: none; stroke-width: 2; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; }
.lib-meta { margin: 22px 0 14px; color: var(--muted); font-size: 14px; }
.empty { padding: 48px 16px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }

/* Trang chi tiết */
.detail { display: grid; gap: 32px; }
@media (min-width: 1000px) { .detail { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }
.detail > * { min-width: 0; }
.summary { margin-top: 16px; font-size: 18px; color: var(--text); max-width: 760px; }
.dl-row { margin-top: 24px; align-items: center; }
.dl-note { font-size: 13px; color: var(--muted); }
.shot { margin-top: 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.shot img { width: 100%; }
.prose h2 { font-size: 24px; margin: 40px 0 14px; }
.prose h3 { font-size: 18px; margin: 22px 0 10px; }
.prose p { color: var(--muted); }
.side { display: grid; gap: 18px; }
@media (min-width: 1000px) { .side { position: sticky; top: 84px; } }
.facts { width: 100%; border-collapse: collapse; font-size: 14px; }
.facts th, .facts td { padding: 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.facts th { color: var(--muted); font-weight: 500; padding-right: 14px; white-space: nowrap; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts td { overflow-wrap: anywhere; }
.side h2 { font-size: 16px; margin-bottom: 4px; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.data { width: 100%; border-collapse: collapse; font-size: 14px; }
.data th, .data td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data th { font-weight: 600; background: var(--panel-2); white-space: nowrap; }
.data tr:last-child td { border-bottom: 0; }
.data td code { font-family: var(--mono); font-size: 13px; padding: 1px 6px; border-radius: 6px; background: var(--panel-2); overflow-wrap: anywhere; }
.data .grp td { background: var(--bg-2); color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.note { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.demo-credit a { text-decoration: underline; }
/* Khung mã: thanh tiêu đề (tên tệp + số dòng | Copy) nằm ngoài vùng cuộn – nút không đè thanh cuộn hay chữ ở mọi độ rộng */
.code { border: 1px solid var(--line); border-radius: var(--radius); background: #070708; overflow: hidden; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 6px 8px 6px 14px; background: #121318; border-bottom: 1px solid #23262c; }
.code-file { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #a7acb3; }
.code .code-file code { background: none; padding: 0; color: #e6e8eb; font-size: 13px; border-radius: 0; }
.code pre code { background: none; padding: 0; color: inherit; font-size: inherit; border-radius: 0; overflow-wrap: normal; }
.code pre { margin: 0; padding: 16px 18px; max-height: 560px; overflow: auto; font-family: var(--mono); font-size: 13px; line-height: 1.55; color: #d9dde3; tab-size: 4; }
.code pre:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.btn-copy { flex: none; min-height: 32px; padding: 0 14px; font-size: 13px; font-weight: 600; background: #1d2027; border: 1px solid #3a3e46; color: #f4f5f7; border-radius: 999px; cursor: pointer; }
.btn-copy:hover { border-color: var(--gold); }
.no-js .btn-copy { display: none; }
/* Không ghép ký tự (ligature): "=>" và ">=" phải hiện đúng như mã gốc */
pre, code, kbd, samp, .code, .code * { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }

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

/* Bản có tín hiệu (v2): demo biểu đồ, danh sách tín hiệu, cảnh báo thống kê */
.demo-box { margin-top: 14px; min-height: 120px; }
/* Giữ chỗ cho biểu đồ demo (dựng muộn): chiều cao đo sau khi dựng, khung giá và khung có ô dao động */
.demo-box[data-demo] { min-height: 545px; }
.demo-box[data-demo].demo-osc { min-height: 711px; }
@media (max-width: 553px) {
  .demo-box[data-demo] { min-height: 544px; }
  .demo-box[data-demo].demo-osc { min-height: 680px; }
}
.demo-box .note { padding: 16px; }
.sig-list { margin: 12px 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
.sig-buy { color: var(--green); }
.sig-sell { color: var(--red); }
.stat-warn { margin-top: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); font-size: 14px; }

/* Logo dùng token để đổi màu theo chế độ */
.logo-sq, .logo-di { fill: none; stroke-width: 1.6; }
.logo-sq { stroke: var(--logo-1); }
.logo-di { stroke: var(--logo-2); }
.logo-dot { fill: var(--logo-1); filter: var(--logo-glow); }

/* Nút ☀/☾ (chỉ hiện khi có JS) */
.theme-toggle { display: none; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; padding: 0; }
.js .theme-toggle { display: inline-grid; }
.theme-toggle:hover { border-color: var(--line-strong); }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme-toggle .i-moon { display: none; }
:root[data-theme='light'] .theme-toggle .i-sun { display: none; }
:root[data-theme='light'] .theme-toggle .i-moon { display: block; }

/* Demo biểu đồ trong bản sáng (màu biểu đồ do dnx-demo.js đổi; đây là khung, nút, chú thích) */
:root[data-theme='light'] .dnx-demo { --dnx-bg: #ffffff; --dnx-fg: #16171a; --dnx-dim: #4f555d; --dnx-line: #d6d0c2; --dnx-btn: #f6f2e9; }
:root[data-theme='light'] .dnx-tip { background: #fffffff0; color: #16171a; }
:root[data-theme='light'] .dnx-buy { color: #08754f; }
:root[data-theme='light'] .dnx-sell { color: #b42318; }

/* Chọn ngôn ngữ EN | VI (hiện cả trên điện thoại) và gợi ý ngôn ngữ */
.lang-switch { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.lang-switch a { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 7px; font-size: 13px; font-weight: 700; color: var(--muted); }
.lang-switch a:hover { color: var(--text); text-decoration: none; }
.lang-switch a[aria-current='true'] { background: var(--panel-2); color: var(--text); }
.lang-hint { background: var(--panel-2); border-bottom: 1px solid var(--line); font-size: 14px; }
.lang-hint .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.lang-hint a { font-weight: 600; }
.lang-hint-close { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 8px; }
@media (max-width: 420px) {
  .nav { gap: 8px; }
  .nav-actions { gap: 6px; }
  .brand { font-size: 14px; gap: 7px; }
  .brand-logo { width: 26px; height: 26px; }
  .lang-switch a { min-width: 30px; }
}
@media (max-width: 359px) { .brand > span { display: none; } }

/* Trang chỉ báo: mục lục, các phần có câu trả lời thẳng, Key facts */
.toc { margin-top: 28px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); font-size: 15px; }
.toc b { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2 220px; column-gap: 24px; }
.toc li { padding: 2px 0; break-inside: avoid; }
.isec { scroll-margin-top: 84px; }
.isec > h2 { font-size: 24px; margin: 40px 0 10px; }
.prose p.answer { color: var(--text); font-size: 17px; margin-bottom: 12px; }
.prose h3 { font-size: 18px; margin: 20px 0 8px; }
.prose h4 { font-size: 16px; margin: 16px 0 6px; }
.md-list { margin: 8px 0 12px; padding-left: 22px; color: var(--muted); display: grid; gap: 5px; }
.md-list ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.prose code, .md-list code { font-family: var(--mono); font-size: 0.92em; padding: 1px 6px; border-radius: 6px; background: var(--panel-2); overflow-wrap: anywhere; }
.data caption { caption-side: top; text-align: left; padding: 10px 14px; font-weight: 600; color: var(--text); background: var(--panel); }
.data tbody th { font-weight: 500; background: transparent; white-space: normal; }
.data .grp th { background: var(--bg-2); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.shot figcaption { padding: 8px 12px; background: var(--panel); margin: 0; }
.kf { display: grid; grid-template-columns: auto 1fr; gap: 0 14px; margin: 10px 0 0; font-size: 14px; }
.kf dt { color: var(--muted); padding: 9px 0; border-bottom: 1px solid var(--line); }
.kf dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.btn-guide { border-color: var(--gold); }

/* Trang hướng dẫn cài đặt: 2 tab (không JS thì hiện cả hai) */
.gtabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); margin: 8px 0 8px; }
.gtab { padding: 9px 20px; border-radius: 999px; font-weight: 600; color: var(--muted); }
.gtab:hover { text-decoration: none; color: var(--text); }
.gtab[aria-selected='true'] { background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.gpanel { scroll-margin-top: 84px; max-width: 860px; }
.gpanel > h2 { font-size: 26px; margin: 28px 0 10px; }
.gpanel .answer { font-size: 17px; }
.js .gpanel[hidden] { display: none; }
.gsteps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 22px; }
.gstep { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); scroll-margin-top: 84px; }
.gstep h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 8px; }
.gnum { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: var(--blue-soft); color: var(--blue); }
.gstep p { color: var(--muted); }
.gshot { margin: 14px 0 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.gshot img { width: 100%; }
.ph { display: grid; place-items: center; aspect-ratio: 16 / 9; background: repeating-linear-gradient(135deg, var(--panel-2) 0 12px, var(--bg-2) 12px 24px); color: var(--muted); font-size: 14px; text-align: center; padding: 12px; }
.gvideo { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: #000; margin-top: 8px; }
.gvideo.ph { background: repeating-linear-gradient(135deg, var(--panel-2) 0 12px, var(--bg-2) 12px 24px); }
@media (max-width: 420px) {
  .wrap.nav { padding-left: 12px; padding-right: 12px; }
  .brand { font-size: 13px; gap: 6px; min-width: 0; }
  .brand-logo { width: 24px; height: 24px; }
  .theme-toggle, .burger > summary { width: 36px; height: 36px; }
  .lang-switch a { min-width: 26px; height: 30px; padding: 0 4px; font-size: 12px; }
}
.gpanel h3 { margin: 22px 0 8px; font-size: 18px; }

/* Bảng thông số: cột Input không bẻ chữ; Group/Default co theo nội dung; cột cuối (ý nghĩa) nhận phần còn lại và xuống dòng.
   Màn hẹp: bảng cuộn ngang trong khung riêng, cột Input dính bên trái. */
.data code { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.data th, .data td { white-space: nowrap; }
.data td:last-child, .data th:last-child { white-space: normal; min-width: 180px; }
.data .col-input { white-space: nowrap; }
.data .grp th, .data .grp td { white-space: normal; }
.facts td, .kf dd { white-space: normal; }
@media (max-width: 720px) {
  .data .col-input { position: sticky; left: 0; z-index: 1; background: var(--panel); box-shadow: 1px 0 0 var(--line); }
  .data thead .col-input { background: var(--panel-2); }
  .data td:last-child, .data th:last-child { min-width: 220px; }
}

/* Thanh cuộn kiểu MacroLens: rãnh mảnh màu tối, con trượt viên thuốc than chì → bạc có bóng nổi, mũi tên nhỏ, rê chuột chuyển vàng ánh kim.
   Áp cho trang, khung mã, bảng cuộn ngang, menu, danh sách. Chrome 121+ bỏ qua ::-webkit-scrollbar nếu có scrollbar-color,
   nên scrollbar-color chỉ đặt cho Firefox. */
:root { --sb-track: #05070b; --sb-edge: #3b4045; --sb-mid: #a3a8ad; --sb-ink: rgba(255,255,255,0.33); --sb-shade: rgba(0,0,0,0.5); --sb-gold: #f2cc6c; --sb-gold-edge: #b8860b; --sb-ff: #8f959a; --sb-ring: rgba(255,255,255,0.05); }
:root[data-theme='light'] { --sb-track: #f7f4ec; --sb-edge: #cac4b0; --sb-mid: #464b4f; --sb-ink: rgba(26,23,16,0.33); --sb-shade: rgba(61,50,32,0.5); --sb-gold: #765a0f; --sb-gold-edge: #8a6420; --sb-ff: #52575b; --sb-ring: rgba(26,23,16,0.05); }
@media (prefers-color-scheme: light) { :root:not([data-theme]) { --sb-track: #f7f4ec; --sb-edge: #cac4b0; --sb-mid: #464b4f; --sb-ink: rgba(26,23,16,0.33); --sb-shade: rgba(61,50,32,0.5); --sb-gold: #765a0f; --sb-gold-edge: #8a6420; --sb-ff: #52575b; --sb-ring: rgba(26,23,16,0.05); } }
.code pre { --sb-track: #070708; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--sb-track); box-shadow: inset 0 0 0 1px var(--sb-ring); }
::-webkit-scrollbar-corner { background: var(--sb-track); }
::-webkit-scrollbar-thumb {
  min-height: 44px; border: 2px solid transparent; border-radius: 999px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='5'%3E%3Cpath d='M3 0 6 5H0z' fill='%23ffffffb3'/%3E%3C/svg%3E") center top 6px / 6px 5px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='5'%3E%3Cpath d='M0 0h6L3 5z' fill='%23ffffffb3'/%3E%3C/svg%3E") center bottom 6px / 6px 5px no-repeat,
    linear-gradient(90deg, var(--sb-edge), var(--sb-mid) 50%, var(--sb-edge));
  background-clip: padding-box;
  box-shadow: inset 0 1px 0 var(--sb-ink), inset 0 -1px 0 var(--sb-shade);
}
::-webkit-scrollbar-thumb:horizontal {
  min-width: 44px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='6'%3E%3Cpath d='M0 3 5 0v6z' fill='%23ffffffb3'/%3E%3C/svg%3E") left 6px center / 5px 6px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='6'%3E%3Cpath d='M5 3 0 6V0z' fill='%23ffffffb3'/%3E%3C/svg%3E") right 6px center / 5px 6px no-repeat,
    linear-gradient(180deg, var(--sb-edge), var(--sb-mid) 50%, var(--sb-edge));
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='5'%3E%3Cpath d='M3 0 6 5H0z' fill='%231a1305'/%3E%3C/svg%3E") center top 6px / 6px 5px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='5'%3E%3Cpath d='M0 0h6L3 5z' fill='%231a1305'/%3E%3C/svg%3E") center bottom 6px / 6px 5px no-repeat,
    linear-gradient(90deg, var(--sb-gold-edge), var(--sb-gold) 50%, var(--sb-gold-edge));
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:horizontal:hover, ::-webkit-scrollbar-thumb:horizontal:active {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='6'%3E%3Cpath d='M0 3 5 0v6z' fill='%231a1305'/%3E%3C/svg%3E") left 6px center / 5px 6px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='6'%3E%3Cpath d='M5 3 0 6V0z' fill='%231a1305'/%3E%3C/svg%3E") right 6px center / 5px 6px no-repeat,
    linear-gradient(180deg, var(--sb-gold-edge), var(--sb-gold) 50%, var(--sb-gold-edge));
  background-clip: padding-box;
}
.chips::-webkit-scrollbar { display: none; }
@supports (-moz-appearance: none) {
  * { scrollbar-color: var(--sb-ff) var(--sb-track); scrollbar-width: thin; }
  .chips { scrollbar-width: none; }
}

/* Bảng/khối nhãn–giá trị (thống kê, Key facts, số liệu thư viện): nhãn 1 dòng ở màn rộng; màn hẹp được xuống dòng nhưng không bẻ giữa chữ */
.data tbody th[scope='row'], .facts th, .kf dt { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.kf { grid-template-columns: max-content 1fr; }
@media (max-width: 720px) {
  .data tbody th[scope='row']:not(.col-input), .facts th, .kf dt { white-space: normal; }
  .kf { grid-template-columns: minmax(96px, auto) 1fr; }
}
