/* =============================================================================
   Landing page7 — "Command Center": giao diện terminal tối, chính xác, kỹ thuật.
   Prefix class: tm-   ·   body: .landing-page.page-7.tm
   Font: Space Grotesk (tiêu đề) + JetBrains Mono (giao diện, nội dung).
   ============================================================================= */

/* ---------- Token ---------- */
body.tm {
    --tm-bg: #07090d;
    --tm-panel: #0d1117;
    --tm-panel-2: #111823;
    --tm-panel-3: #0a0e14;
    --tm-line: #1c2533;
    --tm-line-2: #263246;
    --tm-text: #d6deeb;
    --tm-text-2: #aeb8c9;
    --tm-muted: #7d8799;
    --tm-white: #f2f6fb;
    --tm-green: #3dff9a;
    --tm-green-2: #7dffbd;
    --tm-green-ink: #03140b;
    --tm-green-a10: rgba(61, 255, 154, .1);
    --tm-green-a25: rgba(61, 255, 154, .25);
    --tm-green-a45: rgba(61, 255, 154, .45);
    --tm-cyan: #4cc9f0;
    --tm-amber: #ffb547;
    --tm-magenta: #ff4fd8;
    --tm-red: #ff6b6b;

    --tm-font-head: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --tm-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --tm-fs-xs: .75rem;
    --tm-fs-sm: .84375rem;
    --tm-fs-base: .9375rem;
    --tm-fs-h2: clamp(1.75rem, 1.15rem + 2.1vw, 2.75rem);
    --tm-fs-h3: clamp(1.08rem, 1rem + .3vw, 1.22rem);

    --tm-radius: 14px;
    --tm-radius-sm: 9px;
    --tm-header-h: 64px;
    --tm-gutter: clamp(16px, 4vw, 32px);
    --tm-sec-y: clamp(56px, 6.5vw, 92px);
    --tm-ease: cubic-bezier(.2, .7, .2, 1);

    margin: 0;
    min-width: 320px;
    background: var(--tm-bg);
    color: var(--tm-text);
    font-family: var(--tm-font-mono);
    font-size: var(--tm-fs-base);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.tm *,
body.tm *::before,
body.tm *::after { box-sizing: border-box; }

body.tm ::selection { background: var(--tm-green); color: var(--tm-green-ink); }

/* ---------- Nền: lưới 40px + quầng sáng + scanline ---------- */
body.tm::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, .032) 1px, transparent 1px) 0 0 / 40px 40px,
        linear-gradient(90deg, rgba(255, 255, 255, .032) 1px, transparent 1px) 0 0 / 40px 40px;
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 35%, transparent 100%);
    mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 35%, transparent 100%);
}

body.tm::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(48rem 34rem at 88% -6%, rgba(76, 201, 240, .11), transparent 62%),
        radial-gradient(44rem 32rem at -8% 38%, rgba(61, 255, 154, .075), transparent 62%);
}

.tm-scan {
    position: fixed;
    inset: 0;
    z-index: 45;
    pointer-events: none;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .016) 0 1px, transparent 1px 3px);
}

.tm-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Tiện ích chung ---------- */
.tm-wrap {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: var(--tm-gutter);
}

.tm-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.tm-ic {
    display: inline-block;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    vertical-align: middle;
}

/* chỉ scope trong vùng của mẫu — không đụng widget liên hệ nổi / popup dùng chung */
.tm-header a,
.tm-main a,
.tm-footer a { color: var(--tm-cyan); text-decoration: none; }
.tm-header a:focus-visible,
.tm-header button:focus-visible,
.tm-main a:focus-visible,
.tm-main summary:focus-visible,
.tm-footer a:focus-visible,
.tm .tm-top:focus-visible {
    outline: 2px solid var(--tm-cyan);
    outline-offset: 3px;
    border-radius: 6px;
}

/* màu token kiểu cú pháp — dùng trong terminal và các khối code nhỏ */
.tm .t-p { color: var(--tm-green); }
.tm .t-c { color: var(--tm-green); font-weight: 700; }
.tm .t-f { color: var(--tm-cyan); }
.tm .t-v { color: var(--tm-amber); }
.tm .t-m { color: var(--tm-muted); }
.tm .t-a { color: var(--tm-cyan); }
.tm .t-ok { color: var(--tm-green); font-weight: 600; }
.tm .t-fill { color: var(--tm-green); }
.tm .t-empty { color: #344158; }

/* ba chấm của thanh tiêu đề cửa sổ */
.tm-dots { display: inline-flex; gap: 7px; flex-shrink: 0; }
.tm-dots i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ff5f57;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25);
}
.tm-dots i:nth-child(2) { background: #febc2e; }
.tm-dots i:nth-child(3) { background: #28c840; }

/* đèn trạng thái xanh nhấp nháy nhẹ */
.tm-led {
    position: relative;
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tm-green);
    box-shadow: 0 0 10px var(--tm-green);
    flex-shrink: 0;
    vertical-align: middle;
}
.tm-led::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--tm-green);
    opacity: 0;
    animation: tm-ping 2.4s var(--tm-ease) infinite;
}

/* con trỏ khối nhấp nháy */
.tm-cursor {
    display: inline-block;
    width: .52em;
    height: .82em;
    margin-left: .12em;
    background: var(--tm-green);
    box-shadow: 0 0 18px rgba(61, 255, 154, .55);
    vertical-align: -.04em;
    animation: tm-blink 1.1s steps(1) infinite;
}

/* ---------- Nút ---------- */
.tm .tm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    height: 40px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--tm-radius-sm);
    font: 600 var(--tm-fs-sm)/1 var(--tm-font-mono);
    letter-spacing: .01em;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s, box-shadow .25s, transform .2s var(--tm-ease);
}
.tm .tm-btn .tm-ic { width: 1.1em; height: 1.1em; }
.tm .tm-btn--lg { height: 52px; padding: 0 22px; font-size: var(--tm-fs-base); }

.tm .tm-btn--primary {
    background: var(--tm-green);
    color: var(--tm-green-ink);
    box-shadow: 0 0 0 1px rgba(61, 255, 154, .35), 0 10px 32px -10px rgba(61, 255, 154, .6);
}
.tm .tm-btn--primary:hover {
    background: var(--tm-green-2);
    color: var(--tm-green-ink);
    box-shadow: 0 0 0 1px rgba(61, 255, 154, .6), 0 14px 44px -8px rgba(61, 255, 154, .75);
    transform: translateY(-1px);
}
.tm .tm-btn--ghost {
    background: rgba(255, 255, 255, .025);
    border-color: var(--tm-line-2);
    color: var(--tm-text);
}
.tm .tm-btn--ghost:hover { border-color: var(--tm-green-a45); color: var(--tm-green); background: var(--tm-green-a10); }
.tm .tm-btn--outline {
    border-color: var(--tm-green-a45);
    color: var(--tm-green);
    background: transparent;
}
.tm .tm-btn--outline:hover { background: var(--tm-green-a10); border-color: var(--tm-green); color: var(--tm-green); }
.tm .tm-btn__br { color: rgba(3, 20, 11, .55); font-weight: 500; }

/* ---------- Header ---------- */
.tm-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(180deg, rgba(13, 17, 23, .72), rgba(13, 17, 23, .38));
    border-bottom: 1px solid rgba(28, 37, 51, .6);
    transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.tm-header.is-scrolled {
    background: rgba(8, 11, 16, .82);
    border-bottom-color: var(--tm-line);
    box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .9);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
}
.tm-header__bar {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--tm-header-h);
}

.tm .tm-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    color: var(--tm-white);
    font-weight: 700;
    font-size: .9375rem;
    letter-spacing: -.01em;
}
.tm-brand__path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-brand__tilde { color: var(--tm-green); }
.tm .tm-brand:hover .tm-brand__path { color: var(--tm-green); }

.tm-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}
.tm-nav__links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.tm .tm-nav__link {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 7px;
    color: var(--tm-text-2);
    font-size: var(--tm-fs-sm);
    font-weight: 500;
    transition: color .2s, background-color .2s;
}
.tm-nav__idx { color: var(--tm-muted); font-size: .6875rem; letter-spacing: .04em; transition: color .2s; }
.tm .tm-nav__link:hover { color: var(--tm-white); background: rgba(255, 255, 255, .04); }
.tm .tm-nav__link:hover .tm-nav__idx { color: var(--tm-green); }
.tm-nav__actions { display: flex; align-items: center; gap: 10px; }

.tm-nav-toggle {
    display: none;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--tm-line-2);
    border-radius: var(--tm-radius-sm);
    background: rgba(255, 255, 255, .03);
    color: var(--tm-text);
    font-size: 20px;
    cursor: pointer;
}
.tm-nav-toggle__close { display: none; }
.tm-header.is-open .tm-nav-toggle__open { display: none; }
.tm-header.is-open .tm-nav-toggle__close { display: block; }

/* ---------- Tiêu đề section chung ---------- */
.tm-sec {
    position: relative;
    padding-block: var(--tm-sec-y);
    scroll-margin-top: calc(var(--tm-header-h) + 8px);
}
.tm-sec--alt {
    background: linear-gradient(180deg, transparent, rgba(13, 17, 23, .65) 18%, rgba(13, 17, 23, .65) 82%, transparent);
}

.tm-sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }

.tm-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--tm-green);
    font-size: var(--tm-fs-sm);
    font-weight: 500;
    letter-spacing: .04em;
}
.tm-kicker__idx {
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    height: 22px;
    padding: 0 6px;
    border: 1px solid var(--tm-green-a25);
    border-radius: 5px;
    background: var(--tm-green-a10);
    font-size: .6875rem;
    font-weight: 700;
}

.tm-h2 {
    margin: 0;
    color: var(--tm-white);
    font-family: var(--tm-font-head);
    font-size: var(--tm-fs-h2);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.025em;
    text-wrap: balance;
}
.tm-sec-lead {
    max-width: 62ch;
    margin: 16px 0 0;
    color: var(--tm-text-2);
    font-size: var(--tm-fs-base);
}

/* ---------- Khung cửa sổ dùng chung ---------- */
.tm-win {
    position: relative;
    background: linear-gradient(180deg, rgba(17, 24, 35, .92), rgba(11, 15, 21, .96));
    border: 1px solid var(--tm-line-2);
    border-radius: var(--tm-radius);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 40px 80px -40px rgba(0, 0, 0, .85);
}
.tm-win__bar {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 42px;
    padding: 0 16px;
    border-bottom: 1px solid var(--tm-line);
    background: rgba(255, 255, 255, .018);
    border-radius: var(--tm-radius) var(--tm-radius) 0 0;
}
.tm-win__title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--tm-text-2);
    font-size: .78125rem;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tm-win__meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tm-muted);
    font-size: .71875rem;
    white-space: nowrap;
}

/* ---------- Hero ---------- */
.tm-hero {
    position: relative;
    padding-block: clamp(48px, 7vw, 104px) clamp(56px, 7vw, 96px);
}
.tm-hero::before {
    /* quầng sáng xanh sau terminal */
    content: "";
    position: absolute;
    top: 8%;
    right: 4%;
    width: min(44vw, 620px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61, 255, 154, .14), rgba(76, 201, 240, .06) 45%, transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}
.tm-hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    align-items: center;
    gap: clamp(36px, 5vw, 72px);
}

.tm-prompt {
    margin: 0 0 22px;
    color: var(--tm-text);
    font-size: var(--tm-fs-sm);
    overflow-wrap: anywhere;
}
.tm-prompt__user { color: var(--tm-green); font-weight: 600; }
.tm-prompt__sep { color: var(--tm-muted); }
.tm-prompt__path { color: var(--tm-cyan); }
.tm-prompt__sign { color: var(--tm-muted); margin: 0 .5ch 0 .2ch; }

.tm-hero__copy { min-width: 0; container-type: inline-size; }
.tm-h1 { margin: 0; font-family: var(--tm-font-head); }
.tm-h1__domain {
    display: block;
    color: var(--tm-white);
    font-size: clamp(2.2rem, 1.2rem + 4vw, 4.5rem);
    /* co theo độ dài domain để luôn nằm trên 1 dòng (~0.6em mỗi ký tự + con trỏ) */
    font-size: clamp(1.6rem, calc(100cqi / (var(--tm-len, 12) * .6 + .8)), 5rem);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
    text-shadow: 0 0 42px rgba(61, 255, 154, .18);
}
.tm-h1__line {
    display: block;
    max-width: 18ch;
    margin-top: 18px;
    color: var(--tm-text);
    font-size: clamp(1.45rem, 1rem + 1.7vw, 2.3rem);
    font-weight: 600;
    line-height: 1.16;
    letter-spacing: -.02em;
    text-wrap: balance;
}
.tm-h1__line em {
    font-style: normal;
    background: linear-gradient(90deg, var(--tm-green), var(--tm-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tm-hero__lead {
    max-width: 52ch;
    margin: 24px 0 0;
    color: var(--tm-text-2);
    font-size: var(--tm-fs-base);
}

.tm-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.tm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}
.tm-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--tm-line-2);
    border-radius: 999px;
    background: rgba(13, 17, 23, .7);
    color: var(--tm-text-2);
    font-size: .75rem;
    line-height: 1.4;
}
.tm-chip .tm-ic { color: var(--tm-green); font-size: 14px; }

/* ---- Terminal minh hoạ ---- */
.tm-hero__visual { position: relative; min-width: 0; }

.tm-hero__ghost {
    /* cửa sổ phụ phía sau tạo chiều sâu */
    position: absolute;
    top: -22px;
    right: -22px;
    width: 58%;
    height: 62%;
    padding: 12px 14px;
    border: 1px solid var(--tm-line);
    border-radius: var(--tm-radius);
    background: rgba(13, 17, 23, .55);
    color: var(--tm-muted);
    font-size: .6875rem;
    pointer-events: none;
}
.tm-hero__ghost i {
    display: block;
    height: 6px;
    margin-top: 12px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--tm-line-2), transparent);
}
.tm-hero__ghost i:nth-of-type(2) { width: 70%; }
.tm-hero__ghost i:nth-of-type(3) { width: 85%; }
.tm-hero__ghost i:nth-of-type(4) { width: 50%; }

.tm-term {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--tm-line-2);
    border-radius: var(--tm-radius);
    background: linear-gradient(180deg, #0d131b, #090d13);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .05) inset,
        0 0 0 1px rgba(0, 0, 0, .4),
        0 50px 100px -40px rgba(0, 0, 0, .9),
        0 0 90px -30px rgba(61, 255, 154, .28);
}
.tm-term__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 40px;
    padding: 0 14px;
    border-bottom: 1px solid var(--tm-line);
    background: #0f151e;
}
.tm-term__title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--tm-text-2);
    font-size: .75rem;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tm-term__size { color: var(--tm-muted); font-size: .6875rem; }

.tm-term__screen {
    height: 372px;
    padding: 16px 20px;
    overflow: hidden;
    color: var(--tm-text);
    font-family: var(--tm-font-mono);
    font-size: .8125rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
    /* mờ dần dòng bị cuộn khuất ở mép trên (đúng bằng padding) */
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16px);
    mask-image: linear-gradient(180deg, transparent 0, #000 16px);
}
/* pre-wrap đặt ở từng dòng (không ở khung) để khoảng trắng giữa các thẻ không thành dòng trống */
.tm-term__screen .tm-l { min-height: 1.8em; white-space: pre-wrap; }
/* không ngắt dòng giữa cờ/giá trị (vd "--qty" bị tách sau dấu gạch) */
.tm-term__screen .t-f,
.tm-term__screen .t-v { white-space: nowrap; }
.tm-term__screen .tm-l.is-new { animation: tm-line-in .18s ease-out; }

.tm-term__cursor {
    display: inline-block;
    width: .6em;
    height: 1.15em;
    margin-left: 1px;
    background: var(--tm-green);
    vertical-align: -.2em;
    animation: tm-blink 1.1s steps(1) infinite;
}
.tm-term__cursor.is-typing { animation: none; }

.tm-term__status {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 28px;
    padding: 0 10px 0 0;
    border-top: 1px solid var(--tm-line);
    background: #0b1017;
    color: var(--tm-muted);
    font-size: .6875rem;
    white-space: nowrap;
}
.tm-term__mode {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    background: var(--tm-amber);
    color: #1f1300;
    font-weight: 700;
    letter-spacing: .08em;
}
.tm-term__spacer { flex: 1; }

/* ---------- Dải danh mục chạy ngang ---------- */
.tm-marquee {
    position: relative;
    overflow: hidden;
    padding: 15px 0;
    border-block: 1px solid var(--tm-line);
    background: rgba(10, 14, 20, .82);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.tm-marquee__track {
    display: flex;
    width: max-content;
    animation: tm-marquee 70s linear infinite;
}
.tm-marquee:hover .tm-marquee__track { animation-play-state: paused; }
.tm-marquee__list {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}
.tm-marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-right: 26px;
    color: var(--tm-muted);
    font-size: .78125rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
}
.tm-marquee__item strong { color: var(--tm-text); font-weight: 700; }
.tm-marquee__item .tm-ic { color: var(--tm-green); font-size: 16px; }
.tm-marquee__sep { margin-left: 16px; color: var(--tm-magenta); font-size: .7rem; letter-spacing: 0; }

/* ---------- Bảng trạng thái hệ thống ---------- */
.tm-status { padding-block: clamp(48px, 6vw, 80px) 0; }
.tm-status__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
}
.tm-status__head { align-self: center; padding-right: 12px; }
.tm-status__head .tm-kicker { margin-bottom: 10px; }
.tm-status__title {
    margin: 0;
    color: var(--tm-white);
    font-family: var(--tm-font-head);
    font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem);
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: -.015em;
    text-wrap: balance;
}

.tm-stat {
    --tm-accent: var(--tm-green);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 14px 16px 0;
    border: 1px solid var(--tm-line);
    border-radius: 12px;
    background: linear-gradient(180deg, var(--tm-panel-2), var(--tm-panel));
}
.tm-stat--cyan { --tm-accent: var(--tm-cyan); }
.tm-stat--amber { --tm-accent: var(--tm-amber); }
.tm-stat::before {
    /* vạch màu mảnh trên đỉnh tile */
    content: "";
    position: absolute;
    top: 0;
    left: 16px;
    width: 28px;
    height: 2px;
    background: var(--tm-accent);
    box-shadow: 0 0 12px var(--tm-accent);
}
.tm-stat__head {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--tm-muted);
    font-size: .6875rem;
    letter-spacing: .06em;
}
.tm-stat__state {
    margin-left: auto;
    padding: 1px 6px;
    border: 1px solid var(--tm-green-a25);
    border-radius: 4px;
    color: var(--tm-green);
    font-size: .625rem;
    font-weight: 700;
}
.tm-stat__value {
    margin: 14px 0 0;
    color: var(--tm-white);
    font-family: var(--tm-font-head);
    font-size: clamp(2.1rem, 1.5rem + 1.5vw, 2.85rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}
.tm-stat__value small { margin-left: 2px; color: var(--tm-accent); font-size: .55em; letter-spacing: 0; }
.tm-stat__label { margin: 6px 0 0; color: var(--tm-text-2); font-size: .8125rem; }
.tm-spark { display: block; width: calc(100% + 32px); height: 44px; margin: 12px -16px 0; }
.tm-spark__line {
    fill: none;
    stroke: var(--tm-accent);
    stroke-width: 1.6;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
}
.js .tm-stat .tm-spark__line { stroke-dashoffset: 100; transition: stroke-dashoffset 1.8s var(--tm-ease) .35s; }
.js .tm-stat.is-in .tm-spark__line { stroke-dashoffset: 0; }

/* ---------- Tính năng: module ---------- */
.tm-mods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.tm-mod {
    --mx: -400px;
    --my: -400px;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px 22px 22px;
    border: 1px solid var(--tm-line);
    border-radius: 12px;
    background:
        radial-gradient(260px circle at var(--mx) var(--my), rgba(61, 255, 154, .075), transparent 65%),
        linear-gradient(180deg, rgba(17, 24, 35, .92), rgba(13, 17, 23, .92));
    transition: border-color .3s, box-shadow .35s;
}
/* 4 góc ngoặc vuông: ::before/::after của thẻ + của .tm-mod__head */
.tm-mod::before,
.tm-mod::after,
.tm-mod__head::before,
.tm-mod__head::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border: 0 solid var(--tm-green);
    opacity: 0;
    transition: opacity .25s, transform .35s var(--tm-ease);
    pointer-events: none;
}
.tm-mod::before { top: -6px; left: -6px; border-width: 2px 0 0 2px; transform: translate(-6px, -6px); }
.tm-mod::after { top: -6px; right: -6px; border-width: 2px 2px 0 0; transform: translate(6px, -6px); }
.tm-mod__head::before { bottom: -6px; left: -6px; border-width: 0 0 2px 2px; transform: translate(-6px, 6px); }
.tm-mod__head::after { bottom: -6px; right: -6px; border-width: 0 2px 2px 0; transform: translate(6px, 6px); }
.tm-mod:hover {
    border-color: var(--tm-green-a45);
    box-shadow: 0 0 0 1px rgba(61, 255, 154, .12), 0 0 46px -12px rgba(61, 255, 154, .4);
}
.tm-mod:hover::before,
.tm-mod:hover::after,
.tm-mod:hover .tm-mod__head::before,
.tm-mod:hover .tm-mod__head::after { opacity: 1; transform: none; }

.tm-mod__head {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--tm-line-2);
}
.tm-mod__idx { color: var(--tm-muted); font-size: .71875rem; font-weight: 600; letter-spacing: .1em; transition: color .25s; }
.tm-mod:hover .tm-mod__idx { color: var(--tm-green); }
.tm-mod__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--tm-green-a25);
    border-radius: 9px;
    background: var(--tm-green-a10);
    color: var(--tm-green);
    font-size: 19px;
}
.tm-mod__title {
    margin: 0;
    color: var(--tm-white);
    font-family: var(--tm-font-head);
    font-size: var(--tm-fs-h3);
    font-weight: 600;
    letter-spacing: -.01em;
}
.tm-mod__text { flex: 1; margin: 8px 0 0; color: var(--tm-text-2); font-size: .84375rem; line-height: 1.7; }
.tm-mod__out {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 18px 0 0;
    padding: 9px 12px;
    border: 1px solid var(--tm-line);
    border-radius: 8px;
    background: var(--tm-panel-3);
    color: var(--tm-text-2);
    font-size: .75rem;
    line-height: 1.5;
    white-space: nowrap;
}
.tm-mod__out .tm-led { width: 7px; height: 7px; }

.tm-tier { gap: 12px; }
.tm-tier__bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.tm-tier__bars i { width: 6px; border-radius: 1px; background: var(--tm-green); }
.tm-tier__bars i:nth-child(1) { height: 25%; opacity: .35; }
.tm-tier__bars i:nth-child(2) { height: 50%; opacity: .55; }
.tm-tier__bars i:nth-child(3) { height: 75%; opacity: .75; }
.tm-tier__bars i:nth-child(4) { height: 100%; }

.tm-platforms {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 2px;
    padding: 6px;
    list-style: none;
    white-space: normal;
}
.tm-platforms li {
    display: grid;
    place-items: center;
    height: 28px;
    border-radius: 6px;
    color: var(--tm-text-2);
    font-size: 15px;
    transition: color .2s, background-color .2s;
}
.tm-platforms li:hover { color: var(--tm-green); background: var(--tm-green-a10); }

/* ---------- Quy trình: pipeline ---------- */
.tm-pipe {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 3vw, 32px);
    margin: 0;
    padding: 0;
    list-style: none;
}
.tm-pipe::before {
    /* đường nối với nét đứt chạy */
    content: "";
    position: absolute;
    top: 27px;
    left: calc(100% / 6);
    right: calc(100% / 6);
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--tm-green-a45) 0 8px, transparent 8px 16px);
    background-size: 16px 2px;
    animation: tm-dash-x .9s linear infinite;
}
.tm-pipe::after {
    /* "gói tin" sáng chạy dọc đường nối */
    content: "";
    position: absolute;
    top: 24px;
    left: calc(100% / 6);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tm-green);
    box-shadow: 0 0 14px 2px var(--tm-green);
    animation: tm-packet-x 4.2s var(--tm-ease) infinite;
}
.tm-node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.tm-node__dot {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 1px solid var(--tm-green-a45);
    border-radius: 50%;
    background: radial-gradient(circle, #0f1d17, var(--tm-bg) 70%);
    box-shadow: 0 0 0 6px var(--tm-bg), 0 0 30px -4px rgba(61, 255, 154, .45);
    color: var(--tm-green);
    font-size: .875rem;
    font-weight: 700;
}
.tm-node__panel {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    margin-top: 22px;
    padding: 20px 20px 18px;
    border: 1px solid var(--tm-line);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(17, 24, 35, .95), rgba(13, 17, 23, .95));
    text-align: left;
    transition: border-color .3s;
}
.tm-node:hover .tm-node__panel { border-color: var(--tm-green-a45); }
.tm-node__top { display: flex; align-items: center; justify-content: space-between; color: var(--tm-green); font-size: 20px; }
.tm-node__tag {
    padding: 2px 8px;
    border: 1px solid var(--tm-line-2);
    border-radius: 999px;
    color: var(--tm-muted);
    font-size: .6875rem;
    letter-spacing: .04em;
}
.tm-node__title {
    margin: 14px 0 0;
    color: var(--tm-white);
    font-family: var(--tm-font-head);
    font-size: var(--tm-fs-h3);
    font-weight: 600;
}
.tm-node__text { flex: 1; margin: 6px 0 0; color: var(--tm-text-2); font-size: .84375rem; }
.tm .tm-node__cmd {
    display: block;
    margin-top: 16px;
    padding: 8px 12px;
    border-left: 2px solid var(--tm-green);
    border-radius: 0 6px 6px 0;
    background: var(--tm-panel-3);
    color: var(--tm-text);
    font-family: var(--tm-font-mono);
    font-size: .75rem;
    overflow-wrap: anywhere;
}

/* ---------- Đăng nhập / đăng ký ---------- */
.tm-auth__grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: clamp(28px, 4vw, 56px);
    padding: clamp(24px, 4vw, 48px);
}
/* cột giới thiệu bám theo khi form đăng ký dài */
.tm-auth__intro {
    position: sticky;
    top: calc(var(--tm-header-h) + 24px);
    align-self: start;
    min-width: 0;
}
.tm-auth__lead { margin: 16px 0 0; color: var(--tm-text-2); }

.tm-checklist { display: grid; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.tm-checklist li { display: flex; gap: 12px; color: var(--tm-text); font-size: .875rem; line-height: 1.55; }
.tm-checklist__box { flex-shrink: 0; color: var(--tm-green); font-weight: 700; }

.tm-session {
    padding: 14px 16px;
    border: 1px dashed var(--tm-line-2);
    border-radius: 10px;
    background: rgba(10, 14, 20, .7);
    color: var(--tm-text);
    font-size: .75rem;
    line-height: 1.8;
}
.tm-session > div { white-space: pre-wrap; }
.tm-checklist { margin-bottom: 28px; }
.tm-session .tm-term__cursor { width: .55em; height: 1em; }

/* control gốc của trình duyệt (checkbox, select, thanh cuộn) theo nền tối */
.tm-auth__form,
.tm-price-box { color-scheme: dark; }

/* bọc login_box: tạo stacking context riêng để icon (z-index 990) không đè header */
.tm-auth__form { position: relative; z-index: 1; min-width: 0; }

/* reset khung mặc định của login_box */
.tm-auth .box-cover {
    padding: 0;
    background: none;
    background-image: none;
}
.tm-auth .box-cover > .container { max-width: none; padding: 0; }
.tm-auth .box-cover .row { margin: 0; }
.tm-auth .box-cover .block-left { display: none; }
.tm-auth .box-cover .block-right { flex: 0 0 100%; max-width: 100%; padding: 0; }

/* card form */
.tm-auth .box-cover .card,
.tm-auth .box-cover .card.shadow-lg {
    margin: 0;
    border: 1px solid var(--tm-line-2);
    border-radius: 12px;
    background: var(--tm-panel);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 30px 60px -30px rgba(0, 0, 0, .9) !important;
}
.tm-auth .box-cover .card-body { padding: clamp(20px, 3vw, 30px); color: var(--tm-text); font-family: var(--tm-font-mono); }
.tm-auth .box-cover .m-b-30 {
    margin-bottom: 24px !important;
    padding-bottom: 18px;
    border-bottom: 1px dashed var(--tm-line-2);
}
.tm-auth .box-cover .img-fluid {
    /* logo domain có thể là ảnh tối: đặt trên nền sáng để luôn thấy rõ */
    max-width: 150px;
    max-height: 44px !important;
    padding: 5px 8px;
    border-radius: 8px;
    background: #eef3f8;
    object-fit: contain;
}
.tm-auth .box-cover h2 {
    margin: 0;
    color: var(--tm-white);
    font-family: var(--tm-font-head);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.02em;
}
.tm-auth .box-cover h2::before { content: "> "; color: var(--tm-green); }

.tm-auth .box-cover label,
.tm-auth .box-cover .font-weight-semibold {
    margin-bottom: 8px;
    color: var(--tm-text-2);
    font-family: var(--tm-font-mono);
    font-size: .78125rem;
    font-weight: 500;
    letter-spacing: .02em;
}
.tm-auth .box-cover .form-group { margin-bottom: 18px !important; }
.tm-auth .box-cover .form-group > .font-weight-semibold::before { content: "› "; color: var(--tm-green); }

.tm-auth .box-cover .input-affix .prefix-icon {
    left: 14px;
    color: var(--tm-muted);
    font-size: 14px;
    transition: color .2s;
}
.tm-auth .box-cover .input-affix:focus-within .prefix-icon { color: var(--tm-green); }
.tm-auth .box-cover .input-affix .form-control:not(:first-child) {
    height: 46px;
    padding: 0 14px 0 40px;
    border: 1px solid var(--tm-line-2);
    border-radius: 9px;
    background: var(--tm-panel-3);
    color: var(--tm-white);
    font-family: var(--tm-font-mono);
    font-size: .875rem;
    caret-color: var(--tm-green);
    outline: 0;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.tm-auth .box-cover .input-affix .form-control:not(:first-child)::placeholder { color: #5f6a7d; opacity: 1; }
.tm-auth .box-cover .input-affix .form-control:not(:first-child):hover { border-color: #33425a; }
.tm-auth .box-cover .input-affix .form-control:not(:first-child):focus {
    border-color: var(--tm-green);
    background: #0b1219;
    box-shadow: 0 0 0 3px rgba(61, 255, 154, .16);
}
.tm-auth .box-cover .input-affix .form-control:-webkit-autofill {
    -webkit-text-fill-color: var(--tm-white);
    -webkit-box-shadow: 0 0 0 40px var(--tm-panel-3) inset;
    transition: background-color 9999s;
}

.tm-auth .box-cover .btn.btn-primary {
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid var(--tm-green);
    border-radius: 9px;
    background: var(--tm-green);
    color: var(--tm-green-ink);
    font-family: var(--tm-font-mono);
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .01em;
    box-shadow: 0 10px 30px -12px rgba(61, 255, 154, .7);
}
.tm-auth .box-cover .btn.btn-primary:hover { background: var(--tm-green-2); border-color: var(--tm-green-2); }
.tm-auth .box-cover .btn.btn-primary:focus-visible { outline: 2px solid var(--tm-cyan); outline-offset: 3px; }
/* nút phụ "Tôi chưa có email" */
.tm-auth .box-cover .btn.btn-primary.btn-sm {
    min-height: 32px;
    margin-top: 8px !important;
    padding: 0 12px;
    border-color: var(--tm-green-a45);
    background: transparent;
    color: var(--tm-green);
    font-size: .75rem;
    box-shadow: none;
}
.tm-auth .box-cover .btn.btn-primary.btn-sm:hover { background: var(--tm-green-a10); }

.tm-auth .box-cover a { color: var(--tm-cyan); }
.tm-auth .box-cover a:hover,
.tm-auth .box-cover a:focus { color: #8ee0f7; }
.tm-auth .box-cover .float-right { margin-top: 1px; }
.tm-auth .box-cover .font-size-14 { color: var(--tm-text-2); font-size: .8125rem !important; }
.tm-auth .box-cover .term-agree label { color: var(--tm-text-2); }
.tm-auth .box-cover input[type="checkbox"] { accent-color: var(--tm-green); }

/* popup yêu cầu mật khẩu + báo lỗi xác nhận */
.tm-auth .box-cover .form-group.check-password {
    padding: 12px 14px 10px;
    border: 1px solid var(--tm-line-2);
    border-radius: 10px;
    background: #0f1620;
    color: var(--tm-text);
    font-size: .8125rem;
    box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .9);
}
.tm-auth .box-cover .check-password > div:first-child { margin-bottom: 4px; color: var(--tm-white); font-weight: 600; }
.tm-auth .box-cover .check-password .check-password-item { padding: 3px 0; color: var(--tm-text-2); }
.tm-auth .box-cover .check-password .invalid::before { color: var(--tm-muted); }
.tm-auth .box-cover .check-password .valid { color: var(--tm-green); }
.tm-auth .box-cover .check-password .valid::before { color: var(--tm-green); }
.tm-auth .box-cover .form-group.re-check-password { color: var(--tm-red); font-size: .8125rem; }

/* chọn ngôn ngữ (menu bị JS chuyển ra body nên scope theo body.tm) */
.tm .lang-picker,
.tm .lp-menu {
    --lp-bg: #0f1620;
    --lp-border: #263246;
    --lp-ink: #e6ecf5;
    --lp-ink-2: #aeb8c9;
    --lp-muted: #7d8799;
    --lp-hover: #16202d;
    --lp-primary: #3dff9a;
    --lp-primary-soft: rgba(61, 255, 154, .12);
    font-family: var(--tm-font-mono);
}
.tm-auth .box-cover .lang-picker-row { padding: 18px 0 0; margin-top: 6px; border-top: 1px dashed var(--tm-line); }
.tm .lp-menu { box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .85); }

/* ---------- Bảng giá ---------- */
.tm-prices__win { overflow: hidden; }
.tm-price-box {
    padding: clamp(14px, 3vw, 28px);
    overflow-x: auto;
    color: var(--tm-text);
    font-family: var(--tm-font-mono);
    font-size: .84375rem;
}
.tm-price-box #label_table_prices {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 0 !important;
}
.tm-price-box #label_table_prices > span {
    margin-right: 0 !important;
    color: var(--tm-text-2);
    font-size: .8125rem !important;
}
.tm-price-box #label_table_prices > span::before { content: "$ filter "; color: var(--tm-green); }

.tm-price-box #service-category-select,
.tm-price-box .dataTables_wrapper .dataTables_length select,
.tm-price-box .dataTables_wrapper .dataTables_filter input {
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--tm-line-2);
    border-radius: 8px;
    background-color: var(--tm-panel-3);
    color: var(--tm-white);
    font-family: var(--tm-font-mono);
    font-size: .8125rem;
    outline: 0;
    transition: border-color .2s, box-shadow .2s;
}
.tm-price-box #service-category-select { min-width: 180px; }
.tm-price-box .dataTables_wrapper .dataTables_length select { padding-right: 6px; }
.tm-price-box #service-category-select:focus,
.tm-price-box .dataTables_wrapper .dataTables_length select:focus,
.tm-price-box .dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--tm-green);
    box-shadow: 0 0 0 3px rgba(61, 255, 154, .14);
}
.tm-price-box select option { background: var(--tm-panel); color: var(--tm-text); }

.tm-price-box .dataTables_wrapper { color: var(--tm-text-2); }
.tm-price-box .dataTables_wrapper .dataTables_length,
.tm-price-box .dataTables_wrapper .dataTables_filter,
.tm-price-box .dataTables_wrapper .dataTables_info,
.tm-price-box .dataTables_wrapper .dataTables_paginate {
    color: var(--tm-text-2);
    font-size: .8125rem;
}
.tm-price-box .dataTables_wrapper .dataTables_length,
.tm-price-box .dataTables_wrapper .dataTables_filter { margin-bottom: 14px; }
.tm-price-box .dataTables_wrapper .dataTables_filter input { margin-left: 8px; }
.tm-price-box #table_prices_wrapper label { margin-bottom: 0; }

.tm-price-box table.dataTable {
    width: 100% !important;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--tm-line);
    border-radius: 10px;
    overflow: hidden;
}
.tm-price-box table.dataTable thead th {
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid var(--tm-line-2);
    background: var(--tm-panel-2);
    color: var(--tm-muted);
    font-size: .71875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.tm-price-box table.dataTable thead th + th { border-left: 1px solid var(--tm-line); }
.tm-price-box table.dataTable thead > tr > th.sorting_asc,
.tm-price-box table.dataTable thead > tr > th.sorting_desc { color: var(--tm-green); }
.tm-price-box table.dataTable tbody td {
    padding: 11px 16px;
    border: 0;
    border-top: 1px solid var(--tm-line);
    color: var(--tm-text);
    background: transparent;
}
.tm-price-box table.dataTable tbody tr:first-child td { border-top: 0; }
.tm-price-box table.dataTable tbody td + td { border-left: 1px solid var(--tm-line); }
.tm-price-box table.dataTable tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .015); }
.tm-price-box table.dataTable tbody tr:hover td { background: var(--tm-green-a10); }
.tm-price-box table.dataTable tbody td:nth-child(2) {
    color: var(--tm-amber) !important;
    font-weight: 600 !important;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.tm-price-box table.dataTable tbody td.dataTables_empty { color: var(--tm-muted); text-align: center; }

.tm-price-box .dataTables_wrapper .dataTables_info { padding-top: 16px; }
.tm-price-box .dataTables_wrapper .dataTables_paginate { padding-top: 12px; }
.tm-price-box .dataTables_wrapper .dataTables_paginate .paginate_button {
    min-width: 34px;
    margin-left: 4px;
    padding: 6px 10px;
    border: 1px solid var(--tm-line-2);
    border-radius: 7px;
    background: transparent;
    color: var(--tm-text-2) !important;
    font-size: .78125rem;
}
.tm-price-box .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    border-color: var(--tm-green-a45);
    background: var(--tm-green-a10);
    color: var(--tm-green) !important;
}
.tm-price-box .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.tm-price-box .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    border-color: var(--tm-green);
    background: var(--tm-green);
    color: var(--tm-green-ink) !important;
    font-weight: 700;
}
.tm-price-box .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.tm-price-box .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
.tm-price-box .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
    border-color: var(--tm-line);
    background: transparent;
    color: #4d5869 !important;
}
.tm-price-box .dataTables_wrapper .dataTables_paginate .ellipsis { color: var(--tm-muted); }
/* ghi chú cấp bậc (inline màu cam đậm → đổi sang amber đọc được trên nền tối) */
.tm-price-box > div > div:last-child:not(.dataTables_wrapper) {
    color: var(--tm-amber) !important;
    font-size: .75rem;
}

/* ---------- FAQ ---------- */
.tm-faq__grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: clamp(32px, 5vw, 72px);
}
.tm-faq__head { position: sticky; top: calc(var(--tm-header-h) + 32px); margin-bottom: 0; }
.tm-faq__head .tm-btn { margin-top: 24px; }
.tm-faq__list { display: grid; gap: 10px; }
.tm-faq__item {
    border: 1px solid var(--tm-line);
    border-radius: 10px;
    background: rgba(13, 17, 23, .8);
    transition: border-color .25s, background-color .25s;
}
.tm-faq__item[open] { border-color: var(--tm-green-a25); background: rgba(17, 24, 35, .9); }
.tm-faq__item summary {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 16px 18px;
    color: var(--tm-white);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.5;
    list-style: none;
    cursor: pointer;
}
.tm-faq__item summary::-webkit-details-marker { display: none; }
.tm-faq__item summary:hover { color: var(--tm-green); }
.tm-faq__mark {
    display: inline-block;
    flex-shrink: 0;
    color: var(--tm-green);
    font-weight: 700;
    transition: transform .25s var(--tm-ease);
}
.tm-faq__item[open] .tm-faq__mark { transform: rotate(90deg); }
.tm-faq__a { padding: 0 18px 18px 40px; }
.tm-faq__a p { margin: 0; color: var(--tm-text-2); font-size: .84375rem; line-height: 1.75; }

/* ---------- CTA cuối ---------- */
.tm-cta-sec { padding-top: 0; }
.tm-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(36px, 6vw, 72px) clamp(22px, 5vw, 64px);
    border: 1px solid var(--tm-green-a25);
    border-radius: 18px;
    background:
        radial-gradient(40rem 20rem at 85% 120%, rgba(61, 255, 154, .16), transparent 60%),
        radial-gradient(30rem 16rem at 0% -20%, rgba(76, 201, 240, .12), transparent 60%),
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 28px 28px,
        var(--tm-panel);
    box-shadow: 0 0 80px -30px rgba(61, 255, 154, .35);
}
.tm-cta__glyph {
    position: absolute;
    right: clamp(8px, 3vw, 48px);
    bottom: -.06em;
    color: rgba(61, 255, 154, .06);
    font-family: var(--tm-font-mono);
    font-size: clamp(8rem, 16vw, 13rem);
    font-weight: 700;
    line-height: .9;
    pointer-events: none;
    user-select: none;
}
.tm-cta .tm-prompt { position: relative; margin-bottom: 16px; }
.tm-cta__title {
    position: relative;
    max-width: 16ch;
    margin: 0;
    color: var(--tm-white);
    font-family: var(--tm-font-head);
    font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.03em;
}
.tm-cta__text { position: relative; max-width: 52ch; margin: 18px 0 0; color: var(--tm-text-2); }
.tm-cta__actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Footer ---------- */
.tm-footer {
    position: relative;
    padding: clamp(48px, 6vw, 72px) 0 28px;
    border-top: 1px solid var(--tm-line);
    background: rgba(8, 11, 16, .9);
    font-size: .8125rem;
}
.tm-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .7fr);
    gap: clamp(28px, 4vw, 56px);
}
.tm-footer__about p { max-width: 46ch; margin: 18px 0 0; color: var(--tm-text-2); line-height: 1.75; }
.tm-footer__title {
    margin: 0 0 16px;
    color: var(--tm-green);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
}
.tm-footer__platforms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.tm-footer__platforms li { display: flex; align-items: center; gap: 10px; color: var(--tm-text-2); }
.tm-footer__platforms .tm-ic { color: var(--tm-muted); font-size: 15px; }
.tm-footer__links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tm .tm-footer__links a { color: var(--tm-text-2); transition: color .2s; }
.tm .tm-footer__links a::before { content: "→ "; color: var(--tm-muted); transition: color .2s; }
.tm .tm-footer__links a:hover { color: var(--tm-green); }
.tm .tm-footer__links a:hover::before { color: var(--tm-green); }

.tm-footer__eof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: clamp(36px, 5vw, 56px);
    padding-top: 22px;
    border-top: 1px dashed var(--tm-line-2);
    color: var(--tm-muted);
    font-size: .75rem;
}
.tm-footer__eof-tag {
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--tm-panel-2);
    color: var(--tm-green);
    font-weight: 700;
    letter-spacing: .12em;
}

/* ---------- Nút lên đầu trang (góc trái, tránh widget liên hệ bên phải) ---------- */
.tm .tm-top {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 60;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--tm-line-2);
    border-radius: 10px;
    background: rgba(13, 17, 23, .9);
    color: var(--tm-green);
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s, transform .25s var(--tm-ease), visibility .25s, border-color .2s;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.tm .tm-top.is-show { opacity: 1; visibility: visible; transform: none; }
.tm .tm-top:hover { border-color: var(--tm-green); color: var(--tm-green); }

/* ---------- Hiện dần khi cuộn ---------- */
.js body.tm [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity .7s var(--tm-ease) var(--tm-d, 0ms), transform .7s var(--tm-ease) var(--tm-d, 0ms);
}
.js body.tm [data-reveal].is-in { opacity: 1; transform: none; }
/* thẻ module vừa reveal vừa có hiệu ứng hover riêng */
.js body.tm .tm-mod[data-reveal] {
    transition:
        opacity .7s var(--tm-ease) var(--tm-d, 0ms),
        transform .7s var(--tm-ease) var(--tm-d, 0ms),
        border-color .3s,
        box-shadow .35s;
}

/* ---------- Keyframes ---------- */
@keyframes tm-blink { 50% { opacity: 0; } }
@keyframes tm-ping {
    0% { transform: scale(.6); opacity: .8; }
    80%, 100% { transform: scale(1.6); opacity: 0; }
}
@keyframes tm-marquee { to { transform: translate3d(-50%, 0, 0); } }
@keyframes tm-dash-x { to { background-position: 16px 0; } }
@keyframes tm-dash-y { to { background-position: 0 16px; } }
@keyframes tm-packet-x {
    0% { left: calc(100% / 6); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: calc(100% * 5 / 6 - 8px); opacity: 0; }
}
@keyframes tm-line-in { from { opacity: 0; transform: translateX(-4px); } }

/* ============================ Responsive ============================ */
@media (max-width: 1199px) {
    .tm-status__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tm-status__head { grid-column: 1 / -1; padding-right: 0; }
    .tm-nav { gap: 18px; }
}

@media (max-width: 991px) {
    /* menu thu gọn */
    .tm-nav-toggle { display: grid; }
    .tm-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 14px var(--tm-gutter) 20px;
        border-bottom: 1px solid var(--tm-line);
        background: #080b10;
        box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .9);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .22s, transform .22s var(--tm-ease), visibility .22s;
    }
    .tm-header.is-open { background: #080b10; border-bottom-color: var(--tm-line); }
    .tm-header.is-open .tm-nav { opacity: 1; visibility: visible; transform: none; }
    .tm-nav__links { flex-direction: column; align-items: stretch; gap: 2px; }
    .tm .tm-nav__link { display: flex; padding: 12px 10px; font-size: .9375rem; border-bottom: 1px dashed var(--tm-line); border-radius: 0; }
    .tm-nav__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .tm-nav__actions .tm-btn { height: 46px; }

    .tm-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .tm-hero::before { top: auto; bottom: 0; right: 50%; transform: translateX(50%); width: min(90vw, 620px); }
    .tm-h1__line { max-width: 22ch; }
    .tm-hero__visual { max-width: 640px; }

    .tm-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .tm-auth__grid { grid-template-columns: minmax(0, 1fr); }
    .tm-auth__intro { position: static; }
    .tm-session { display: none; }

    .tm-faq__grid { grid-template-columns: minmax(0, 1fr); }
    .tm-faq__head { position: static; }

    .tm-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .tm-footer__about { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
    .tm-status__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .tm-stat { display: grid; grid-template-columns: minmax(0, 1fr) 42%; column-gap: 12px; padding-bottom: 14px; }
    .tm-stat__head { grid-column: 1 / -1; }
    .tm-stat__value { grid-column: 1; }
    .tm-stat__label { grid-column: 1; }
    .tm-spark { grid-column: 2; grid-row: 2 / span 2; align-self: end; width: 100%; height: 48px; margin: 0; }

    .tm-mods { grid-template-columns: minmax(0, 1fr); }

    /* pipeline dọc: mỗi nút tự vẽ đoạn nối xuống nút kế tiếp */
    .tm-pipe { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .tm-pipe::before,
    .tm-pipe::after { display: none; }
    .tm-node:not(:last-child)::before {
        content: "";
        position: absolute;
        top: 62px;
        bottom: -14px;
        left: 27px;
        width: 2px;
        background: repeating-linear-gradient(180deg, var(--tm-green-a45) 0 8px, transparent 8px 16px);
        background-size: 2px 16px;
        animation: tm-dash-y .9s linear infinite;
    }
    .tm-node { flex-direction: row; align-items: flex-start; gap: 16px; }
    .tm-node__dot { flex-shrink: 0; }
    .tm-node__panel { margin-top: 0; }
}

@media (max-width: 575px) {
    body.tm { --tm-header-h: 58px; font-size: .875rem; }
    .tm-header__bar { gap: 12px; }
    .tm .tm-brand { gap: 10px; font-size: .875rem; }
    .tm-dots { gap: 5px; }
    .tm-dots i { width: 10px; height: 10px; }

    .tm-hero__cta .tm-btn { flex: 1 1 100%; }
    .tm-hero__ghost { display: none; }
    .tm-term__screen { height: 316px; padding: 12px 14px; font-size: .71875rem; line-height: 1.75; }
    .tm-term__size { display: none; }

    .tm-auth__grid { padding: 18px 14px 14px; }
    .tm-auth .box-cover .card-body { padding: 18px 16px; }
    .tm-auth .box-cover .img-fluid { max-width: 120px; }
    .tm-auth .box-cover h2 { font-size: 1.3rem; }
    .tm-win__meta { display: none; }

    .tm-price-box #service-category-select { min-width: 0; flex: 1; }

    .tm-faq__item summary { padding: 14px; gap: 10px; }
    .tm-faq__a { padding: 0 14px 16px 32px; }

    .tm-cta__actions .tm-btn { flex: 1 1 100%; }
    .tm-cta__glyph { display: none; }
    .tm-price-box .dataTables_wrapper .dataTables_paginate .paginate_button { min-width: 30px; margin-left: 2px; padding: 5px 8px; }

    .tm-footer__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 400px) {
    /* reCAPTCHA cố định 304px: thu nhỏ để không tràn */
    .tm-auth .box-cover .g-recaptcha { transform: scale(.86); transform-origin: 0 0; }
    .tm-auth .box-cover .area-captcha { height: 76px; overflow: hidden; }
}

/* ---------- Giảm chuyển động ---------- */
@media (prefers-reduced-motion: reduce) {
    body.tm *,
    body.tm *::before,
    body.tm *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        transition-delay: 0s !important;
    }
    .tm-marquee__track { animation: none; }
    .tm-pipe::after { display: none; }
    .tm-cursor,
    .tm-term__cursor { animation: none; }
    .js body.tm [data-reveal] { opacity: 1; transform: none; }
}
