/* =============================================================================
   Landing page11 — "Neon HUD"
   Bảng điều khiển khoa học viễn tưởng: nền gần đen xanh, neon cyan (chính) + magenta (phụ),
   khung ngoặc vuông 4 góc, góc vát clip-path, lưới mảnh + scanline, chữ readout mono.
   Mọi class dùng tiền tố hd-; token màu đặt trên body.hd.
   ============================================================================= */

/* ---------- Token & nền ---------- */
body.hd {
    --hd-bg: #05070d;
    --hd-bg-2: #0a0f1f;
    --hd-panel: rgba(9, 16, 34, .74);
    --hd-ink-solid: #071021;
    --hd-line: rgba(34, 225, 255, .14);
    --hd-line-2: rgba(34, 225, 255, .28);
    --hd-line-3: rgba(34, 225, 255, .55);
    --hd-cyan: #22e1ff;
    --hd-cyan-2: #8ff3ff;
    --hd-cyan-ink: #02121a;
    --hd-magenta: #ff2bd6;
    --hd-lime: #b6ff3b;
    --hd-text: #e6f1ff;
    --hd-text-2: #c9d5ee;
    --hd-muted: #8a97bd;
    --hd-dim: #6f7da6;
    --hd-grad: linear-gradient(100deg, #22e1ff 0%, #8ff3ff 100%);
    --hd-ease: cubic-bezier(.2, .75, .2, 1);
    --hd-wrap: 1200px;
    --hd-gutter: clamp(16px, 4vw, 32px);
    --hd-header-h: 68px;
    --hd-font: "Chakra Petch", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --hd-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* Ngoặc vuông 4 góc: 8 dải màu currentColor, kích thước đặt bằng --l (dài) / --t (dày) */
    --hd-brk-img:
        linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor),
        linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor),
        linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor),
        linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
    --hd-brk-pos: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;

    margin: 0;
    min-height: 100vh;
    background: var(--hd-bg);
    color: var(--hd-text);
    font-family: var(--hd-font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

.hd ::selection { background: rgba(34, 225, 255, .32); color: #fff; }

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

.hd-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.hd-main,
.hd-footer { position: relative; z-index: 1; }
.hd-main p,
.hd-footer p { margin: 0; }

.hd-wrap {
    width: 100%;
    max-width: calc(var(--hd-wrap) + 2 * var(--hd-gutter));
    margin-inline: auto;
    padding-inline: var(--hd-gutter);
}

.hd-section { padding-block: clamp(56px, 7vw, 96px); }
.hd-section[id],
.hd-hero[id] { scroll-margin-top: 92px; }

/* Nền HUD cố định: quầng sáng + lưới mảnh + scanline (không animate để nhẹ máy) */
.hd-fx {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.hd-fx__glow,
.hd-fx__grid,
.hd-fx__scan {
    position: absolute;
    inset: 0;
}
.hd-fx__glow {
    background:
        radial-gradient(900px 560px at 80% -10%, rgba(34, 225, 255, .14), transparent 62%),
        radial-gradient(700px 520px at -8% 42%, rgba(255, 43, 214, .075), transparent 62%),
        radial-gradient(900px 640px at 100% 110%, rgba(34, 225, 255, .07), transparent 60%),
        linear-gradient(180deg, #05070d 0%, #070b17 55%, #0a0f1f 100%);
}
.hd-fx__grid {
    background-image:
        linear-gradient(rgba(34, 225, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 225, 255, .05) 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 25%, #000 30%, transparent 88%);
    mask-image: radial-gradient(ellipse 90% 75% at 50% 25%, #000 30%, transparent 88%);
}
.hd-fx__scan {
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px);
}

/* ---------- Khung HUD: ngoặc vuông 4 góc ---------- */
.hd-frame { position: relative; }
.hd-frame::before,
.hd-nav__link::before,
.hd-sys::before,
.hd-phase__card::before,
.hd-faq__item::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 2;
    color: var(--hd-brk-c, var(--hd-cyan));
    background-image: var(--hd-brk-img);
    background-position: var(--hd-brk-pos);
    background-size:
        var(--l, 14px) var(--t, 2px), var(--t, 2px) var(--l, 14px),
        var(--l, 14px) var(--t, 2px), var(--t, 2px) var(--l, 14px),
        var(--l, 14px) var(--t, 2px), var(--t, 2px) var(--l, 14px),
        var(--l, 14px) var(--t, 2px), var(--t, 2px) var(--l, 14px);
    background-repeat: no-repeat;
    pointer-events: none;
    transition: opacity .3s, color .3s, filter .3s;
}
.hd-frame::before { filter: drop-shadow(0 0 4px rgba(34, 225, 255, .55)); }

/* ---------- Chữ & thành phần chung ---------- */
.hd-glow {
    color: var(--hd-cyan);
    text-shadow: 0 0 18px rgba(34, 225, 255, .5), 0 0 2px rgba(34, 225, 255, .6);
}

.hd-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--hd-cyan);
    font-family: var(--hd-mono);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.hd-tag::before {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    background: var(--hd-cyan);
    box-shadow: 0 0 10px var(--hd-cyan);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.hd-tag::after {
    content: "";
    flex-shrink: 0;
    width: 56px;
    height: 1px;
    background: linear-gradient(90deg, var(--hd-line-3), transparent);
}

.hd-head {
    max-width: 860px;
    margin: 0 0 clamp(36px, 5vw, 56px);
}
.hd-head--split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 40px;
    max-width: none;
}
.hd-head--split > div { max-width: 680px; }

.hd-h2 {
    margin: 16px 0 14px;
    color: var(--hd-text);
    font-family: var(--hd-font);
    font-size: clamp(1.9rem, 1.3rem + 2.3vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.005em;
    text-wrap: balance;
}

.hd-sub {
    color: var(--hd-muted);
    font-size: clamp(1rem, .96rem + .25vw, 1.125rem);
    line-height: 1.65;
    text-wrap: pretty;
}

.hd-dot {
    display: inline-block;
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hd-cyan);
    box-shadow: 0 0 8px currentColor;
}
.hd-dot--lime { background: var(--hd-lime); color: var(--hd-lime); }

.hd-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--hd-lime);
    font-family: var(--hd-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .14em;
    white-space: nowrap;
}
.hd-live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hd-lime);
    box-shadow: 0 0 10px var(--hd-lime);
    animation: hd-blink 2.4s steps(1) infinite;
}
.hd-live--static i { animation: none; }

@keyframes hd-blink {
    0%, 70% { opacity: 1; }
    71%, 100% { opacity: .25; }
}

/* ---------- Nút góc vát: lớp nền ::before/::after cắt clip-path, phát sáng bằng drop-shadow ---------- */
.hd-btn {
    --c: 11px;
    --bh: 48px;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: var(--bh);
    padding: 0 26px;
    color: var(--hd-text);
    font-family: var(--hd-font);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s, filter .25s, transform .2s var(--hd-ease);
}
.hd-btn::before,
.hd-btn::after {
    content: "";
    position: absolute;
    z-index: -1;
    clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
    transition: background .25s, opacity .25s;
}
.hd-btn::before { inset: 0; background: var(--hd-line-3); }
.hd-btn::after { inset: 1px; background: rgba(6, 12, 26, .94); }
.hd-btn:hover { color: #fff; text-decoration: none; }
.hd-btn:hover::before { background: var(--hd-cyan); }
.hd-btn:hover::after { background: rgba(10, 30, 52, .96); }
.hd-btn:focus-visible { outline: 2px solid var(--hd-cyan-2); outline-offset: 4px; }
.hd-btn .hd-ic { font-size: 18px; transition: transform .25s var(--hd-ease); }
.hd-btn:hover .hd-ic:last-child:not(:first-child) { transform: translateX(3px); }

.hd-btn--primary {
    color: var(--hd-cyan-ink);
    filter: drop-shadow(0 0 10px rgba(34, 225, 255, .42));
}
.hd-btn--primary::before { background: var(--hd-grad); }
.hd-btn--primary::after { opacity: 0; }
.hd-btn--primary:hover {
    color: var(--hd-cyan-ink);
    filter: drop-shadow(0 0 18px rgba(34, 225, 255, .7));
}
.hd-btn--primary:hover::before { background: linear-gradient(100deg, #5ae9ff, #c2f9ff); }

.hd-btn--ghost { color: var(--hd-cyan-2); }
.hd-btn--sm { --bh: 40px; --c: 9px; padding: 0 18px; font-size: 13.5px; }
.hd-btn--lg { --bh: 54px; --c: 13px; padding: 0 30px; font-size: 15.5px; }

/* ---------- Header ---------- */
.hd-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
}
.hd-header__bar {
    position: relative;
    border-bottom: 1px solid var(--hd-line);
    background: rgba(5, 8, 16, .6);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    transition: background-color .3s;
}
.hd-header__bar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent 8%, var(--hd-cyan) 50%, transparent 92%);
    opacity: .5;
}
.hd-header.is-scrolled .hd-header__bar,
.hd-header.is-open .hd-header__bar { background: rgba(5, 8, 16, .92); }
.hd-header__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: var(--hd-header-h);
}

.hd-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--hd-text);
    text-decoration: none;
}
.hd-brand:hover { color: #fff; text-decoration: none; }
.hd-brand__glyph {
    --c: 9px;
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: var(--hd-cyan);
}
.hd-brand__glyph::before,
.hd-brand__glyph::after {
    content: "";
    position: absolute;
    z-index: -1;
    clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.hd-brand__glyph::before { inset: 0; background: linear-gradient(135deg, var(--hd-cyan), rgba(255, 43, 214, .7)); }
.hd-brand__glyph::after { inset: 1px; background: #071022; }
.hd-brand__glyph .hd-ic {
    font-size: 21px;
    filter: drop-shadow(0 0 6px rgba(34, 225, 255, .75));
}
.hd-brand__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}
.hd-brand__name {
    overflow: hidden;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .05em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}
.hd-brand__sys {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    color: var(--hd-dim);
    font-family: var(--hd-mono);
    font-size: 10px;
    letter-spacing: .16em;
}
.hd-brand__sys i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hd-lime);
    box-shadow: 0 0 8px var(--hd-lime);
    animation: hd-blink 2.4s steps(1) infinite;
}

.hd-nav__links {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hd-nav__link {
    --l: 7px;
    --t: 1.5px;
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 9px 12px;
    color: var(--hd-muted);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .2s;
}
.hd-nav__link::before { opacity: 0; transform: scale(1.12); transition: opacity .2s, transform .25s var(--hd-ease); }
.hd-nav__link:hover { color: var(--hd-text); text-decoration: none; }
.hd-nav__link:hover::before { opacity: 1; transform: none; }
.hd-nav__no {
    color: var(--hd-dim);
    font-family: var(--hd-mono);
    font-size: 10.5px;
    letter-spacing: 0;
    transition: color .2s;
}
.hd-nav__link:hover .hd-nav__no { color: var(--hd-cyan); }
.hd-nav__actions { display: flex; align-items: center; gap: 10px; }

.hd-burger {
    --c: 8px;
    position: relative;
    isolation: isolate;
    display: none;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--hd-cyan-2);
    cursor: pointer;
}
.hd-burger::before,
.hd-burger::after {
    content: "";
    position: absolute;
    z-index: -1;
    clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.hd-burger::before { inset: 0; background: var(--hd-line-3); }
.hd-burger::after { inset: 1px; background: #071022; }
.hd-burger .hd-ic { font-size: 21px; }
.hd-burger__close { display: none; }
.hd-header.is-open .hd-burger__open { display: none; }
.hd-header.is-open .hd-burger__close { display: inline-block; }

@media (min-width: 992px) {
    .hd-nav {
        display: flex;
        flex: 1;
        align-items: center;
        gap: 16px;
        min-width: 0;
    }
    .hd-nav__links { margin-inline: auto; }
    .hd-header__quick { display: none; }
}

@media (max-width: 991.98px) {
    .hd-brand { margin-right: auto; }
    .hd-burger { display: grid; }
    .hd-header__quick { flex-shrink: 0; }
    .hd-header__inner { gap: 10px; }

    .hd-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 14px var(--hd-gutter) 18px;
        border-bottom: 1px solid var(--hd-line-2);
        background: linear-gradient(180deg, #070c19, #050810);
        box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .9);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .22s var(--hd-ease), transform .22s var(--hd-ease), visibility 0s linear .22s;
    }
    .hd-header.is-open .hd-nav {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition-delay: 0s;
    }
    .hd-nav__links { flex-direction: column; align-items: stretch; gap: 4px; }
    .hd-nav__link {
        padding: 13px 12px;
        border: 1px solid var(--hd-line);
        background: rgba(34, 225, 255, .03);
        color: var(--hd-text);
        font-size: 15px;
    }
    .hd-nav__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding-top: 14px;
        border-top: 1px dashed var(--hd-line-2);
    }
    .hd-nav__actions .hd-btn { --bh: 46px; }
}

@media (max-width: 479.98px) {
    .hd-brand { gap: 10px; }
    .hd-brand__glyph { width: 36px; height: 36px; }
    .hd-brand__name { font-size: 14.5px; letter-spacing: .02em; }
    .hd-sys { gap: 6px 8px; padding: 7px 12px; font-size: 10.5px; letter-spacing: .1em; }
    .hd-sys__dim { letter-spacing: .06em; }
}
@media (max-width: 359.98px) {
    .hd-brand__sys { display: none; }
}
@media (max-width: 339.98px) {
    .hd-header__quick { display: none; }
}

/* ---------- Hero ---------- */
.hd-hero {
    position: relative;
    padding: calc(var(--hd-header-h) + clamp(40px, 6vw, 84px)) 0 clamp(48px, 6vw, 80px);
}
.hd-hero__grid {
    display: grid;
    align-items: center;
    gap: clamp(44px, 5vw, 64px);
}
@media (min-width: 1080px) {
    .hd-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); }
}

.hd-sys {
    --l: 6px;
    --t: 1.5px;
    position: relative;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 7px 14px;
    border: 1px solid var(--hd-line);
    background: rgba(34, 225, 255, .05);
    color: var(--hd-cyan);
    font-family: var(--hd-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.hd-sys__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hd-lime);
    box-shadow: 0 0 10px var(--hd-lime);
    animation: hd-blink 2.4s steps(1) infinite;
}
.hd-sys__sep { color: var(--hd-magenta); }
.hd-sys__dim { color: var(--hd-muted); letter-spacing: .12em; }

.hd-hero__title {
    margin: 24px 0 0;
    font-family: var(--hd-font);
    font-weight: 700;
}
.hd-callsign {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 16px;
    padding: 6px 16px 6px 12px;
    border-left: 2px solid var(--hd-cyan);
    background: linear-gradient(90deg, rgba(34, 225, 255, .16), rgba(34, 225, 255, 0));
    color: var(--hd-cyan);
    font-family: var(--hd-mono);
    font-size: clamp(.95rem, .86rem + .4vw, 1.15rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .06em;
    text-shadow: 0 0 12px rgba(34, 225, 255, .55);
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.hd-callsign__mark { color: var(--hd-magenta); text-shadow: 0 0 10px rgba(255, 43, 214, .6); }
.hd-hero__line {
    display: block;
    color: var(--hd-text);
    font-size: clamp(2.1rem, 1.3rem + 2.9vw, 3.6rem);
    line-height: 1.12;
    letter-spacing: -.01em;
    text-wrap: balance;
}

.hd-hero__lead {
    max-width: 560px;
    margin-top: 24px !important;
    color: var(--hd-muted);
    font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
    line-height: 1.7;
}

.hd-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hd-signal { margin-top: 38px; }
.hd-signal__label {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 420px;
    margin-bottom: 12px;
    color: var(--hd-dim);
    font-family: var(--hd-mono);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.hd-signal__label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--hd-line-2), transparent);
}
.hd-signal__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hd-signal__item {
    --c: 8px;
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #c7eefa;
    font-size: 19px;
    transition: color .2s, transform .2s var(--hd-ease);
}
.hd-signal__item::before,
.hd-signal__item::after {
    content: "";
    position: absolute;
    z-index: -1;
    clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.hd-signal__item::before { inset: 0; background: var(--hd-line-2); transition: background .2s; }
.hd-signal__item::after { inset: 1px; background: #081124; }
.hd-signal__item:hover { color: var(--brand, var(--hd-cyan)); transform: translateY(-2px); }
.hd-signal__item:hover::before { background: var(--brand, var(--hd-cyan)); }
.hd-signal__item--more a {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--hd-cyan);
    font-family: var(--hd-mono);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

/* ---------- Trạm điều khiển (minh hoạ hero) ---------- */
.hd-hero__visual { position: relative; min-width: 0; }
.hd-deck { position: relative; }
.hd-console {
    --l: 18px;
    border: 1px solid var(--hd-line-2);
    background: linear-gradient(180deg, rgba(12, 21, 42, .9), rgba(6, 11, 24, .92));
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .35),
        0 40px 90px -40px rgba(0, 0, 0, .95),
        0 0 80px -30px rgba(34, 225, 255, .35);
}
/* tia quét chạy dọc khung */
.hd-console__beam {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}
.hd-console__beam::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 82%, rgba(34, 225, 255, .05) 94%, rgba(34, 225, 255, .22) 99.6%, rgba(143, 243, 255, .5) 100%);
    transform: translateY(-100%);
    animation: hd-beam 7s linear infinite;
}
@keyframes hd-beam {
    from { transform: translateY(-100%); }
    to { transform: translateY(100%); }
}

.hd-console__bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 18px;
    border-bottom: 1px solid var(--hd-line);
    background: rgba(34, 225, 255, .035);
    color: var(--hd-muted);
    font-family: var(--hd-mono);
    font-size: 11px;
    letter-spacing: .14em;
    white-space: nowrap;
}
.hd-console__id {
    overflow: hidden;
    color: var(--hd-text-2);
    text-overflow: ellipsis;
}
.hd-console__id b { color: var(--hd-magenta); font-weight: 500; }
.hd-console__bar .hd-live { margin-left: auto; }
.hd-console__clock {
    color: var(--hd-cyan);
    font-variant-numeric: tabular-nums;
}

.hd-console__grid {
    display: grid;
    grid-template-columns: minmax(0, 232px) minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    padding: 20px 18px;
}

@media (min-width: 1080px) and (max-width: 1279.98px) {
    .hd-console__grid { grid-template-columns: minmax(0, 172px) minmax(0, 1fr); gap: 16px; padding: 20px 14px; }
    .hd-blip { --s: 26px; font-size: 12px; }
}

/* Radar */
.hd-radar {
    position: relative;
    width: 100%;
    max-width: 240px;
    margin-inline: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 225, 255, .12), rgba(34, 225, 255, .03) 58%, transparent 71%);
}
.hd-radar__grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    fill: none;
    stroke: rgba(34, 225, 255, .3);
    stroke-width: .8;
}
.hd-radar__grid .hd-radar__ticks {
    stroke: rgba(34, 225, 255, .5);
    stroke-width: 4;
    stroke-dasharray: .7 4.117;
}
.hd-radar__grid .hd-radar__diag { stroke: rgba(34, 225, 255, .14); stroke-dasharray: 2 4; }
.hd-radar__grid .hd-radar__inner { stroke: rgba(255, 43, 214, .55); }
.hd-radar__sweep {
    position: absolute;
    inset: 1%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg 286deg, rgba(34, 225, 255, .03) 286deg, rgba(34, 225, 255, .3) 357deg, rgba(160, 245, 255, .7) 360deg);
    animation: hd-spin 4.8s linear infinite;
}
.hd-radar__sweep::after {
    content: "";
    position: absolute;
    left: calc(50% - .75px);
    top: 0;
    width: 1.5px;
    height: 50%;
    background: linear-gradient(0deg, rgba(160, 245, 255, .1), #b8f8ff);
    box-shadow: 0 0 8px var(--hd-cyan);
}
@keyframes hd-spin { to { transform: rotate(360deg); } }

.hd-radar__core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: var(--hd-cyan);
    box-shadow: 0 0 12px var(--hd-cyan);
}
.hd-radar__tag {
    position: absolute;
    color: var(--hd-dim);
    font-family: var(--hd-mono);
    font-size: 9px;
    letter-spacing: .14em;
}
.hd-radar__tag--n { top: -16px; left: 50%; transform: translateX(-50%); }

/* Điểm sáng: sáng lên đúng lúc tia quét đi qua (độ trễ tính theo góc --a) */
.hd-blip {
    --s: 30px;
    position: absolute;
    z-index: 1;
    display: grid;
    place-items: center;
    width: var(--s);
    height: var(--s);
    margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
    border: 1px solid rgba(34, 225, 255, .45);
    border-radius: 50%;
    background: rgba(5, 12, 26, .92);
    color: #b9effb;
    font-size: 14px;
    animation: hd-blip 4.8s linear infinite;
    animation-delay: calc((var(--a) / 360 - 1) * 4.8s);
}
.hd-blip::after {
    content: "";
    position: absolute;
    inset: -1px;
    border: 1px solid var(--hd-cyan);
    border-radius: 50%;
    opacity: 0;
    animation: hd-ping 4.8s ease-out infinite;
    animation-delay: inherit;
}
@keyframes hd-blip {
    0% {
        border-color: var(--hd-cyan);
        color: #fff;
        box-shadow: 0 0 16px rgba(34, 225, 255, .9), inset 0 0 8px rgba(34, 225, 255, .45);
        transform: scale(1.12);
    }
    24%, 100% {
        border-color: rgba(34, 225, 255, .45);
        color: #b9effb;
        box-shadow: none;
        transform: none;
    }
}
@keyframes hd-ping {
    0% { opacity: .9; transform: scale(1); }
    26%, 100% { opacity: 0; transform: scale(2.2); }
}

/* Hàng đợi đơn */
.hd-queue {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.hd-queue__head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 9px;
    border-bottom: 1px dashed var(--hd-line-2);
    color: var(--hd-cyan);
    font-family: var(--hd-mono);
    font-size: 11px;
    letter-spacing: .16em;
}
.hd-queue__count { color: var(--hd-muted); }
.hd-queue__list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hd-job {
    --tone: var(--hd-cyan);
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    grid-template-areas: "ic name pct" "ic bar st";
    align-items: center;
    gap: 7px 10px;
    padding: 9px 12px 9px 11px;
    border: 1px solid var(--hd-line);
    border-left: 2px solid var(--tone);
    background: rgba(3, 8, 18, .72);
}
.hd-job.is-done { --tone: var(--hd-lime); }
.hd-job.is-wait { --tone: var(--hd-magenta); }
.hd-job__ic {
    --c: 7px;
    grid-area: ic;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    background: rgba(34, 225, 255, .1);
    color: #d3f6ff;
    font-size: 15px;
    clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.hd-job__name {
    grid-area: name;
    overflow: hidden;
    color: var(--hd-text);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hd-job__pct {
    grid-area: pct;
    color: var(--tone);
    font-family: var(--hd-mono);
    font-size: 12.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.hd-job__bar {
    grid-area: bar;
    min-width: 0;
    filter: drop-shadow(0 0 4px rgba(34, 225, 255, .5));
}
.hd-job__st {
    grid-area: st;
    color: var(--tone);
    font-family: var(--hd-mono);
    font-size: 9.5px;
    letter-spacing: .12em;
    white-space: nowrap;
}
.hd-job.is-done .hd-seg > i { background: var(--hd-lime); }
.hd-job.is-done .hd-job__bar { filter: drop-shadow(0 0 4px rgba(182, 255, 59, .45)); }

/* Thanh tiến trình chia khúc: mask cắt thành --n khúc đều nhau */
.hd-seg {
    --n: 20;
    position: relative;
    display: block;
    height: 8px;
    background: rgba(34, 225, 255, .14);
    -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 calc(100% / var(--n) - 2px), transparent 0 calc(100% / var(--n)));
    mask-image: repeating-linear-gradient(90deg, #000 0 calc(100% / var(--n) - 2px), transparent 0 calc(100% / var(--n)));
}
.hd-seg > i {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: calc(var(--p, 0) * 1%);
    background: linear-gradient(90deg, #12a9c8, var(--hd-cyan) 55%, #b8f8ff);
    transition: width .7s var(--hd-ease);
}
.hd-seg--lime > i { background: linear-gradient(90deg, #7fcf1f, var(--hd-lime)); }

.hd-console__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}
.hd-mini {
    --c: 7px;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 13px;
    color: var(--hd-cyan-2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.hd-mini::before,
.hd-mini::after {
    content: "";
    position: absolute;
    z-index: -1;
    clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.hd-mini::before { inset: 0; background: var(--hd-line-3); }
.hd-mini::after { inset: 1px; background: #071022; }
.hd-mini--primary { color: var(--hd-cyan-ink); }
.hd-mini--primary::before { background: var(--hd-grad); }
.hd-mini--primary::after { display: none; }
.hd-mini .hd-ic { font-size: 13px; }

.hd-console__meters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--hd-line);
}
.hd-meter {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 12px 18px 14px;
}
.hd-meter + .hd-meter { border-left: 1px solid var(--hd-line); }
.hd-meter small {
    color: var(--hd-dim);
    font-family: var(--hd-mono);
    font-size: 10px;
    letter-spacing: .16em;
}
.hd-meter b {
    overflow: hidden;
    color: var(--hd-text);
    font-family: var(--hd-mono);
    font-size: 18px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hd-meter:first-child b { color: var(--hd-cyan); text-shadow: 0 0 12px rgba(34, 225, 255, .45); }

/* Thẻ readout nổi quanh trạm (màn rộng) */
.hd-float {
    position: absolute;
    z-index: 3;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--hd-line-2);
    background: rgba(5, 11, 24, .94);
    color: var(--hd-text-2);
    font-family: var(--hd-mono);
    font-size: 11px;
    letter-spacing: .12em;
    white-space: nowrap;
    box-shadow: 0 0 28px -8px rgba(34, 225, 255, .4), 0 18px 30px -16px rgba(0, 0, 0, .8);
    animation: hd-hover 7s ease-in-out infinite;
}
.hd-float .hd-ic { color: var(--hd-cyan); font-size: 15px; }
/* đường dẫn mảnh nối thẻ với khung trạm */
.hd-float::after {
    content: "";
    position: absolute;
    left: 22px;
    width: 1px;
    height: 16px;
}
.hd-float--a { top: -56px; right: 28px; }
.hd-float--a::after { top: 100%; background: linear-gradient(180deg, var(--hd-line-3), transparent); }
.hd-float--b { bottom: -46px; left: 28px; animation-delay: -3.5s; border-color: rgba(255, 43, 214, .4); }
.hd-float--b::after { bottom: 100%; background: linear-gradient(0deg, rgba(255, 43, 214, .6), transparent); }
.hd-float--b .hd-ic { color: var(--hd-magenta); }
@keyframes hd-hover { 50% { transform: translateY(-8px); } }
@media (min-width: 1200px) {
    .hd-float { display: inline-flex; }
}

.hd-note {
    margin-top: 12px !important;
    color: var(--hd-dim);
    font-family: var(--hd-mono);
    font-size: 11.5px;
    letter-spacing: .04em;
    text-align: right;
}

/* ---------- Bản đồ kênh ---------- */
.hd-channels { padding-top: 0; padding-bottom: clamp(16px, 2vw, 24px); }
.hd-chmap {
    --l: 16px;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid var(--hd-line);
    background: linear-gradient(180deg, rgba(12, 20, 40, .72), rgba(6, 11, 24, .66));
}
.hd-chmap__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    margin-bottom: 20px;
}
.hd-chmap__title {
    flex: 1;
    min-width: 240px;
    color: var(--hd-text);
    font-size: clamp(1rem, .92rem + .35vw, 1.18rem);
    font-weight: 600;
    line-height: 1.4;
}
.hd-chmap__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hd-ch {
    --c: 10px;
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    transition: transform .25s var(--hd-ease);
}
.hd-ch::before,
.hd-ch::after {
    content: "";
    position: absolute;
    z-index: -1;
    clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.hd-ch::before { inset: 0; background: rgba(34, 225, 255, .2); transition: background .25s; }
.hd-ch::after { inset: 1px; background: linear-gradient(180deg, #0a1428, #070e1e); }
.hd-ch:hover { transform: translateY(-2px); }
.hd-ch:hover::before { background: var(--brand); }
.hd-ch__ic {
    display: grid;
    place-items: center;
    color: #cdeefa;
    font-size: 22px;
    transition: color .25s, filter .25s;
}
.hd-ch:hover .hd-ch__ic { color: var(--brand); filter: drop-shadow(0 0 8px var(--brand)); }
.hd-ch__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}
.hd-ch__name {
    overflow: hidden;
    color: var(--hd-text);
    font-size: 15px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hd-ch__code {
    color: var(--hd-dim);
    font-family: var(--hd-mono);
    font-size: 10.5px;
    letter-spacing: .14em;
}
.hd-ch__sig {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    margin-left: auto;
    color: var(--hd-cyan);
    opacity: .7;
}
@media (max-width: 1099.98px) {
    .hd-ch__sig { display: none; }
}
@media (min-width: 768px) and (max-width: 1099.98px) {
    .hd-ch { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 767.98px) {
    .hd-chmap__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .hd-ch { padding: 12px; gap: 10px; }
    .hd-ch__sig { display: block; }
}

/* ---------- Tính năng (module) ---------- */
.hd-mods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
@media (max-width: 991.98px) {
    .hd-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639.98px) {
    .hd-mods { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
.hd-mod {
    --l: 16px;
    --hd-brk-c: rgba(34, 225, 255, .7);
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px 22px 20px;
    border: 1px solid var(--hd-line);
    background: linear-gradient(180deg, rgba(13, 22, 44, .8), rgba(6, 11, 24, .74));
    transition: border-color .3s, box-shadow .3s, transform .3s var(--hd-ease);
}
.hd-mod:hover,
.js .hd .hd-mod.is-in:hover {
    --hd-brk-c: var(--hd-cyan);
    border-color: var(--hd-line-2);
    box-shadow: 0 0 0 1px rgba(34, 225, 255, .06), 0 26px 50px -30px rgba(34, 225, 255, .5);
    transform: translateY(-3px);
}
.hd-mod__top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--hd-dim);
    font-family: var(--hd-mono);
    font-size: 10.5px;
    letter-spacing: .16em;
}
.hd-mod__on { display: inline-flex; align-items: center; gap: 6px; color: var(--hd-lime); }
.hd-mod__on i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hd-lime);
    box-shadow: 0 0 8px var(--hd-lime);
}

.hd-tile,
.hd-phase__ic {
    --c: 10px;
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    color: var(--hd-cyan);
    font-size: 22px;
}
.hd-tile::before,
.hd-tile::after,
.hd-phase__ic::before,
.hd-phase__ic::after {
    content: "";
    position: absolute;
    z-index: -1;
    clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.hd-tile::before,
.hd-phase__ic::before { inset: 0; background: linear-gradient(135deg, rgba(34, 225, 255, .7), rgba(255, 43, 214, .45)); }
.hd-tile::after,
.hd-phase__ic::after { inset: 1px; background: linear-gradient(160deg, #0e1c38, #081022); }
.hd-tile .hd-ic,
.hd-phase__ic .hd-ic { filter: drop-shadow(0 0 6px rgba(34, 225, 255, .65)); }

.hd-mod__title {
    margin: 18px 0 8px;
    color: var(--hd-text);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}
.hd-mod__text {
    margin-bottom: 20px !important;
    color: var(--hd-muted);
    font-size: 15px;
    line-height: 1.65;
}
.hd-mod__viz {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px dashed rgba(34, 225, 255, .18);
    color: var(--hd-muted);
    font-family: var(--hd-mono);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.hd-mod__viz em { font-style: normal; }

.hd-pipe > span {
    padding: 4px 9px;
    border: 1px solid var(--hd-line-2);
    color: var(--hd-muted);
    white-space: nowrap;
}
.hd-pipe > span.is-done { border-color: rgba(182, 255, 59, .45); color: var(--hd-lime); }
.hd-pipe > span.is-run {
    border-color: var(--hd-cyan);
    background: rgba(34, 225, 255, .1);
    color: var(--hd-cyan);
    box-shadow: 0 0 14px -4px rgba(34, 225, 255, .8);
}
.hd-pipe > i,
.hd-flowline > i {
    flex: 1;
    min-width: 12px;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--hd-cyan) 0 4px, transparent 4px 8px);
    opacity: .7;
    animation: hd-march 1.2s linear infinite;
}
@keyframes hd-march { to { background-position: 8px 0; } }

.hd-flowline > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px;
    border: 1px solid var(--hd-line-2);
    color: var(--hd-text-2);
    white-space: nowrap;
}
.hd-flowline > span .hd-ic { color: var(--hd-cyan); font-size: 14px; }
.hd-flowline > span.is-hot { border-color: rgba(182, 255, 59, .45); color: var(--hd-lime); }
.hd-flowline > span.is-hot .hd-ic { color: var(--hd-lime); }

.hd-levels { align-items: flex-end; gap: 6px; }
.hd-levels > span {
    width: 16px;
    height: calc(var(--h) * 1px);
    border-top: 2px solid var(--hd-cyan);
    background: linear-gradient(180deg, rgba(34, 225, 255, .35), rgba(34, 225, 255, .05));
}
.hd-levels > span.is-top {
    border-top-color: var(--hd-lime);
    background: linear-gradient(180deg, rgba(182, 255, 59, .45), rgba(182, 255, 59, .05));
    box-shadow: 0 -4px 14px -4px rgba(182, 255, 59, .7);
}
.hd-levels em { margin-left: auto; color: var(--hd-text-2); }

.hd-minis > span {
    --c: 6px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    background: rgba(34, 225, 255, .1);
    color: #cdeefa;
    font-size: 15px;
    clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.hd-minis em { margin-left: 2px; color: var(--hd-cyan); font-size: 12px; }

.hd-progress { flex-direction: column; align-items: stretch; gap: 9px; }
.hd-progress__row { display: flex; justify-content: space-between; }
.hd-progress__row b { color: var(--hd-cyan); font-weight: 600; }
.hd-seg--lg { --n: 24; height: 10px; filter: none; }

.hd-wave { justify-content: space-between; }
.hd-wave__bars { display: flex; align-items: center; gap: 3px; height: 30px; }
.hd-wave__bars i {
    width: 3px;
    height: 100%;
    background: var(--hd-cyan);
    opacity: .75;
    transform: scaleY(.3);
    animation: hd-eq 1.4s ease-in-out infinite;
}
.hd-wave__bars i:nth-child(3n) { animation-delay: -.3s; }
.hd-wave__bars i:nth-child(3n+1) { animation-delay: -.7s; }
.hd-wave__bars i:nth-child(4n) { animation-delay: -1.1s; background: var(--hd-magenta); }
@keyframes hd-eq {
    0%, 100% { transform: scaleY(.25); }
    50% { transform: scaleY(1); }
}
.hd-wave em { display: inline-flex; align-items: center; gap: 7px; color: var(--hd-lime); }

/* ---------- Số liệu ---------- */
.hd-stats { position: relative; z-index: 1; }
.hd-statbox {
    --l: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--hd-line-2);
    background:
        linear-gradient(90deg, rgba(34, 225, 255, .07), rgba(255, 43, 214, .045)),
        rgba(6, 11, 24, .82);
}
.hd-stat {
    position: relative;
    min-width: 0;
    padding: clamp(22px, 3vw, 34px) clamp(18px, 3vw, 36px);
}
.hd-stat + .hd-stat { border-left: 1px solid var(--hd-line); }
.hd-stat__key {
    color: var(--hd-dim);
    font-family: var(--hd-mono);
    font-size: 11px;
    letter-spacing: .16em;
}
.hd-stat__num {
    margin-top: 10px !important;
    color: var(--hd-text);
    font-family: var(--hd-mono);
    font-size: clamp(2.5rem, 1.8rem + 2.6vw, 3.8rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 26px rgba(34, 225, 255, .4);
}
.hd-stat__unit { margin-left: 2px; color: var(--hd-cyan); }
.hd-stat__label { margin-top: 4px !important; color: var(--hd-muted); font-size: 15.5px; }
.hd-seg--stat { --n: 24; height: 6px; margin-top: 18px; }
@media (max-width: 767.98px) {
    .hd-statbox { grid-template-columns: minmax(0, 1fr); }
    .hd-stat + .hd-stat { border-left: 0; border-top: 1px solid var(--hd-line); }
    .hd-stat { padding: 22px 20px; }
}

/* ---------- Quy trình: giai đoạn nhiệm vụ ---------- */
.hd-phases {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}
/* đường nối các mốc + xung năng lượng chạy dọc */
.hd-phases::before,
.hd-phases::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
}
.hd-phases::before {
    top: 11px;
    height: 1px;
    background: linear-gradient(90deg, var(--hd-line-3), rgba(255, 43, 214, .55) 50%, var(--hd-line-3));
    opacity: .75;
}
.hd-phases::after {
    top: 10px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(184, 248, 255, .95), transparent) no-repeat;
    background-size: 160px 100%;
    animation: hd-run-x 6s linear infinite;
}
@keyframes hd-run-x {
    from { background-position: -160px 0; }
    to { background-position: calc(100% + 160px) 0; }
}
.hd-phase {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-top: 40px;
}
.hd-phase__node {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
}
.hd-phase__node::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1.5px solid var(--hd-cyan);
    background: var(--hd-bg);
    transform: rotate(45deg);
    box-shadow: 0 0 12px rgba(34, 225, 255, .6);
}
.hd-phase__node i {
    position: relative;
    width: 5px;
    height: 5px;
    background: var(--hd-cyan);
    box-shadow: 0 0 8px var(--hd-cyan);
}
.hd-phase__no {
    display: block;
    margin-bottom: 12px;
    color: var(--hd-cyan);
    font-family: var(--hd-mono);
    font-size: 11.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.hd-phase__card {
    --l: 12px;
    --t: 1.5px;
    position: relative;
    flex: 1;
    padding: 20px;
    border: 1px solid var(--hd-line);
    background: rgba(9, 16, 34, .74);
    transition: border-color .3s, background-color .3s;
}
.hd-phase__card::before { opacity: .7; }
.hd-phase:hover .hd-phase__card { border-color: var(--hd-line-2); background: rgba(12, 22, 46, .82); }
.hd-phase:hover .hd-phase__card::before { opacity: 1; }
.hd-phase__ic { --c: 9px; width: 42px; height: 42px; font-size: 19px; }
.hd-phase__title {
    margin: 16px 0 6px;
    color: var(--hd-text);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}
.hd-phase__text { color: var(--hd-muted); font-size: 15px; line-height: 1.65; }
.hd-phase__st {
    display: inline-block;
    margin-top: 16px;
    padding: 3px 9px;
    border: 1px solid rgba(182, 255, 59, .35);
    background: rgba(182, 255, 59, .06);
    color: var(--hd-lime);
    font-family: var(--hd-mono);
    font-size: 11px;
    letter-spacing: .14em;
}
@media (max-width: 1023.98px) {
    .hd-phases { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .hd-phases::before,
    .hd-phases::after {
        top: 0;
        bottom: 0;
        left: 11px;
        right: auto;
    }
    .hd-phases::before {
        width: 1px;
        height: auto;
        background: linear-gradient(180deg, var(--hd-line-3), rgba(255, 43, 214, .55) 50%, var(--hd-line-3));
    }
    .hd-phases::after {
        left: 10px;
        width: 3px;
        height: auto;
        background: linear-gradient(180deg, transparent, rgba(184, 248, 255, .95), transparent) no-repeat;
        background-size: 100% 160px;
        animation-name: hd-run-y;
    }
    .hd-phase { padding: 0 0 0 46px; }
    .hd-phase__no { margin: 2px 0 10px; }
}
@keyframes hd-run-y {
    from { background-position: 0 -160px; }
    to { background-position: 0 calc(100% + 160px); }
}

/* ---------- Khu đăng nhập / đăng ký ---------- */
.hd-auth {
    display: grid;
    align-items: center;
    gap: clamp(36px, 5vw, 64px);
}
@media (min-width: 992px) {
    .hd-auth { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
}
.hd-checks {
    display: grid;
    gap: 14px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}
.hd-checks li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--hd-text-2);
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.5;
}
.hd-checks__box {
    --c: 5px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    background: var(--hd-grad);
    color: var(--hd-cyan-ink);
    font-size: 13px;
    clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.hd-secure {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 460px;
    margin-top: 30px;
    padding: 12px 14px;
    border: 1px solid var(--hd-line);
    background: rgba(34, 225, 255, .04);
    color: var(--hd-cyan);
    font-family: var(--hd-mono);
    font-size: 11px;
    letter-spacing: .14em;
}
.hd-secure .hd-ic { font-size: 16px; }
.hd-secure > span:not(.hd-seg) { white-space: nowrap; }
.hd-secure .hd-seg { --n: 14; flex: 1; min-width: 40px; height: 6px; }

/* login_box: bọc z-index riêng để icon (990) / popup (9999) không đè header cố định */
.hd-auth__form {
    position: relative;
    z-index: 1;
    min-width: 0;
}
.hd-auth__frame {
    --l: 20px;
    border: 1px solid var(--hd-line-2);
    background: linear-gradient(180deg, rgba(12, 21, 42, .95), rgba(6, 11, 24, .96));
    box-shadow: 0 0 80px -30px rgba(34, 225, 255, .4), 0 40px 80px -40px rgba(0, 0, 0, .9);
}
.hd-auth__bar,
.hd-pricebox__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 20px;
    border-bottom: 1px solid var(--hd-line);
    background: rgba(34, 225, 255, .035);
    color: var(--hd-text-2);
    font-family: var(--hd-mono);
    font-size: 11px;
    letter-spacing: .16em;
}

.hd-auth .box-cover {
    padding: 0;
    background: none;
    background-image: none;
}
.hd-auth .box-cover .container {
    width: 100%;
    max-width: none;
    padding: 0;
}
.hd-auth .box-cover .row { display: block; margin: 0; }
.hd-auth .box-cover .block-left { display: none; }
.hd-auth .box-cover .block-right {
    flex: none;
    width: 100%;
    max-width: 100%;
    padding: 0;
}
.hd-auth .box-cover .card,
.hd-auth .box-cover .card.shadow-lg {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
}
.hd-auth .box-cover .card-body {
    padding: clamp(20px, 3vw, 32px);
    color: var(--hd-text);
    font-family: var(--hd-font);
    color-scheme: dark;
}
.hd-auth .box-cover .m-b-30 {
    gap: 12px;
    margin-bottom: 24px !important;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--hd-line-2);
}
.hd-auth .box-cover .img-fluid {
    max-width: 150px;
    max-height: 44px !important;
    padding: 5px 9px;
    background: #e6f1ff;
    object-fit: contain;
    clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.hd-auth .box-cover .img-fluid[src=""] { display: none; }
.hd-auth .box-cover h2 {
    margin: 0;
    color: var(--hd-text);
    font-family: var(--hd-font);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.hd-auth .box-cover h2::before { content: "▸ "; color: var(--hd-cyan); }
.hd-auth .box-cover label,
.hd-auth .box-cover .font-weight-semibold {
    margin-bottom: 8px;
    color: var(--hd-text-2);
    font-family: var(--hd-font);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .04em;
}
.hd-auth .box-cover .form-group { margin-bottom: 18px !important; }
.hd-auth .box-cover .input-affix .prefix-icon {
    left: 15px;
    color: var(--hd-dim);
    font-size: 14px;
    transition: color .2s;
}
.hd-auth .box-cover .input-affix:focus-within .prefix-icon { color: var(--hd-cyan); }
.hd-auth .box-cover .input-affix .form-control:not(:first-child) {
    height: 48px;
    padding: 0 14px 0 42px;
    border: 1px solid rgba(34, 225, 255, .2);
    border-radius: 2px;
    outline: 0;
    background: rgba(3, 8, 18, .8);
    color: var(--hd-text);
    font-family: var(--hd-font);
    font-size: 15px;
    caret-color: var(--hd-cyan);
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.hd-auth .box-cover .input-affix .form-control:not(:first-child)::placeholder { color: #66739a; opacity: 1; }
.hd-auth .box-cover .input-affix .form-control:not(:first-child):hover { border-color: rgba(34, 225, 255, .38); }
.hd-auth .box-cover .input-affix .form-control:not(:first-child):focus {
    border-color: var(--hd-cyan);
    background: #040a17;
    box-shadow: 0 0 0 3px rgba(34, 225, 255, .14), 0 0 22px -6px rgba(34, 225, 255, .55);
}
.hd-auth .box-cover .input-affix .form-control:-webkit-autofill {
    -webkit-text-fill-color: var(--hd-text);
    -webkit-box-shadow: 0 0 0 60px #06101f inset;
    caret-color: var(--hd-text);
    transition: background-color 99999s;
}

.hd-auth .box-cover .btn.btn-primary {
    min-height: 46px;
    padding: 0 26px;
    border: 0;
    border-radius: 0;
    background: var(--hd-grad);
    color: var(--hd-cyan-ink);
    font-family: var(--hd-font);
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: filter .2s, background .2s;
}
.hd-auth .box-cover .btn.btn-primary:hover { background: linear-gradient(100deg, #5ae9ff, #c2f9ff); color: var(--hd-cyan-ink); }
.hd-auth .box-cover .btn.btn-primary:focus-visible { box-shadow: inset 0 0 0 2px #fff; outline: 0; }
.hd-auth .box-cover .btn.btn-primary:disabled { opacity: .6; }
/* nút phụ "Tôi chưa có email" */
.hd-auth .box-cover #generate_email.btn {
    min-height: 32px;
    margin-top: 8px !important;
    padding: 0 12px;
    border: 1px solid var(--hd-line-2);
    background: rgba(34, 225, 255, .08);
    color: var(--hd-cyan);
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: none;
    clip-path: none;
}
.hd-auth .box-cover #generate_email.btn:hover { background: rgba(34, 225, 255, .16); }

.hd-auth .box-cover a { color: var(--hd-cyan); font-weight: 600; text-decoration: none; }
.hd-auth .box-cover a:hover,
.hd-auth .box-cover a:focus { color: var(--hd-cyan-2); }
.hd-auth .box-cover .float-right { margin-top: 1px; font-size: 13.5px !important; }
.hd-auth .box-cover .font-size-14 { color: var(--hd-muted); font-size: 14px !important; }
.hd-auth .box-cover .term-agree label { color: var(--hd-muted); }
.hd-auth .box-cover input[type="checkbox"] { accent-color: var(--hd-cyan); }

.hd-auth .box-cover .form-group.check-password {
    padding: 12px 14px 10px;
    border: 1px solid var(--hd-line-2);
    border-radius: 2px;
    background: #0a1428;
    color: var(--hd-text);
    font-size: 13.5px;
    box-shadow: 0 0 30px -10px rgba(34, 225, 255, .35), 0 18px 40px -14px rgba(0, 0, 0, .9);
}
.hd-auth .box-cover .check-password > div:first-child { margin-bottom: 4px; color: var(--hd-text); font-weight: 700; }
.hd-auth .box-cover .check-password .check-password-item { padding: 3px 0; color: var(--hd-muted); }
.hd-auth .box-cover .check-password .invalid::before { color: var(--hd-dim); }
.hd-auth .box-cover .check-password .valid,
.hd-auth .box-cover .check-password .valid::before { color: var(--hd-lime); }
.hd-auth .box-cover .form-group.re-check-password { color: #ff6b9a; font-size: 14px; }
.hd-auth .box-cover .area-captcha { max-width: 100%; overflow: hidden; }
.hd-auth .box-cover .lang-picker-row {
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px dashed var(--hd-line-2);
}

/* chọn ngôn ngữ — menu bị JS đưa ra body nên scope theo body.hd, menu cần nền đặc */
.hd .lang-picker,
.hd .lp-menu {
    --lp-bg: #0a1428;
    --lp-border: rgba(34, 225, 255, .24);
    --lp-ink: #e6f1ff;
    --lp-ink-2: #c9d5ee;
    --lp-muted: #8a97bd;
    --lp-hover: #102040;
    --lp-primary: #22e1ff;
    --lp-primary-soft: rgba(34, 225, 255, .12);
    font-family: var(--hd-font);
}
.hd .lp-menu { box-shadow: 0 0 30px -10px rgba(34, 225, 255, .35), 0 24px 50px -12px rgba(0, 0, 0, .9); }

/* ---------- Bảng giá ---------- */
.hd-pricebox {
    --l: 18px;
    border: 1px solid var(--hd-line-2);
    background: rgba(6, 11, 24, .86);
}
.hd-pricebox__scroll {
    padding: clamp(14px, 3vw, 28px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    color: var(--hd-text);
    color-scheme: dark;
}
.hd-prices #label_table_prices {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 0 !important;
}
.hd-prices #label_table_prices > span {
    margin-right: 0 !important;
    color: var(--hd-cyan);
    font-family: var(--hd-mono);
    font-size: 12px !important;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.hd-prices #service-category-select,
.hd-prices .dataTables_wrapper .dataTables_length select,
.hd-prices .dataTables_wrapper .dataTables_filter input {
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--hd-line-2);
    border-radius: 2px;
    outline: 0;
    background-color: rgba(3, 8, 18, .8);
    color: var(--hd-text);
    font-family: var(--hd-font);
    font-size: 14.5px;
    transition: border-color .2s, box-shadow .2s;
}
.hd-prices #service-category-select {
    min-width: 190px;
    padding-right: 38px;
    background: rgba(3, 8, 18, .8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2322e1ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.hd-prices .dataTables_wrapper .dataTables_length select { margin: 0 6px; padding-right: 6px; }
.hd-prices #service-category-select:focus,
.hd-prices .dataTables_wrapper .dataTables_length select:focus,
.hd-prices .dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--hd-cyan);
    box-shadow: 0 0 0 3px rgba(34, 225, 255, .14);
}
.hd-prices select option { background: #0a1428; color: var(--hd-text); }

.hd-prices .dataTables_wrapper { color: var(--hd-muted); font-size: 14px; }
.hd-prices .dataTables_wrapper label { margin-bottom: 0; color: var(--hd-muted); font-weight: 500; }
.hd-prices .dataTables_wrapper .dataTables_length,
.hd-prices .dataTables_wrapper .dataTables_filter { margin-bottom: 14px; }
.hd-prices .dataTables_wrapper .dataTables_filter input { min-width: 0; max-width: 200px; margin-left: 8px; }

.hd-prices table.dataTable {
    width: 100% !important;
    margin: 0 !important;
    border: 1px solid var(--hd-line);
    border-collapse: separate;
    border-spacing: 0;
}
.hd-prices table.dataTable.no-footer { border-bottom: 1px solid var(--hd-line); }
.hd-prices #table_prices thead th {
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid var(--hd-line-2);
    background: rgba(34, 225, 255, .07);
    color: var(--hd-cyan);
    font-family: var(--hd-mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.hd-prices #table_prices thead th + th { border-left: 1px solid var(--hd-line); }
.hd-prices #table_prices tbody td {
    padding: 12px 16px;
    border: 0;
    border-top: 1px solid rgba(34, 225, 255, .08);
    background: transparent;
    color: var(--hd-text);
    font-size: 14.5px;
    transition: background-color .2s;
}
.hd-prices #table_prices tbody tr:first-child td { border-top: 0; }
.hd-prices #table_prices tbody td + td { border-left: 1px solid rgba(34, 225, 255, .08); }
.hd-prices #table_prices tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .015); }
.hd-prices #table_prices tbody tr:hover td { background: rgba(34, 225, 255, .06); }
.hd-prices #table_prices tbody td:last-child {
    color: var(--hd-cyan-2) !important;
    font-family: var(--hd-mono);
    font-weight: 600 !important;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.hd-prices #table_prices td.dataTables_empty { color: var(--hd-muted); text-align: center; }

.hd-prices .dataTables_wrapper .dataTables_info { padding-top: 16px; color: var(--hd-dim); font-size: 13px; }
.hd-prices .dataTables_wrapper .dataTables_paginate { padding-top: 12px; }
.hd-prices .dataTables_wrapper .dataTables_paginate .paginate_button {
    min-width: 34px;
    margin-left: 4px;
    padding: 6px 10px;
    border: 1px solid var(--hd-line-2);
    border-radius: 0;
    background: transparent;
    color: var(--hd-text-2) !important;
    font-family: var(--hd-mono);
    font-size: 12.5px;
}
.hd-prices .dataTables_wrapper .dataTables_paginate .paginate_button:not(.disabled):not(.current):hover {
    border-color: var(--hd-cyan);
    background: rgba(34, 225, 255, .1);
    color: var(--hd-cyan) !important;
}
.hd-prices .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.hd-prices .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    border-color: var(--hd-cyan);
    background: var(--hd-cyan);
    color: var(--hd-cyan-ink) !important;
    font-weight: 700;
    box-shadow: 0 0 14px -2px rgba(34, 225, 255, .6);
}
.hd-prices .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.hd-prices .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    border-color: var(--hd-line);
    background: transparent;
    color: #4f5b7d !important;
}
.hd-prices .dataTables_wrapper .dataTables_paginate .ellipsis { color: var(--hd-dim); }
/* ghi chú cấp bậc ngay dưới bảng (inline cam đậm → làm sáng cho nền tối) */
.hd-prices #table_prices_wrapper + div {
    margin-top: 14px !important;
    color: #ffc27a !important;
    font-size: 13.5px;
}
@media (max-width: 575.98px) {
    .hd-prices .dataTables_wrapper .dataTables_paginate .paginate_button {
        min-width: 30px;
        margin-left: 2px;
        padding: 5px 8px;
    }
    .hd-prices #table_prices thead th,
    .hd-prices #table_prices tbody td { padding: 11px 10px; }
}

/* ---------- FAQ ---------- */
.hd-faq__wrap { max-width: calc(940px + 2 * var(--hd-gutter)); }
.hd-faq .hd-head { margin-inline: auto; text-align: center; }
.hd-faq__list { display: grid; gap: 10px; }
.hd-faq__item {
    --l: 10px;
    --t: 1.5px;
    position: relative;
    border: 1px solid var(--hd-line);
    background: rgba(9, 16, 34, .74);
    transition: border-color .3s, background-color .3s;
}
.hd-faq__item::before { opacity: 0; }
.hd-faq__item[open] { border-color: var(--hd-line-2); background: rgba(12, 22, 46, .86); }
.hd-faq__item[open]::before { opacity: 1; }
.hd-faq__item summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    color: var(--hd-text);
    font-size: 1.06rem;
    font-weight: 600;
    line-height: 1.45;
    list-style: none;
    cursor: pointer;
}
.hd-faq__item summary::-webkit-details-marker { display: none; }
.hd-faq__item summary:focus-visible { outline: 2px solid var(--hd-cyan); outline-offset: 2px; }
.hd-faq__item summary:hover .hd-faq__text { color: #fff; }
.hd-faq__q {
    flex-shrink: 0;
    padding: 3px 8px;
    border: 1px solid var(--hd-line-2);
    color: var(--hd-cyan);
    font-family: var(--hd-mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .1em;
}
.hd-faq__text { flex: 1; min-width: 0; transition: color .2s; }
.hd-faq__ic {
    position: relative;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 1px solid var(--hd-line-2);
}
.hd-faq__ic::before,
.hd-faq__ic::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 11px;
    height: 1.5px;
    margin: -.75px 0 0 -5.5px;
    background: var(--hd-cyan);
    transition: transform .3s var(--hd-ease);
}
.hd-faq__ic::after { transform: rotate(90deg); }
.hd-faq__item[open] .hd-faq__ic { border-color: var(--hd-cyan); box-shadow: 0 0 12px -2px rgba(34, 225, 255, .6); }
.hd-faq__item[open] .hd-faq__ic::after { transform: rotate(0deg); }
.hd-faq__item p {
    padding: 0 20px 20px 86px;
    color: var(--hd-muted);
    font-size: 15px;
    line-height: 1.7;
    animation: hd-fade-down .35s var(--hd-ease);
}
@keyframes hd-fade-down {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}
.hd-faq__more { margin-top: 28px; text-align: center; }
@media (max-width: 575.98px) {
    .hd-faq__item summary { gap: 12px; padding: 16px; font-size: 1rem; }
    .hd-faq__q { display: none; }
    .hd-faq__item p { padding: 0 16px 18px; }
}

/* ---------- Kêu gọi cuối trang ---------- */
.hd-final { padding-top: clamp(24px, 4vw, 48px); padding-bottom: 0; }
.hd-cta {
    --l: 24px;
    padding: clamp(52px, 7vw, 96px) clamp(20px, 5vw, 64px);
    border: 1px solid var(--hd-line-2);
    background:
        radial-gradient(620px 300px at 50% 0%, rgba(34, 225, 255, .16), transparent 70%),
        radial-gradient(520px 300px at 50% 100%, rgba(255, 43, 214, .1), transparent 70%),
        rgba(5, 10, 22, .92);
    text-align: center;
}
.hd-cta__rings {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.hd-cta__rings i {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px solid rgba(34, 225, 255, .12);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.hd-cta__rings i:nth-child(1) { width: 340px; height: 340px; }
.hd-cta__rings i:nth-child(2) {
    width: 600px;
    height: 600px;
    border: 1px dashed rgba(34, 225, 255, .16);
    animation: hd-spin-c 80s linear infinite;
}
.hd-cta__rings i:nth-child(3) { width: 880px; height: 880px; border-color: rgba(255, 43, 214, .1); }
@keyframes hd-spin-c { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hd-cta__rings span {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent, rgba(34, 225, 255, .12), transparent) center / 100% 1px no-repeat,
        linear-gradient(180deg, transparent, rgba(34, 225, 255, .12), transparent) center / 1px 100% no-repeat;
}
.hd-cta__inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin-inline: auto;
}
.hd-cta__ready {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border: 1px solid rgba(182, 255, 59, .3);
    background: rgba(182, 255, 59, .05);
    color: var(--hd-lime);
    font-family: var(--hd-mono);
    font-size: 11.5px;
    letter-spacing: .14em;
}
.hd-cta__caret {
    width: 7px;
    height: 13px;
    background: var(--hd-lime);
    animation: hd-blink 1.1s steps(1) infinite;
}
.hd-cta .hd-h2 {
    margin-top: 22px;
    font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
}
.hd-cta .hd-sub { max-width: 520px; margin-inline: auto; text-wrap: balance; }
.hd-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 34px;
}

/* ---------- Footer ---------- */
.hd-footer {
    margin-top: clamp(64px, 8vw, 104px);
    padding: clamp(44px, 5vw, 64px) 0 28px;
    border-top: 1px solid var(--hd-line);
    background: linear-gradient(180deg, rgba(5, 8, 16, .2), rgba(3, 5, 10, .88));
}
.hd-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent 10%, var(--hd-cyan) 50%, transparent 90%);
    opacity: .5;
}
.hd-footer__grid { display: grid; gap: 36px; }
@media (min-width: 768px) {
    .hd-footer__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; }
}
.hd-footer__about p {
    max-width: 440px;
    margin-top: 16px !important;
    color: var(--hd-muted);
    font-size: 14.5px;
    line-height: 1.7;
}
.hd-footer__title {
    margin-bottom: 14px !important;
    color: var(--hd-cyan);
    font-family: var(--hd-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.hd-footer__list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--hd-muted);
    font-size: 14.5px;
}
.hd-footer__list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.hd-footer__list a {
    color: var(--hd-muted);
    text-decoration: none;
    transition: color .2s;
}
.hd-footer__list a:hover { color: var(--hd-cyan); text-decoration: none; }
.hd-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid var(--hd-line);
    color: var(--hd-dim);
    font-size: 13.5px;
}
.hd-footer__sys {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--hd-lime);
    font-family: var(--hd-mono);
    font-size: 11px;
    letter-spacing: .16em;
}
@media (max-width: 767.98px) {
    /* chừa chỗ cho nút liên hệ nổi góc phải */
    .hd-footer__bottom { padding-right: 76px; }
}

/* ---------- Nút lên đầu trang (góc trái, tránh widget liên hệ bên phải) ---------- */
.hd-top {
    --c: 9px;
    position: fixed;
    left: 16px;
    bottom: 20px;
    z-index: 55;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: var(--hd-cyan);
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s, transform .3s var(--hd-ease), visibility 0s linear .3s;
}
.hd-top::before,
.hd-top::after {
    content: "";
    position: absolute;
    z-index: -1;
    clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.hd-top::before { inset: 0; background: var(--hd-line-3); }
.hd-top::after { inset: 1px; background: rgba(6, 12, 26, .94); }
.hd-top.is-show {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}
.hd-top:hover { color: #fff; }
.hd-top:hover::before { background: var(--hd-cyan); }

/* ---------- Hiện dần khi cuộn ---------- */
.js .hd [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition: opacity .75s var(--hd-ease), transform .75s var(--hd-ease);
}
.js .hd [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* ---------- Mobile ---------- */
@media (max-width: 767.98px) {
    .hd-hero { padding-top: calc(var(--hd-header-h) + 32px); }
    .hd-hero__ctas { display: grid; grid-template-columns: minmax(0, 1fr); }
    .hd-hero__ctas .hd-btn { width: 100%; }
    .hd-signal { margin-top: 30px; }
    .hd-cta__actions { flex-direction: column; align-items: center; }
    .hd-cta__actions .hd-btn { width: 100%; max-width: 320px; }
    .hd-head--split .hd-btn { width: 100%; }
}
@media (max-width: 559.98px) {
    .hd-console__bar { gap: 10px; padding: 10px 14px; font-size: 10px; }
    .hd-console__clock { display: none; }
    .hd-console__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 26px 14px 16px; }
    .hd-radar { max-width: 220px; }
    .hd-meter { padding: 10px 12px 12px; }
    .hd-meter small { font-size: 9px; letter-spacing: .12em; }
    .hd-meter b { font-size: 15px; }
    .hd-auth .box-cover .card-body { padding: 20px 16px; }
    .hd-auth .box-cover .img-fluid { max-width: 120px; }
    .hd-auth .box-cover h2 { font-size: 1.25rem; }
    .hd-auth .box-cover .g-recaptcha { transform: scale(.86); transform-origin: 0 0; }
    .hd-auth .box-cover .area-captcha { height: 76px; }
    .hd-auth__bar,
    .hd-pricebox__bar { padding: 10px 16px; font-size: 10px; }
    .hd-secure { font-size: 10px; letter-spacing: .1em; }
}

/* ---------- Tạm dừng chuyển động: tab ẩn hoặc trạm khuất màn hình ---------- */
body.hd-paused *,
.hd-deck.is-idle,
.hd-deck.is-idle * {
    animation-play-state: paused !important;
}

/* ---------- Giảm chuyển động ---------- */
@media (prefers-reduced-motion: reduce) {
    .hd *,
    .hd *::before,
    .hd *::after {
        animation: none !important;
    }
    .hd-radar__sweep { transform: rotate(48deg); }
    .hd-console__beam { display: none; }
    .hd-wave__bars i { transform: scaleY(.6); }
    .js .hd [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hd-btn,
    .hd-mod,
    .hd-ch,
    .hd-signal__item,
    .hd-nav,
    .hd-top,
    .hd-seg > i {
        transition: none !important;
    }
    .hd-mod:hover,
    .js .hd .hd-mod.is-in:hover,
    .hd-ch:hover,
    .hd-signal__item:hover { transform: none; }
}
