/*!
 * GZONE — UI v2
 * Design system: tokens, layout, components, pages, motion.
 * Không phụ thuộc Bootstrap / Slick / Animate.css.
 */

/* =========================================================
   1. TOKENS
   ========================================================= */
:root {
    /* Brand — giữ nguyên bảng màu cũ */
    --red: #dc2023;
    --red-600: #c71c1f;
    --red-700: #b90000;
    --red-50: #fdecec;
    --navy: #010b26;
    --navy-2: #1c1e2b;
    --navy-3: #262a3b;
    --ink: #242424;
    --text: #3a3a3a;
    --muted: #6b6f7b;
    --line: #e7e8ec;
    --surface: #ffffff;
    --surface-2: #f5f5f7;
    --surface-3: #eef0f3;

    --grad-red: linear-gradient(135deg, #e51d26 0%, #b90000 100%);
    --grad-navy: linear-gradient(160deg, #010b26 0%, #1c1e2b 60%, #2a0d16 100%);

    /* Type */
    --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --fs-xs: .8125rem;
    --fs-sm: .9375rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
    --fs-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
    --fs-3xl: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
    --fs-4xl: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);

    /* Space & shape */
    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --section: clamp(56px, 8vw, 112px);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(1, 11, 38, .06), 0 1px 3px rgba(1, 11, 38, .08);
    --shadow: 0 6px 24px -6px rgba(1, 11, 38, .14);
    --shadow-lg: 0 24px 48px -12px rgba(1, 11, 38, .22);
    --shadow-red: 0 10px 30px -8px rgba(220, 32, 35, .55);

    --ease: cubic-bezier(.22, 1, .36, 1);
    --header-h: 76px;
}

/* =========================================================
   2. RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
/* clip (không tạo scroll container → không phá position: sticky) */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
main { overflow-x: clip; }
body.is-locked { overflow: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--ink); line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid rgba(220, 32, 35, .45); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; background: var(--red); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); transition: top .2s; }
.skip-link:focus { top: 16px; }

/* =========================================================
   3. LAYOUT
   ========================================================= */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(860px + var(--gutter) * 2); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--muted { background: var(--surface-2); }
.section--dark { background: var(--grad-navy); color: rgba(255, 255, 255, .78); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.layout-aside > aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (max-width: 1023px) {
    .layout-aside { grid-template-columns: minmax(0, 1fr); }
    .layout-aside > aside { position: static; }
}

/* Grid children không bị nội dung dài đẩy tràn */
.grid > *, .intro-grid > *, .careers-grid > *, .layout-aside > *, .stack > * { min-width: 0; }

/* =========================================================
   4. TYPOGRAPHY HELPERS
   ========================================================= */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--red);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-title { font-size: var(--fs-3xl); font-weight: 800; margin-top: 12px; }
.section-title .hl { color: var(--red); }
.section-sub { margin-top: 14px; font-size: var(--fs-lg); color: var(--muted); }
.section--dark .section-sub { color: rgba(255, 255, 255, .7); }
.text-grad { background: var(--grad-red); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* =========================================================
   5. BUTTONS
   ========================================================= */
.btn {
    --bg: var(--red); --fg: #fff;
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 12px 26px;
    font-size: var(--fs-sm); font-weight: 600; line-height: 1.2; white-space: nowrap;
    color: var(--fg); background: var(--bg);
    border: 1.5px solid transparent; border-radius: 999px;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg.i-arrow { transform: translateX(4px); }
.btn::after { /* shine */
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn--primary { background: var(--grad-red); box-shadow: var(--shadow-red); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(220, 32, 35, .65); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.btn--light { --bg: #fff; --fg: var(--red-600); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--outline-light { --bg: transparent; --fg: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--outline-light:hover { background: #fff; color: var(--red-600); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: var(--fs-xs); }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .7; pointer-events: none; }
.btn.is-loading::before {
    content: ""; width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--red); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* =========================================================
   6. HEADER
   ========================================================= */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 100;
    height: var(--header-h);
    transition: background-color .35s, box-shadow .35s, height .35s var(--ease), transform .4s var(--ease);
}
.site-header::before { /* gradient giúp chữ trắng dễ đọc trên banner */
    content: ""; position: absolute; inset: 0 0 -40px; pointer-events: none;
    background: linear-gradient(180deg, rgba(1, 11, 38, .55), transparent);
    transition: opacity .35s;
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.site-header.is-scrolled {
    --header-h: 64px;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 1px 0 rgba(1, 11, 38, .06), 0 8px 24px -12px rgba(1, 11, 38, .18);
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }

.brand { position: relative; display: block; width: 148px; height: 40px; flex: none; }
.brand img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .35s; }
.brand .brand-dark { opacity: 0; }
.site-header.is-scrolled .brand-light { opacity: 0; }
.site-header.is-scrolled .brand-dark { opacity: 1; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
    position: relative; padding: 10px 14px;
    font-size: var(--fs-sm); font-weight: 600; color: rgba(255, 255, 255, .92);
    transition: color .25s;
}
.nav-link::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
    background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-link:hover, .nav-link.is-active { color: #fff; }
.site-header.is-scrolled .nav-link { color: var(--ink); }
.site-header.is-scrolled .nav-link:hover, .site-header.is-scrolled .nav-link.is-active { color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 8px; }

/* Language switcher */
.lang { position: relative; }
.lang-toggle {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
    border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); color: #fff;
    font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase;
    transition: border-color .25s, background-color .25s, color .25s;
}
.lang-toggle:hover { background: rgba(255, 255, 255, .12); }
.site-header.is-scrolled .lang-toggle { color: var(--ink); border-color: var(--line); }
.site-header.is-scrolled .lang-toggle:hover { background: var(--surface-2); }
.lang-toggle img, .lang-menu img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.lang-toggle .chev { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.lang.is-open .chev { transform: rotate(180deg); }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px; padding: 8px;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
    transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: var(--fs-sm); color: var(--ink); font-weight: 500; }
.lang-menu a:hover { background: var(--surface-2); }
.lang-menu a.is-active { color: var(--red); font-weight: 700; }

/* Burger */
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; position: relative; color: #fff; }
.site-header.is-scrolled .burger { color: var(--ink); }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease), opacity .2s, top .4s var(--ease); }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.nav-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 99; pointer-events: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(1, 11, 38, .55); opacity: 0; transition: opacity .35s; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.drawer-panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 380px);
    background: var(--grad-navy); color: #fff; padding: calc(var(--header-h) + 16px) 28px 28px;
    display: flex; flex-direction: column; gap: 8px;
    transform: translateX(100%); transition: transform .5s var(--ease);
    overflow-y: auto;
}
.drawer-panel a.drawer-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 4px; font-size: 1.125rem; font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    opacity: 0; transform: translateX(24px); transition: opacity .4s, transform .5s var(--ease), color .2s;
}
.drawer-panel a.drawer-link svg { width: 18px; height: 18px; opacity: .5; }
.drawer-panel a.drawer-link.is-active, .drawer-panel a.drawer-link:hover { color: #ff6a6c; }
.drawer-foot { margin-top: auto; padding-top: 24px; font-size: var(--fs-sm); color: rgba(255, 255, 255, .6); display: grid; gap: 6px; }
.drawer-foot a { color: #fff; }
.nav-open .drawer { pointer-events: auto; }
.nav-open .drawer-backdrop { opacity: 1; }
.nav-open .drawer-panel { transform: none; }
.nav-open .drawer-panel a.drawer-link { opacity: 1; transform: none; }
.nav-open .drawer-panel a.drawer-link:nth-child(2) { transition-delay: .05s; }
.nav-open .drawer-panel a.drawer-link:nth-child(3) { transition-delay: .1s; }
.nav-open .drawer-panel a.drawer-link:nth-child(4) { transition-delay: .15s; }
.nav-open .drawer-panel a.drawer-link:nth-child(5) { transition-delay: .2s; }
.nav-open .drawer-panel a.drawer-link:nth-child(6) { transition-delay: .25s; }
.nav-open .drawer-panel a.drawer-link:nth-child(7) { transition-delay: .3s; }
.nav-open .site-header { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav-open .site-header .brand-light { opacity: 1; }
.nav-open .site-header .brand-dark { opacity: 0; }
.nav-open .site-header .burger, .nav-open .site-header .lang-toggle { color: #fff; }

@media (max-width: 1023px) {
    .nav { display: none; }
    .burger { display: block; }
    .brand { width: 120px; height: 34px; }
}

/* =========================================================
   7. HERO SLIDER (trang chủ)
   ========================================================= */
.hero { position: relative; background: var(--navy); overflow: hidden; }
.hero-track { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-slide {
    grid-area: 1 / 1; opacity: 0; visibility: hidden;
    transition: opacity 1s var(--ease), visibility 1s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide img {
    width: 100%; height: auto; max-height: 100vh; min-height: 56vw; object-fit: cover;
    transform: scale(1.06); transition: transform 7s linear;
}
.hero-slide.is-active img { transform: scale(1); }
.hero-slide picture { display: block; }
/* Mobile: banner nằm dưới thanh menu, hiển thị TRỌN ảnh (không cắt), nền mờ từ chính ảnh lấp khoảng trống */
@media (max-width: 767px) {
    .hero { padding-top: var(--header-h); background: var(--navy); }
    .hero-slide { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 72vw; padding: 14px 0 34px; }
    .hero-slide::before { /* nền mờ */
        content: ""; position: absolute; inset: -24px; z-index: 0;
        background: var(--hero-bg) center / cover no-repeat; filter: blur(22px) saturate(1.2) brightness(.7);
        transform: scale(1.1);
    }
    .hero-slide picture { position: relative; z-index: 1; width: 100%; }
    .hero-slide img {
        width: 100%; height: auto; min-height: 0; max-height: calc(100svh - var(--header-h) - 48px);
        object-fit: contain; transform: none; transition: none;
        filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .35));
    }
    /* Có ảnh riêng cho mobile → ảnh to hết khung, vẫn không bị cắt */
    .hero-slide.has-mobile { min-height: 0; padding: 0; }
    .hero-slide.has-mobile::before { display: none; }
    .hero-slide.has-mobile img { max-height: calc(100svh - var(--header-h)); filter: none; }
    .hero::after { height: 22%; }
    .hero-ui { bottom: 12px; }
    .hero-dot { width: 26px; }
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(0deg, rgba(1, 11, 38, .5), transparent); pointer-events: none; z-index: 2; }
.hero-ui {
    position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(16px, 3vw, 36px);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.hero-dots { display: flex; gap: 8px; }
.hero-dot { position: relative; width: 36px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.hero-dot::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-dot.is-active::after { animation: heroProgress var(--hero-delay, 6s) linear forwards; }
.hero.is-paused .hero-dot.is-active::after { animation-play-state: paused; }
@keyframes heroProgress { to { transform: scaleX(1); } }
.hero-arrows { display: flex; gap: 10px; }
.icon-btn {
    display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .35); color: #fff;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); background: rgba(255, 255, 255, .06);
    transition: background-color .25s, border-color .25s, transform .3s var(--ease);
}
.icon-btn:hover { background: var(--red); border-color: var(--red); transform: scale(1.06); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn--dark { color: var(--ink); border-color: var(--line); background: #fff; }
.icon-btn--dark:hover { color: #fff; }
@media (max-width: 639px) { .hero-arrows { display: none; } .hero-ui { justify-content: center; } }
.hero-scroll {
    position: absolute; z-index: 3; left: 50%; bottom: 28px; transform: translateX(-50%);
    width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 20px;
}
.hero-scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: scrollHint 1.8s var(--ease) infinite; }
@keyframes scrollHint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 1023px) { .hero-scroll { display: none; } }

/* =========================================================
   8. PAGE HERO (trang con)
   ========================================================= */
.page-hero {
    position: relative; overflow: hidden; isolation: isolate;
    padding: calc(var(--header-h) + clamp(40px, 7vw, 88px)) 0 clamp(44px, 6vw, 80px);
    background: var(--grad-navy); color: #fff;
}
.page-hero::before { /* lưới hex nhẹ gợi lại banner cũ */
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
    background-image:
        radial-gradient(600px 300px at 90% 10%, rgba(220, 32, 35, .45), transparent 60%),
        radial-gradient(500px 260px at 0% 100%, rgba(120, 60, 200, .25), transparent 60%);
}
.page-hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .08;
    background-image: linear-gradient(rgba(255, 255, 255, .6) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .6) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.page-hero-title { color: #fff; font-size: var(--fs-4xl); font-weight: 800; letter-spacing: -.02em; }
.page-hero p.lead { margin-top: 14px; max-width: 640px; font-size: var(--fs-lg); color: rgba(255, 255, 255, .72); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-xs); color: rgba(255, 255, 255, .65); margin-bottom: 18px; }
.breadcrumb a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { width: 14px; height: 14px; }
.breadcrumb .sep { opacity: .45; }
.breadcrumb [aria-current] { color: #fff; font-weight: 600; }
.page-hero .orb {
    position: absolute; right: -80px; top: 50%; width: 360px; height: 360px; border-radius: 50%; z-index: -1;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: inset 0 0 0 60px rgba(255, 255, 255, .015), 0 0 0 60px rgba(255, 255, 255, .02);
    transform: translateY(-50%); animation: float 9s ease-in-out infinite;
}
@media (max-width: 767px) { .page-hero .orb { display: none; } }

/* =========================================================
   9. CARDS
   ========================================================= */
.card {
    position: relative; display: flex; flex-direction: column;
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--line);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card-media img { transform: scale(1.07); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(1, 11, 38, .35)); opacity: 0; transition: opacity .5s; }
.card:hover .card-media::after { opacity: 1; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
.card-meta svg { width: 15px; height: 15px; color: var(--red); }
.card-title { font-size: var(--fs-lg); font-weight: 700; line-height: 1.4; color: var(--ink); transition: color .25s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card-title { color: var(--red); }
.card-text { font-size: var(--fs-sm); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: 8px; }
.card-link::before { content: ""; position: absolute; inset: 0; z-index: 1; } /* toàn bộ card click được */

.badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    background: var(--red-50); color: var(--red-600);
}
.badge svg { width: 14px; height: 14px; }
.badge--hot { background: var(--grad-red); color: #fff; box-shadow: var(--shadow-red); animation: pulse 2.4s ease-in-out infinite; }
.card-media .badge { position: absolute; left: 14px; top: 14px; z-index: 2; }

/* Job card */
.job-card { position: relative; display: flex; gap: 18px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.job-card::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad-red); transform: scaleY(0); transition: transform .45s var(--ease); }
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.job-card:hover::before { transform: scaleY(1); }
.job-icon { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--red-50); color: var(--red); transition: background-color .3s, color .3s, transform .45s var(--ease); }
.job-card:hover .job-icon { background: var(--red); color: #fff; transform: rotate(-6deg); }
.job-icon svg { width: 26px; height: 26px; }
.job-body { min-width: 0; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: center; }
.job-title { font-size: var(--fs-lg); font-weight: 700; color: var(--ink); line-height: 1.4; transition: color .25s; }
.job-card:hover .job-title { color: var(--red); }
.job-title-row { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: var(--fs-xs); color: var(--text); font-weight: 500; max-width: 100%; }
.chip svg { width: 14px; height: 14px; color: var(--red); flex: none; }
.chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-go { flex: none; align-self: center; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); transition: all .35s var(--ease); }
.job-go svg { width: 18px; height: 18px; }
.job-card:hover .job-go { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(-45deg); }
@media (max-width: 639px) { .job-go { display: none; } .job-card { padding: 18px; gap: 14px; } .job-icon { width: 46px; height: 46px; } }

/* =========================================================
   10. HOME SECTIONS
   ========================================================= */
/* Intro + gallery */
.intro { padding-bottom: calc(var(--section) * 1.25); background: var(--navy-2); color: rgba(255, 255, 255, .75); overflow: hidden; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.intro-copy p { font-size: var(--fs-lg); margin-top: 18px; }
.intro-copy .btn { margin-top: 28px; }
@media (max-width: 1023px) { .intro-grid { grid-template-columns: minmax(0, 1fr); } }

.carousel { position: relative; }
.carousel-track {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 4px;
    overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; flex: none; }
.carousel-nav { display: flex; gap: 10px; margin-top: 20px; align-items: center; }
.carousel-progress { flex: 1; height: 3px; background: rgba(255, 255, 255, .15); border-radius: 3px; overflow: hidden; }
.carousel-progress span { display: block; height: 100%; width: 0; background: var(--red); border-radius: 3px; transition: width .3s var(--ease); }
.section:not(.intro):not(.section--dark) .carousel-progress { background: var(--line); }

.gallery-item {
    width: clamp(240px, 38vw, 440px); aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; position: relative;
    background: var(--navy-3);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
    content: ""; position: absolute; inset: 0; display: grid; place-items: center;
    background: rgba(1, 11, 38, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center no-repeat;
    opacity: 0; transition: opacity .4s;
}
.gallery-item:hover::after { opacity: 1; }

/* Stats */
.stats { position: relative; margin-top: calc(var(--section) * -.5); z-index: 5; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.stat { position: relative; padding: clamp(24px, 3vw, 40px) clamp(18px, 2.4vw, 32px); display: grid; gap: 10px; align-content: start; transition: background-color .4s; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat:hover { background: var(--surface-2); }
.stat-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--red-50); color: var(--red); transition: transform .5s var(--ease), background-color .3s, color .3s; }
.stat:hover .stat-icon { transform: translateY(-4px) rotate(-6deg); background: var(--red); color: #fff; }
.stat-icon svg { width: 26px; height: 26px; }
.stat-value { font-size: var(--fs-3xl); font-weight: 800; color: var(--ink); line-height: 1.1; letter-spacing: -.02em; }
.stat-value .num { color: var(--red); font-variant-numeric: tabular-nums; }
.stat-value .unit { font-size: .55em; font-weight: 700; margin-left: 4px; color: var(--ink); }
.stat p { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 1023px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 479px) {
    .stat { padding: 20px 16px; gap: 8px; }
    .stat-icon { width: 42px; height: 42px; border-radius: 12px; }
    .stat-icon svg { width: 22px; height: 22px; }
    .stat p { font-size: var(--fs-xs); line-height: 1.5; }
}

/* Timeline */
.timeline { position: relative; }
.timeline-steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.timeline-steps::before, .timeline-bar {
    content: ""; position: absolute; left: 10%; right: 10%; top: 27px; height: 2px; background: rgba(255, 255, 255, .14); border-radius: 2px;
}
.section:not(.section--dark) .timeline-steps::before { background: var(--line); }
.timeline-bar { right: auto; width: 0; background: var(--grad-red); transition: width .7s var(--ease); z-index: 1; }
.timeline-step { position: relative; z-index: 2; display: grid; justify-items: center; gap: 10px; text-align: center; padding: 0 4px; color: inherit; }
.timeline-dot {
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
    background: var(--navy-3); border: 2px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .7);
    font-weight: 800; font-size: var(--fs-sm);
    transition: all .5s var(--ease);
}
.section:not(.section--dark) .timeline-dot { background: #fff; border-color: var(--line); color: var(--muted); }
.timeline-step:hover .timeline-dot { border-color: var(--red); color: var(--red); }
.timeline-step.is-done .timeline-dot { border-color: var(--red); color: #fff; background: var(--red-700); }
.timeline-step.is-active .timeline-dot { background: var(--grad-red); border-color: transparent; color: #fff; transform: scale(1.12); box-shadow: 0 0 0 8px rgba(220, 32, 35, .18), var(--shadow-red); }
.timeline-name { font-weight: 700; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; }
.timeline-year { font-size: var(--fs-xs); opacity: .65; }
.timeline-step.is-active .timeline-name { color: var(--red); }
.section--dark .timeline-step.is-active .timeline-name { color: #ff5a5d; }
.timeline-panels { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: clamp(28px, 4vw, 48px); }
.timeline-panel {
    grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(16px);
    transition: opacity .5s, transform .6s var(--ease), visibility .5s;
    padding: clamp(24px, 3.5vw, 44px); border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
    display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 40px); align-items: start;
}
.section:not(.section--dark) .timeline-panel { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.timeline-panel.is-active { opacity: 1; visibility: visible; transform: none; }
.timeline-panel .big-year { font-size: var(--fs-4xl); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.timeline-panel p { font-size: var(--fs-lg); line-height: 1.75; text-align: justify; }
@media (max-width: 767px) {
    .timeline-steps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 4px 4px; gap: 0; }
    .timeline-steps::-webkit-scrollbar { display: none; }
    .timeline-step { flex: 0 0 34%; scroll-snap-align: center; }
    .timeline-steps::before, .timeline-bar { display: none; }
    .timeline-panel { grid-template-columns: 1fr; }
    .timeline-panel p { font-size: var(--fs-base); text-align: left; }
}

/* Partners marquee */
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee + .marquee { margin-top: 16px; }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee var(--speed, 50s) linear infinite; }
.marquee--reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
.partner {
    flex: none; width: clamp(140px, 16vw, 190px); height: 92px; padding: 16px 22px; display: grid; place-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.partner img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .4s, opacity .4s; }
.partner:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.partner:hover img { filter: none; opacity: 1; }

/* Benefit card */
.careers-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 48px); align-items: stretch; }
@media (max-width: 1023px) { .careers-grid { grid-template-columns: minmax(0, 1fr); } }
.stack { display: grid; gap: 16px; align-content: start; }
.benefit {
    position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg);
    padding: clamp(28px, 4vw, 48px); background: var(--grad-red); color: rgba(255, 255, 255, .88);
    display: flex; flex-direction: column; gap: 16px;
}
.benefit::before, .benefit::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; border: 1px solid rgba(255, 255, 255, .18); }
.benefit::before { width: 380px; height: 380px; right: -140px; top: -140px; animation: float 10s ease-in-out infinite; }
.benefit::after { width: 240px; height: 240px; right: -40px; top: -40px; background: rgba(255, 255, 255, .06); animation: float 8s ease-in-out infinite reverse; }
.benefit h3 { color: #fff; font-size: var(--fs-2xl); font-weight: 800; }
.benefit .btn { align-self: flex-start; margin-top: auto; }
.benefit-list { display: grid; gap: 14px; }
.benefit-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: var(--fs-sm); line-height: 1.7; }
.benefit-list li svg { width: 22px; height: 22px; margin-top: 2px; }

/* =========================================================
   11. GAMES PAGE
   ========================================================= */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.feature { padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); display: grid; gap: 14px; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature .stat-icon { width: 48px; height: 48px; }
.feature p { font-size: var(--fs-sm); color: var(--text); }
@media (max-width: 767px) { .features { grid-template-columns: 1fr; } }

.game-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 14px; }
.game-tile {
    position: relative; display: grid; justify-items: center; gap: 10px; padding: 16px 10px 14px;
    border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
    text-align: center; color: rgba(255, 255, 255, .8); transition: transform .4s var(--ease), background-color .3s, border-color .3s;
}
.game-tile img { width: 76px; height: 76px; border-radius: 20px; object-fit: cover; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .5); transition: transform .5s var(--ease); }
.game-tile span { font-size: var(--fs-xs); font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.game-tile:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .08); }
.game-tile:hover img { transform: scale(1.06) rotate(-3deg); }
.game-tile.is-active { background: rgba(220, 32, 35, .16); border-color: var(--red); color: #fff; }
.game-tile.is-active::after { content: ""; position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(220, 32, 35, .3); }
@media (max-width: 639px) {
    .game-picker { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
    .game-picker::-webkit-scrollbar { display: none; }
    .game-tile { flex: 0 0 116px; scroll-snap-align: start; }
}

.game-detail { display: block; }
/* Chỉ panel đang chọn chiếm chỗ: tránh khối khổng lồ khi có nhiều game với mô tả dài */
.game-panel {
    display: none; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start;
    background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow);
    padding: clamp(22px, 3.5vw, 44px);
}
.game-panel.is-active { display: grid; animation: panelIn .55s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
.game-panel .prose { max-height: 520px; overflow-y: auto; padding-right: 6px; }
.game-panel .cover { width: 180px; aspect-ratio: 1; border-radius: 32px; object-fit: cover; box-shadow: var(--shadow-lg); }
.game-panel h2 { font-size: var(--fs-2xl); font-weight: 800; }
.game-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; }
@media (max-width: 767px) {
    .game-panel { grid-template-columns: minmax(0, 1fr); }
    .game-panel .prose { max-height: none; overflow: visible; }
    .game-panel .cover { width: 104px; border-radius: 22px; }
}

/* =========================================================
   12. PROSE (nội dung từ CMS)
   ========================================================= */
.prose { color: var(--text); font-size: 1.0625rem; line-height: 1.8; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin-top: 1.6em; line-height: 1.35; }
.prose h2 { font-size: var(--fs-2xl); }
.prose h3 { font-size: var(--fs-xl); }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose img { border-radius: var(--radius); margin-inline: auto; cursor: zoom-in; height: auto !important; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--red); }
.prose blockquote { margin-inline: 0; padding: 16px 22px; border-left: 4px solid var(--red); background: var(--surface-2); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; }
.prose iframe, .prose video { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius); }
.prose [style*="width"] { max-width: 100% !important; }

.article-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); padding: clamp(22px, 4vw, 52px); }
.article-head h1 { font-size: var(--fs-3xl); font-weight: 800; line-height: 1.25; }
.article-head .card-meta { margin-top: 16px; flex-wrap: wrap; gap: 16px; }
.article-head .card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-divider { height: 1px; background: var(--line); margin: 28px 0; border: 0; }

.job-section + .job-section { margin-top: 36px; }
.job-section h2 { display: flex; align-items: center; gap: 12px; font-size: var(--fs-xl); margin-bottom: 14px; }
.job-section h2 .n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--red-50); color: var(--red); font-size: var(--fs-sm); }

/* Share */
.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.share-label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); margin-right: 4px; }
.share a, .share button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); transition: all .3s var(--ease); }
.share a:hover, .share button:hover { background: var(--red); color: #fff; border-color: var(--red); transform: translateY(-3px); }
.share svg { width: 18px; height: 18px; }

/* Sidebar */
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.side-card h3 { font-size: var(--fs-base); text-transform: uppercase; letter-spacing: .08em; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); position: relative; }
.side-card h3::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 48px; height: 2px; background: var(--red); }
.mini-list { display: grid; gap: 4px; }
.mini-item { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; margin: -10px; border-radius: var(--radius); transition: background-color .3s; }
.mini-item + .mini-item { margin-top: 6px; }
.mini-item:hover { background: var(--surface-2); }
.mini-item img { width: 92px; aspect-ratio: 4 / 3; border-radius: 10px; object-fit: cover; }
.mini-item h4 { font-size: var(--fs-sm); font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .25s; }
.mini-item:hover h4 { color: var(--red); }
.mini-item time { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.mini-item--text { grid-template-columns: minmax(0, 1fr); }

.job-apply-card { background: var(--grad-navy); color: #fff; border: 0; position: relative; overflow: hidden; isolation: isolate; }
.job-apply-card::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(220, 32, 35, .5), transparent 70%); z-index: -1; }
.job-apply-card h3 { color: #fff; border-color: rgba(255, 255, 255, .12); }
.meta-list { display: grid; gap: 16px; margin-bottom: 22px; }
.meta-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; }
.meta-list .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.meta-list .ic svg { width: 18px; height: 18px; color: #ff6a6c; }
.meta-list small { display: block; font-size: 12px; color: rgba(255, 255, 255, .6); }
.meta-list b { font-weight: 600; font-size: var(--fs-sm); }

/* =========================================================
   13. CONTACT
   ========================================================= */
.contact-card { position: relative; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); display: grid; gap: 16px; align-content: start; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.contact-card h3 { font-size: var(--fs-xl); }
.contact-rows { display: grid; gap: 14px; font-size: var(--fs-sm); }
.contact-rows li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; }
.contact-rows svg { width: 18px; height: 18px; color: var(--red); margin-top: 3px; }
.contact-rows small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.contact-rows a { font-weight: 600; color: var(--ink); transition: color .2s; }
.contact-rows a:hover { color: var(--red); }
.contact-rows .empty { color: var(--muted); font-style: italic; }
.map { margin-top: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 21 / 8; background: var(--surface-3); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.2) contrast(1.05); }
@media (max-width: 767px) { .map { aspect-ratio: 4 / 3; } }

/* =========================================================
   14. FOOTER
   ========================================================= */
.site-footer { position: relative; background: #15171f; color: rgba(255, 255, 255, .65); font-size: var(--fs-sm); overflow: hidden; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad-red); }
.site-footer::after { content: ""; position: absolute; width: 520px; height: 520px; left: -200px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(220, 32, 35, .18), transparent 70%); z-index: -1; }
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(32px, 5vw, 56px) 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-cta h2 { color: #fff; font-size: var(--fs-2xl); font-weight: 800; max-width: 560px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: clamp(24px, 4vw, 48px); padding: clamp(40px, 5vw, 64px) 0; }
.footer-grid h4 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.footer-brand img { width: 150px; height: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 320px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s, transform .3s var(--ease); }
.footer-links a:hover { color: #fff; transform: translateX(4px); }
.footer-contact { display: grid; gap: 12px; }
.footer-contact li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; }
.footer-contact svg { width: 16px; height: 16px; margin-top: 4px; color: var(--red); }
.footer-contact a { color: #fff; font-weight: 600; }
.footer-contact a:hover { color: #ff6a6c; }
.footer-note { display: grid; gap: 8px; }
.footer-note strong { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: var(--fs-xs); }
.footer-bottom .legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: #fff; transition: background-color .3s, transform .3s var(--ease); }
.socials a:hover { background: var(--red); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; align-items: flex-start; } }

/* Back to top with progress ring */
.to-top {
    position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 90;
    width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--ink);
    display: grid; place-items: center; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
    transition: opacity .35s, transform .45s var(--ease), visibility .35s, background-color .25s, color .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red); color: #fff; }
.to-top svg.arrow { width: 20px; height: 20px; position: relative; z-index: 1; }
.to-top svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top svg.ring circle { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 150.8; stroke-dashoffset: var(--p, 150.8); transition: stroke-dashoffset .1s linear; }
.to-top:hover svg.ring circle { stroke: #fff; }

/* Reading progress */
.read-progress { position: fixed; left: 0; top: 0; z-index: 101; height: 3px; width: 100%; background: var(--grad-red); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* =========================================================
   15. MODAL / FORM / TOAST / LIGHTBOX
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; visibility: hidden; pointer-events: none; }
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(1, 11, 38, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.modal.is-open .modal-backdrop { opacity: 1; }
.modal-dialog {
    position: relative; width: min(100%, 640px); max-height: calc(100dvh - 32px); overflow: auto;
    background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .35s, transform .45s var(--ease);
}
.modal-dialog--sm { width: min(100%, 440px); }
.modal.is-open .modal-dialog { opacity: 1; transform: none; }
.modal-head { position: sticky; top: 0; z-index: 2; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: var(--fs-xl); }
.modal-body { padding: 26px; }
.modal-foot { position: sticky; bottom: 0; background: #fff; display: flex; justify-content: flex-end; gap: 10px; padding: 18px 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.modal-close { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: background-color .2s, color .2s, transform .3s var(--ease); }
.modal-close:hover { background: var(--surface-2); color: var(--ink); transform: rotate(90deg); }
.modal-close svg { width: 20px; height: 20px; }
.modal-center { text-align: center; padding: 36px 28px 28px; display: grid; gap: 14px; justify-items: center; }
.modal-center .stat-icon { width: 64px; height: 64px; border-radius: 50%; }
@media (max-width: 639px) {
    .modal { padding: 0; align-items: end; }
    .modal-dialog { width: 100%; max-height: 92dvh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; transform: translateY(100%); }
    .modal-head, .modal-body, .modal-foot { padding-inline: 18px; }
    .modal-foot .btn { flex: 1; }
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 519px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-xs); font-weight: 600; color: var(--ink); }
.field label .req { color: var(--red); }
.input {
    width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
    border: 1.5px solid var(--line); background: var(--surface-2); font-size: var(--fs-sm);
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
textarea.input { min-height: 100px; resize: vertical; }
.input:hover { border-color: #d3d5dc; }
.input:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px rgba(220, 32, 35, .12); }
.input.is-invalid { border-color: var(--red); background: var(--red-50); }
.field-error { font-size: 12px; color: var(--red-600); font-weight: 500; }
.dropzone {
    position: relative; display: grid; justify-items: center; gap: 8px; padding: 26px 16px; text-align: center;
    border: 2px dashed #d3d5dc; border-radius: var(--radius); background: var(--surface-2); color: var(--muted); font-size: var(--fs-sm);
    transition: border-color .25s, background-color .25s;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--red); background: var(--red-50); }
.dropzone svg { width: 34px; height: 34px; color: var(--red); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone b { color: var(--ink); }
.dropzone .file-name { color: var(--red-600); font-weight: 600; word-break: break-all; }

.toasts { position: fixed; z-index: 300; top: 20px; right: 20px; left: 20px; display: grid; justify-items: end; gap: 10px; pointer-events: none; }
.toast {
    pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; max-width: 380px; padding: 14px 18px;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border-left: 4px solid var(--c, var(--red));
    font-size: var(--fs-sm); color: var(--ink); animation: toastIn .45s var(--ease);
}
.toast.is-leaving { animation: toastOut .35s var(--ease) forwards; }
.toast svg { width: 20px; height: 20px; flex: none; color: var(--c, var(--red)); margin-top: 1px; }
.toast--success { --c: #16a34a; }
.toast--warning { --c: #d97706; }
.toast--error { --c: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

.lightbox { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; background: rgba(1, 11, 38, .92); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; padding: 60px 16px; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); transform: scale(.94); transition: transform .45s var(--ease), opacity .25s; }
.lightbox.is-open img { transform: none; }
.lightbox .lb-close { position: absolute; top: 14px; right: 14px; }
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev { left: 14px; }
.lightbox .lb-next { right: 14px; }
.lightbox .lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-size: var(--fs-xs); letter-spacing: .1em; }

/* Load more / empty */
.load-more { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 48px); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius-lg); }

/* Skeleton for lazy images */
.lazy-bg { background: linear-gradient(100deg, var(--surface-3) 30%, #f7f8fa 50%, var(--surface-3) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
img.is-loaded { animation: none; }

/* =========================================================
   16. MOTION
   ========================================================= */
[data-reveal] { opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); will-change: opacity, transform; }
[data-reveal="up"] { transform: translateY(36px); }
[data-reveal="down"] { transform: translateY(-24px); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

.split-line { display: inline-block; overflow: hidden; vertical-align: top; }
.split-line > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: var(--d, 0s); }
.is-in .split-line > span, .split-line.is-in > span { transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(-50%) translateX(0); } 50% { transform: translateY(calc(-50% - 14px)) translateX(6px); } }
.benefit::before, .benefit::after { animation-name: floatSimple; }
@keyframes floatSimple { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-10px, 12px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 32, 35, .45); } 50% { box-shadow: 0 0 0 6px rgba(220, 32, 35, 0); } }
@keyframes shimmer { to { background-position: -100% 0; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    [data-reveal] { opacity: 1; transform: none; }
    .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
    .marquee .dup { display: none; }
    .hero-slide img { transform: none !important; }
}

/* =========================================================
   17. UTILITIES
   ========================================================= */
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.hide-mobile { }
@media (max-width: 639px) { .hide-mobile { display: none !important; } }

/* Fix: panel trắng nằm trong section tối */
.section--dark .game-panel h2 { color: var(--ink); }
.section--dark .game-panel { color: var(--text); }

/* Tin tuyển dụng đã hết hạn */
.badge--muted { background: var(--surface-3); color: var(--muted); }
.job-card.is-expired .job-icon { background: var(--surface-2); color: var(--muted); }
.job-card.is-expired .job-title { color: var(--muted); }
.job-card.is-expired:hover .job-title { color: var(--red); }

/* =========================================================
   18. GAMES SHOWCASE (trang Sản phẩm – dạng slide)
   ========================================================= */
.games-showcase {
    position: relative; overflow: hidden; isolation: isolate;
    padding-block: var(--section); color: rgba(255, 255, 255, .78);
    background: radial-gradient(1200px 600px at 80% -10%, rgba(220, 32, 35, .18), transparent 60%), var(--navy);
}
.games-showcase h2, .games-showcase h3 { color: #fff; }
.gs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 3.5vw, 40px); }
.gs-controls { display: flex; align-items: center; gap: 10px; }
.gs-counter { margin-right: 10px; font-variant-numeric: tabular-nums; letter-spacing: .04em; color: rgba(255, 255, 255, .5); font-size: var(--fs-sm); }
.gs-counter b { color: #fff; font-size: 1.6rem; font-weight: 800; margin-right: 6px; }

/* Stage */
.gs-stage {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr);
    border-radius: 28px; overflow: hidden; outline: none;
    background: linear-gradient(140deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
    min-height: clamp(420px, 46vw, 560px);
}
.gs-stage:focus-visible { box-shadow: 0 0 0 3px rgba(220, 32, 35, .6); }
.gs-slide {
    grid-area: 1 / 1; position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center; gap: clamp(24px, 4vw, 64px); padding: clamp(28px, 4.5vw, 64px);
    opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s;
}
.gs-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

/* Nền mờ lấy màu từ icon game */
.gs-backdrop { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(circle at 25% 50%, hsla(var(--h), 70%, 45%, .35), transparent 60%); }
.gs-backdrop img { position: absolute; left: -10%; top: 50%; width: 70%; aspect-ratio: 1; object-fit: cover; transform: translateY(-50%) scale(1.2); filter: blur(70px) saturate(1.6); opacity: .45; }
.gs-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 20%, rgba(1, 11, 38, .7) 75%); }

/* Ảnh game */
.gs-media { display: grid; place-items: center; perspective: 1000px; }
.gs-cover {
    position: relative; width: min(100%, 340px); aspect-ratio: 1; border-radius: 22%;
    background: linear-gradient(145deg, hsl(var(--h), 70%, 48%), hsl(calc(var(--h) + 40), 75%, 30%));
    box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .12), 0 0 80px -10px hsla(var(--h), 80%, 55%, .55);
    overflow: hidden; transform: translateY(24px) rotateY(-12deg) scale(.92); opacity: 0;
    transition: transform 1s var(--ease), opacity .8s var(--ease);
}
.gs-cover::after { /* ánh sáng phản chiếu */
    content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255, 255, 255, .28), transparent 35%, transparent 70%, rgba(255, 255, 255, .08));
    pointer-events: none;
}
.gs-cover img { width: 100%; height: 100%; object-fit: cover; }
.gs-slide.is-active .gs-cover { transform: none; opacity: 1; animation: gsFloat 6s ease-in-out 1s infinite; }
@keyframes gsFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.gs-ph { display: none; position: absolute; inset: 0; place-items: center; font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; color: rgba(255, 255, 255, .92); letter-spacing: .02em; text-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.no-img > .gs-ph { display: grid; }

/* Thông tin */
.gs-info { position: relative; display: grid; gap: 16px; align-content: center; min-width: 0; }
.gs-info > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.gs-slide.is-active .gs-info > * { opacity: 1; transform: none; }
.gs-slide.is-active .gs-info > :nth-child(2) { transition-delay: .08s; }
.gs-slide.is-active .gs-info > :nth-child(3) { transition-delay: .16s; }
.gs-slide.is-active .gs-info > :nth-child(4) { transition-delay: .24s; }
.gs-meta { display: flex; align-items: center; gap: 16px; font-size: var(--fs-xs); color: rgba(255, 255, 255, .55); }
.gs-index { font-weight: 800; letter-spacing: .14em; color: #ff5a5d; }
.gs-index::after { content: ""; display: inline-block; width: 36px; height: 1px; margin-left: 14px; vertical-align: middle; background: currentColor; opacity: .6; }
.gs-date { display: inline-flex; align-items: center; gap: 6px; }
.gs-date svg { width: 14px; height: 14px; }
.gs-title { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3.25rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.gs-desc.prose { color: rgba(255, 255, 255, .72); font-size: var(--fs-base); line-height: 1.75; max-height: 9.2em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.gs-desc.prose > * + * { margin-top: .6em; }
.gs-desc.prose img, .gs-desc.prose iframe { display: none; }
.gs-desc.prose a { color: #ff8a8c; }
.gs-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Thanh tiến trình tự chạy */
.gs-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 2; background: rgba(255, 255, 255, .06); }
.gs-progress span { display: block; height: 100%; width: 100%; background: var(--grad-red); transform: scaleX(0); transform-origin: left; }
.gs-stage.is-playing .gs-progress span { animation: heroProgress var(--gs-delay, 7s) linear forwards; }
.gs-stage.is-paused .gs-progress span { animation-play-state: paused; }

/* Dải thumbnail */
.gs-thumbs-wrap { position: relative; margin-top: 22px; }
.gs-thumbs {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain;
    padding: 6px max(var(--gutter), calc((100vw - var(--container)) / 2)) 10px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.gs-thumbs::-webkit-scrollbar { display: none; }
.gs-thumb {
    flex: 0 0 auto; scroll-snap-align: center; display: flex; align-items: center; gap: 12px; width: 230px; padding: 10px 14px 10px 10px;
    border-radius: 18px; text-align: left; color: rgba(255, 255, 255, .62);
    background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
    transition: background-color .3s, border-color .3s, color .3s, transform .4s var(--ease);
}
.gs-thumb:hover { background: rgba(255, 255, 255, .08); color: #fff; transform: translateY(-3px); }
.gs-thumb.is-active { color: #fff; border-color: rgba(220, 32, 35, .8); background: linear-gradient(135deg, rgba(220, 32, 35, .22), rgba(255, 255, 255, .04)); box-shadow: 0 10px 30px -12px rgba(220, 32, 35, .6); }
.gs-thumb-img { position: relative; flex: none; width: 52px; height: 52px; border-radius: 14px; overflow: hidden; background: linear-gradient(145deg, hsl(var(--h), 70%, 48%), hsl(calc(var(--h) + 40), 75%, 30%)); }
.gs-thumb-img img { width: 100%; height: 100%; object-fit: cover; }
.gs-thumb-img .gs-ph { font-size: 1rem; }
.gs-thumb-name { font-size: var(--fs-xs); font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 767px) {
    .gs-stage { min-height: 0; border-radius: 22px; }
    .gs-slide { grid-template-columns: minmax(0, 1fr); align-content: start; text-align: left; padding: 26px 20px 30px; gap: 22px; }
    .gs-cover { width: 58%; max-width: 220px; }
    .gs-backdrop img { left: 50%; top: 0; width: 120%; transform: translate(-50%, -20%); }
    .gs-backdrop::after { background: linear-gradient(180deg, transparent 10%, rgba(1, 11, 38, .75) 60%); }
    .gs-actions .btn { flex: 1; }
    .gs-thumb { width: 180px; }
    .gs-head .section-title { font-size: var(--fs-2xl); }
}
