/* =========================================================================
   Ngu Long Tranh Ba - stylesheet chinh
   Chu de: vo lam, nen toi, nhan vang dong, vien khac.
   ========================================================================= */

/* ---------- Bien ---------- */
:root {
    --bg:            #0d0906;
    --bg-2:          #14100b;
    --panel:         #1a1510;
    --panel-2:       #221b14;
    --panel-3:       #2b2218;

    --gold:          #e0b055;
    --gold-2:        #f6d98a;
    --gold-dim:      #9a7838;
    --jade:          #48b98a;
    --blood:         #c8452f;
    --azure:         #4a9fd4;
    --violet:        #9b7ad4;

    --text:          #ece3d4;
    --text-2:        #b9ab95;
    --text-3:        #7d7263;

    --line:          rgba(224, 176, 85, .18);
    --line-2:        rgba(224, 176, 85, .32);

    --ok:            #48b98a;
    --warn:          #e0a13f;
    --err:           #d8543c;

    --r-sm:  6px;
    --r:     10px;
    --r-lg:  16px;

    --sh:    0 6px 24px rgba(0, 0, 0, .45);
    --sh-lg: 0 18px 48px rgba(0, 0, 0, .6);

    --font:  'Be Vietnam Pro', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-d:'Cinzel', 'Times New Roman', serif;

    --head-h: 68px;
    --wrap:   1220px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    padding-top: var(--head-h);
}
body.has-hero { padding-top: 0; }

img, svg { max-width: 100%; display: block; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

a { color: var(--gold); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--gold-2); }

h1, h2, h3, h4 {
    font-family: var(--font-d);
    font-weight: 700;
    line-height: 1.22;
    margin: 0 0 .5em;
    letter-spacing: .3px;
}
h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.02rem; }
p  { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.15rem; }

table { border-collapse: collapse; width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 3px;
}

::selection { background: rgba(224, 176, 85, .3); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--gold-dim), #5c4620);
    border-radius: 6px;
    border: 2px solid var(--bg-2);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(var(--gold), var(--gold-dim)); }

/* ---------- Tien ich ---------- */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: 10px 18px;
    background: var(--gold);
    color: #1a1206;
    font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

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

.text-c { text-align: center; }
.muted  { color: var(--text-2); }
.dim    { color: var(--text-3); }
.gold   { color: var(--gold); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Nen trang tri ---------- */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(1200px 600px at 50% -10%, #1d150d 0%, transparent 70%),
        linear-gradient(180deg, var(--bg) 0%, #0a0705 100%);
}
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .25;
    animation: drift 22s ease-in-out infinite alternate;
}
.bg-glow-1 {
    width: 460px; height: 460px;
    top: 4%; left: -100px;
    background: radial-gradient(circle, #8a5a1e, transparent 68%);
}
.bg-glow-2 {
    width: 520px; height: 520px;
    bottom: 6%; right: -120px;
    background: radial-gradient(circle, #1d5c58, transparent 68%);
    animation-delay: -8s;
}
.bg-ink {
    position: absolute;
    inset: 0;
    opacity: .5;
    background-image:
        repeating-linear-gradient(0deg, rgba(255,255,255,.014) 0 1px, transparent 1px 3px);
}
@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(40px, -30px, 0) scale(1.12); }
}

/* =========================================================================
   Header
   ========================================================================= */
.site-head {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    height: var(--head-h);
    background: rgba(13, 9, 6, .82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: background .25s ease, box-shadow .25s ease;
}
.site-head.is-stuck {
    background: rgba(10, 7, 5, .96);
    box-shadow: 0 6px 26px rgba(0, 0, 0, .55);
}
.head-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    flex-shrink: 0;
    font-family: var(--font-d);
    font-size: 1.32rem;
    font-weight: 700;
    color: #22180a;
    background: linear-gradient(150deg, var(--gold-2), var(--gold) 45%, #a87e2f);
    border-radius: 10px;
    box-shadow: 0 3px 14px rgba(224, 176, 85, .34), inset 0 1px 0 rgba(255,255,255,.5);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
    font-family: var(--font-d);
    font-size: 1.06rem;
    color: var(--gold-2);
    letter-spacing: .5px;
    white-space: nowrap;
}
.brand-text small {
    font-size: .68rem;
    color: var(--text-3);
    letter-spacing: .4px;
    white-space: nowrap;
}

.main-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-width: 0;
}
.main-nav > ul {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav > ul a {
    position: relative;
    display: block;
    padding: 9px 13px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-2);
    border-radius: var(--r-sm);
    white-space: nowrap;
    transition: color .18s ease, background .18s ease;
}
.main-nav > ul a::after {
    content: '';
    position: absolute;
    left: 13px; right: 13px; bottom: 4px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: scaleX(0);
    transition: transform .24s ease;
}
.main-nav > ul a:hover { color: var(--text); background: rgba(224, 176, 85, .07); }
.main-nav > ul a:hover::after,
.main-nav > ul a.is-active::after { transform: scaleX(1); }
.main-nav > ul a.is-active { color: var(--gold-2); }
.main-nav .nav-admin { color: var(--jade); }

.head-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 42px; height: 38px;
    padding: 9px 8px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* User chip */
.user-chip { position: relative; }
.user-chip-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 10px 5px 5px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}
.user-chip-btn:hover { border-color: var(--line-2); background: var(--panel-3); }
.avatar {
    display: grid;
    place-items: center;
    width: 30px; height: 30px;
    flex-shrink: 0;
    font-family: var(--font-d);
    font-size: .9rem;
    font-weight: 700;
    color: #22180a;
    background: linear-gradient(150deg, var(--gold-2), var(--gold-dim));
    border-radius: 50%;
}
.user-chip-info { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.user-chip-info strong { font-size: .82rem; color: var(--text); }
.user-chip-info small  { font-size: .68rem; color: var(--gold); }
.user-chip-btn .caret {
    width: 15px; height: 15px;
    color: var(--text-3);
    transition: transform .22s ease;
}
.user-chip-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }

.dropdown {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    min-width: 208px;
    padding: 7px;
    background: var(--panel);
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    box-shadow: var(--sh-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 210;
}
.user-chip.is-open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a,
.dropdown-out {
    display: block;
    width: 100%;
    padding: 9px 12px;
    font-size: .865rem;
    text-align: left;
    color: var(--text-2);
    background: none;
    border: 0;
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: background .16s ease, color .16s ease;
}
.dropdown a:hover, .dropdown-out:hover { background: rgba(224, 176, 85, .1); color: var(--gold-2); }
.dropdown form { margin: 5px 0 0; padding-top: 5px; border-top: 1px solid var(--line); }
.dropdown-out { color: var(--err); }
.dropdown-out:hover { background: rgba(216, 84, 60, .12); color: #ef7d68; }

/* =========================================================================
   Nut
   ========================================================================= */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    font-family: var(--font);
    font-size: .92rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-primary {
    color: #22180a;
    background: linear-gradient(150deg, var(--gold-2), var(--gold) 48%, #b8862f);
    box-shadow: 0 4px 16px rgba(224, 176, 85, .3), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn-primary:hover {
    color: #1a1206;
    box-shadow: 0 7px 24px rgba(224, 176, 85, .45), inset 0 1px 0 rgba(255,255,255,.55);
}

.btn-ghost {
    color: var(--gold);
    background: rgba(224, 176, 85, .06);
    border-color: var(--line-2);
}
.btn-ghost:hover { background: rgba(224, 176, 85, .14); border-color: var(--gold); color: var(--gold-2); }

.btn-jade {
    color: #072019;
    background: linear-gradient(150deg, #6fd7ab, var(--jade) 50%, #2e8e68);
    box-shadow: 0 4px 16px rgba(72, 185, 138, .28), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-jade:hover { box-shadow: 0 7px 24px rgba(72, 185, 138, .42); }

.btn-danger {
    color: #fff;
    background: linear-gradient(150deg, #e0664c, var(--blood) 55%, #9c2f1e);
    box-shadow: 0 4px 16px rgba(200, 69, 47, .3);
}
.btn-danger:hover { box-shadow: 0 7px 24px rgba(200, 69, 47, .45); }

.btn-line {
    color: var(--text-2);
    background: transparent;
    border-color: var(--line);
}
.btn-line:hover { color: var(--text); border-color: var(--line-2); background: rgba(255,255,255,.04); }

.btn-sm { padding: 8px 15px; font-size: .82rem; }
.btn-lg { padding: 14px 34px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

/* =========================================================================
   Panel / the
   ========================================================================= */
.panel {
    position: relative;
    padding: 26px;
    background: linear-gradient(160deg, var(--panel) 0%, #171208 100%);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh);
}
.panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(150deg, rgba(224,176,85,.32), transparent 40%, transparent 60%, rgba(224,176,85,.16));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.panel-tight { padding: 18px; }
.panel-flush { padding: 0; overflow: hidden; }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: linear-gradient(165deg, var(--panel-2), #171208);
    border: 1px solid var(--line);
    border-radius: var(--r);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover {
    transform: translateY(-3px);
    border-color: var(--line-2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .5);
}

/* Tieu de khu vuc */
.sec { padding: 62px 0; }
.sec-alt { background: linear-gradient(180deg, transparent, rgba(224,176,85,.028), transparent); }

.sec-head { margin-bottom: 34px; text-align: center; }
.sec-head .eyebrow {
    display: inline-block;
    margin-bottom: 9px;
    font-family: var(--font-d);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: 3.4px;
    text-transform: uppercase;
    color: var(--gold-dim);
}
.sec-head h2 { margin-bottom: .35em; }
.sec-head h2 .accent {
    background: linear-gradient(100deg, var(--gold-2), var(--gold) 50%, #b8862f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.sec-head p { max-width: 620px; margin: 0 auto; color: var(--text-2); }

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 12px auto 0;
    max-width: 240px;
    color: var(--gold-dim);
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim));
}
.divider::after { background: linear-gradient(90deg, var(--gold-dim), transparent); }
.divider span { font-size: .8rem; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: calc(var(--head-h) + 52px) 0 62px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(900px 480px at 78% 26%, rgba(224,176,85,.14), transparent 66%),
        radial-gradient(700px 420px at 16% 74%, rgba(72,185,138,.1), transparent 66%);
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, var(--bg) 100%);
}
.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 48px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 15px 6px 7px;
    margin-bottom: 20px;
    font-size: .78rem;
    font-weight: 500;
    color: var(--gold-2);
    background: rgba(224, 176, 85, .09);
    border: 1px solid var(--line-2);
    border-radius: 999px;
}
.hero-badge b {
    padding: 2px 9px;
    font-size: .7rem;
    color: #072019;
    background: var(--jade);
    border-radius: 999px;
}

.hero h1 { margin-bottom: .3em; }
.hero h1 .line-1 {
    display: block;
    font-size: .52em;
    font-weight: 600;
    letter-spacing: 7px;
    text-transform: uppercase;
    color: var(--text-3);
}
.hero h1 .line-2 {
    display: block;
    background: linear-gradient(100deg, #fff5e0, var(--gold-2) 32%, var(--gold) 62%, #a87e2f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 6px 34px rgba(224, 176, 85, .22);
}
.hero-lead {
    max-width: 520px;
    margin-bottom: 28px;
    font-size: 1.05rem;
    color: var(--text-2);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.hero-stats div { line-height: 1.25; }
.hero-stats b {
    display: block;
    font-family: var(--font-d);
    font-size: 1.72rem;
    color: var(--gold-2);
}
.hero-stats span { font-size: .78rem; color: var(--text-3); }

/* The may chu trong hero */
.hero-servers { display: flex; flex-direction: column; gap: 14px; }

.sv-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: linear-gradient(120deg, var(--panel-2), #171208);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.sv-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--gold), var(--gold-dim));
}
.sv-card.is-off::before { background: linear-gradient(180deg, #6a5f52, #3b352d); }
.sv-card:hover {
    transform: translateX(4px);
    border-color: var(--line-2);
    box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.sv-emblem {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    flex-shrink: 0;
    font-family: var(--font-d);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gold-2);
    background: radial-gradient(circle at 32% 28%, var(--panel-3), #120e08);
    border: 1px solid var(--line-2);
    border-radius: 12px;
}
.sv-card.is-off .sv-emblem { color: var(--text-3); border-color: rgba(255,255,255,.08); }
.sv-body { flex: 1; min-width: 0; }
.sv-name {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-d);
    font-size: 1.06rem;
    font-weight: 700;
    color: var(--text);
}
.sv-sub { font-size: .78rem; color: var(--text-3); }
.sv-meta { display: flex; gap: 16px; margin-top: 6px; font-size: .78rem; color: var(--text-2); }
.sv-meta b { color: var(--gold); font-weight: 600; }
.sv-act { flex-shrink: 0; }

.dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-on {
    background: var(--ok);
    box-shadow: 0 0 0 3px rgba(72, 185, 138, .18);
    animation: pulse 2.1s ease-in-out infinite;
}
.dot-off { background: #6a5f52; box-shadow: 0 0 0 3px rgba(255,255,255,.05); }
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(72, 185, 138, .18); }
    50%      { box-shadow: 0 0 0 6px rgba(72, 185, 138, .05); }
}

.tag {
    display: inline-block;
    padding: 2px 9px;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .4px;
    border-radius: 999px;
    white-space: nowrap;
}
.tag-on  { color: #b6f0d5; background: rgba(72, 185, 138, .16); border: 1px solid rgba(72,185,138,.32); }
.tag-off { color: var(--text-3); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); }
.tag-hot { color: #ffd9cf; background: rgba(200, 69, 47, .18); border: 1px solid rgba(200,69,47,.34); }
.tag-new { color: #cfe6ff; background: rgba(74, 159, 212, .16); border: 1px solid rgba(74,159,212,.32); }

/* Cuon thong bao trong hero */
.notice-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding: 11px 16px;
    background: rgba(224, 176, 85, .05);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
}
.notice-strip > b {
    flex-shrink: 0;
    font-family: var(--font-d);
    font-size: .74rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--gold);
}
.notice-track {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.notice-track span {
    display: inline-block;
    padding-left: 100%;
    font-size: .84rem;
    color: var(--text-2);
    animation: marquee 26s linear infinite;
}
.notice-strip:hover .notice-track span { animation-play-state: paused; }
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

/* =========================================================================
   Luoi
   ========================================================================= */
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-side { grid-template-columns: 1fr 340px; align-items: start; gap: 26px; }

/* The tinh nang */
.feat { text-align: left; }
.feat-ico {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    margin-bottom: 14px;
    color: var(--gold);
    background: radial-gradient(circle at 34% 30%, var(--panel-3), #120e08);
    border: 1px solid var(--line-2);
    border-radius: 12px;
}
.feat-ico svg { width: 22px; height: 22px; }
.feat h3 { margin-bottom: .4em; font-size: 1.08rem; color: var(--text); }
.feat p  { margin: 0; font-size: .885rem; color: var(--text-2); }

/* O thong ke */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
    padding: 18px 20px;
    background: linear-gradient(160deg, var(--panel-2), #171208);
    border: 1px solid var(--line);
    border-radius: var(--r);
    text-align: center;
}
.stat b {
    display: block;
    font-family: var(--font-d);
    font-size: 1.62rem;
    color: var(--gold-2);
    line-height: 1.2;
}
.stat span { font-size: .78rem; color: var(--text-3); }

/* =========================================================================
   Form
   ========================================================================= */
.form-wrap {
    max-width: 460px;
    margin: 52px auto;
}
.form-wrap.wide { max-width: 720px; }

.form-head { margin-bottom: 24px; text-align: center; }
.form-head .brand-mark { margin: 0 auto 14px; width: 48px; height: 48px; font-size: 1.5rem; }
.form-head h1 { font-size: 1.72rem; margin-bottom: .25em; }
.form-head p  { margin: 0; font-size: .9rem; color: var(--text-2); }

.field { margin-bottom: 17px; }
.field > label {
    display: block;
    margin-bottom: 7px;
    font-size: .84rem;
    font-weight: 500;
    color: var(--text-2);
}
.field > label .req { color: var(--err); }

.input, .select, .textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: .93rem;
    color: var(--text);
    background: rgba(0, 0, 0, .32);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    background: rgba(0, 0, 0, .42);
    border-color: var(--gold-dim);
    box-shadow: 0 0 0 3px rgba(224, 176, 85, .12);
}
.textarea { min-height: 104px; resize: vertical; }
.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9ab95' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 17px;
    padding-right: 38px;
}
.select option { background: var(--panel); color: var(--text); }

.field-hint { margin: 6px 0 0; font-size: .76rem; color: var(--text-3); }
.field-err  { margin: 6px 0 0; font-size: .78rem; color: #ef8f7c; }

.input-group { display: flex; gap: 9px; }
.input-group .input { flex: 1; }

.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 46px; }
.pw-eye {
    position: absolute;
    right: 4px; top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    color: var(--text-3);
    background: none;
    border: 0;
    border-radius: var(--r-sm);
    cursor: pointer;
}
.pw-eye:hover { color: var(--gold); }
.pw-eye svg { width: 18px; height: 18px; }

.check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: .845rem;
    color: var(--text-2);
    cursor: pointer;
}
.check input {
    width: 17px; height: 17px;
    margin: 3px 0 0;
    flex-shrink: 0;
    accent-color: var(--gold);
    cursor: pointer;
}

.form-foot {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: .865rem;
    color: var(--text-2);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* Chon may chu dang radio */
.sv-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.sv-pick { position: relative; cursor: pointer; }
.sv-pick input { position: absolute; opacity: 0; pointer-events: none; }
.sv-pick > span {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 13px 15px;
    background: rgba(0, 0, 0, .28);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    transition: border-color .18s ease, background .18s ease;
}
.sv-pick > span b { font-family: var(--font-d); font-size: .95rem; color: var(--text); }
.sv-pick > span small { font-size: .72rem; color: var(--text-3); }
.sv-pick:hover > span { border-color: var(--line-2); }
.sv-pick input:checked + span {
    background: rgba(224, 176, 85, .1);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(224, 176, 85, .1);
}
.sv-pick input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* =========================================================================
   Flash
   ========================================================================= */
.flash-zone { margin: 18px auto 0; display: flex; flex-direction: column; gap: 10px; }
.flash {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-left-width: 3px;
    border-radius: var(--r-sm);
    animation: slideIn .3s ease;
}
.flash p { margin: 0; flex: 1; font-size: .89rem; }
.flash-icon {
    display: grid;
    place-items: center;
    width: 21px; height: 21px;
    flex-shrink: 0;
    margin-top: 1px;
    font-size: .76rem;
    font-weight: 700;
    border-radius: 50%;
}
.flash-x {
    flex-shrink: 0;
    padding: 0 4px;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--text-3);
    background: none;
    border: 0;
    cursor: pointer;
}
.flash-x:hover { color: var(--text); }
.flash-success { border-left-color: var(--ok); }
.flash-success .flash-icon { color: #072019; background: var(--ok); }
.flash-error   { border-left-color: var(--err); }
.flash-error .flash-icon   { color: #fff; background: var(--err); }
.flash-info    { border-left-color: var(--azure); }
.flash-info .flash-icon    { color: #04202f; background: var(--azure); }
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-9px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Hop canh bao trong noi dung */
.note {
    display: flex;
    gap: 12px;
    padding: 15px 17px;
    background: rgba(224, 161, 63, .07);
    border: 1px solid rgba(224, 161, 63, .22);
    border-radius: var(--r-sm);
    font-size: .875rem;
    color: var(--text-2);
}
.note b { color: var(--warn); }
.note-ok { background: rgba(72,185,138,.07); border-color: rgba(72,185,138,.22); }
.note-ok b { color: var(--ok); }

/* =========================================================================
   Bang
   ========================================================================= */
.table-wrap { overflow-x: auto; border-radius: var(--r); }

.tbl { min-width: 560px; font-size: .885rem; }
.tbl thead th {
    padding: 13px 15px;
    font-family: var(--font-d);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-align: left;
    color: var(--gold-dim);
    background: rgba(0, 0, 0, .35);
    border-bottom: 1px solid var(--line-2);
    white-space: nowrap;
}
.tbl tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, .045);
    vertical-align: middle;
}
.tbl tbody tr { transition: background .16s ease; }
.tbl tbody tr:hover { background: rgba(224, 176, 85, .045); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .num-col { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .mid { text-align: center; }

.empty {
    padding: 46px 20px;
    text-align: center;
    color: var(--text-3);
}
.empty-ico {
    display: grid;
    place-items: center;
    width: 54px; height: 54px;
    margin: 0 auto 14px;
    color: var(--text-3);
    background: rgba(255,255,255,.03);
    border: 1px solid var(--line);
    border-radius: 50%;
}
.empty-ico svg { width: 24px; height: 24px; }

/* =========================================================================
   Bang xep hang
   ========================================================================= */
.rank-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 22px;
    padding: 6px;
    background: rgba(0, 0, 0, .3);
    border: 1px solid var(--line);
    border-radius: var(--r);
}
.rank-tabs a {
    padding: 9px 17px;
    font-size: .855rem;
    font-weight: 500;
    color: var(--text-2);
    border-radius: var(--r-sm);
    transition: background .18s ease, color .18s ease;
}
.rank-tabs a:hover { background: rgba(224, 176, 85, .08); color: var(--text); }
.rank-tabs a.is-active {
    color: #22180a;
    background: linear-gradient(150deg, var(--gold-2), var(--gold-dim));
    font-weight: 600;
}

.medal {
    display: grid;
    place-items: center;
    width: 30px; height: 30px;
    font-family: var(--font-d);
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-3);
    background: rgba(255, 255, 255, .04);
    border-radius: 50%;
}
.medal-1 { color: #46300a; background: linear-gradient(150deg, #ffe9a8, #d9a441); box-shadow: 0 2px 10px rgba(217,164,65,.42); }
.medal-2 { color: #2b2b2b; background: linear-gradient(150deg, #f0f0f0, #a8a8a8); box-shadow: 0 2px 10px rgba(190,190,190,.3); }
.medal-3 { color: #3a1d09; background: linear-gradient(150deg, #e6b48a, #b5722f); box-shadow: 0 2px 10px rgba(181,114,47,.32); }

.rank-name { display: flex; align-items: center; gap: 10px; }
.rank-name strong { font-weight: 600; color: var(--text); }
.class-badge {
    display: inline-block;
    padding: 2px 9px;
    font-size: .7rem;
    font-weight: 600;
    color: #fff;
    border-radius: 999px;
    white-space: nowrap;
}

/* Buc bay top 3 */
.podium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: end;
    margin-bottom: 26px;
}
.podium-item {
    position: relative;
    padding: 22px 18px;
    text-align: center;
    background: linear-gradient(170deg, var(--panel-2), #171208);
    border: 1px solid var(--line);
    border-radius: var(--r);
    transition: transform .22s ease;
}
.podium-item:hover { transform: translateY(-4px); }
.podium-item.p1 {
    order: 2;
    padding-top: 32px;
    border-color: rgba(224, 176, 85, .42);
    box-shadow: 0 12px 40px rgba(224, 176, 85, .14);
}
.podium-item.p2 { order: 1; }
.podium-item.p3 { order: 3; }
.podium-crown {
    position: absolute;
    top: -13px; left: 50%;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    width: 30px; height: 30px;
    font-size: .95rem;
    color: #46300a;
    background: linear-gradient(150deg, #ffe9a8, #d9a441);
    border-radius: 50%;
    box-shadow: 0 3px 12px rgba(217, 164, 65, .5);
}
.podium-ava {
    display: grid;
    place-items: center;
    width: 62px; height: 62px;
    margin: 0 auto 12px;
    font-family: var(--font-d);
    font-size: 1.5rem;
    font-weight: 700;
    color: #22180a;
    background: linear-gradient(150deg, var(--gold-2), var(--gold-dim));
    border-radius: 50%;
}
.podium-item.p2 .podium-ava { background: linear-gradient(150deg, #f0f0f0, #9a9a9a); color: #2b2b2b; }
.podium-item.p3 .podium-ava { background: linear-gradient(150deg, #e6b48a, #b5722f); color: #3a1d09; }
.podium-item h3 { margin-bottom: .2em; font-size: 1.06rem; }
.podium-item .p-meta { font-size: .78rem; color: var(--text-3); }
.podium-item .p-score {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-family: var(--font-d);
    font-size: 1.18rem;
    color: var(--gold-2);
}

/* =========================================================================
   Cua hang
   ========================================================================= */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 18px; }

.shop-item { text-align: center; }
.shop-thumb {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    margin-bottom: 13px;
    background: radial-gradient(circle at 50% 40%, rgba(224,176,85,.1), transparent 66%), rgba(0,0,0,.28);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    overflow: hidden;
}
.shop-thumb img {
    width: 68%;
    height: 68%;
    object-fit: contain;
    image-rendering: pixelated;
    transition: transform .28s ease;
}
.shop-item:hover .shop-thumb img { transform: scale(1.1); }
.shop-thumb .tag { position: absolute; top: 8px; right: 8px; }
.shop-item h3 {
    margin-bottom: .3em;
    font-size: .96rem;
    font-family: var(--font);
    font-weight: 600;
    color: var(--text);
}
.shop-item .s-type { font-size: .74rem; color: var(--text-3); }
.shop-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 11px 0 13px;
    font-family: var(--font-d);
    font-size: 1.14rem;
    font-weight: 700;
    color: var(--gold-2);
}
.shop-price small { font-size: .68rem; font-weight: 400; color: var(--text-3); }
.shop-item .btn { margin-top: auto; }

/* =========================================================================
   Nap coin
   ========================================================================= */
.nap-tabs { display: flex; gap: 9px; margin-bottom: 24px; flex-wrap: wrap; }
.nap-tab {
    flex: 1;
    min-width: 148px;
    padding: 15px 18px;
    text-align: left;
    background: rgba(0, 0, 0, .28);
    border: 1px solid var(--line);
    border-radius: var(--r);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}
.nap-tab b { display: block; font-family: var(--font-d); font-size: 1rem; color: var(--text); }
.nap-tab small { font-size: .74rem; color: var(--text-3); }
.nap-tab:hover { border-color: var(--line-2); }
.nap-tab.is-active {
    background: rgba(224, 176, 85, .1);
    border-color: var(--gold);
}
.nap-tab.is-active b { color: var(--gold-2); }

.nap-panes > .nap-pane { display: none; }
.nap-panes > .nap-pane.is-active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.amount-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; margin-bottom: 18px; }
.amount-pick { position: relative; cursor: pointer; }
.amount-pick input { position: absolute; opacity: 0; pointer-events: none; }
.amount-pick > span {
    display: block;
    padding: 13px 10px;
    text-align: center;
    background: rgba(0, 0, 0, .28);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    transition: border-color .18s ease, background .18s ease;
}
.amount-pick > span b { display: block; font-family: var(--font-d); font-size: 1.02rem; color: var(--text); }
.amount-pick > span small { font-size: .7rem; color: var(--gold); }
.amount-pick:hover > span { border-color: var(--line-2); }
.amount-pick input:checked + span {
    background: rgba(224, 176, 85, .1);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(224, 176, 85, .1);
}

.bank-box {
    display: grid;
    gap: 12px;
    padding: 19px;
    background: rgba(0, 0, 0, .26);
    border: 1px dashed var(--line-2);
    border-radius: var(--r);
}
.bank-line { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.bank-line > span { font-size: .82rem; color: var(--text-3); }
.bank-line > b { font-family: var(--font-d); font-size: 1rem; color: var(--gold-2); word-break: break-all; }
.copy-btn {
    flex-shrink: 0;
    padding: 5px 11px;
    font-size: .74rem;
    color: var(--gold);
    background: rgba(224, 176, 85, .08);
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: background .18s ease;
}
.copy-btn:hover { background: rgba(224, 176, 85, .18); }
.copy-btn.is-done { color: #072019; background: var(--ok); border-color: var(--ok); }

/* =========================================================================
   Tai khoan
   ========================================================================= */
.acc-head {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 26px;
    margin-bottom: 24px;
    background: linear-gradient(120deg, var(--panel-2), #171208);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.acc-ava {
    display: grid;
    place-items: center;
    width: 74px; height: 74px;
    flex-shrink: 0;
    font-family: var(--font-d);
    font-size: 1.85rem;
    font-weight: 700;
    color: #22180a;
    background: linear-gradient(150deg, var(--gold-2), var(--gold-dim));
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(224, 176, 85, .3);
}
.acc-info { flex: 1; min-width: 0; }
.acc-info h1 { margin-bottom: .15em; font-size: 1.5rem; }
.acc-info .acc-sub { font-size: .84rem; color: var(--text-3); }
.acc-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }

.acc-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 22px;
    padding: 6px;
    background: rgba(0, 0, 0, .3);
    border: 1px solid var(--line);
    border-radius: var(--r);
}
.acc-nav a {
    padding: 9px 16px;
    font-size: .85rem;
    color: var(--text-2);
    border-radius: var(--r-sm);
    transition: background .18s ease, color .18s ease;
}
.acc-nav a:hover { background: rgba(224, 176, 85, .08); color: var(--text); }
.acc-nav a.is-active { color: #22180a; background: linear-gradient(150deg, var(--gold-2), var(--gold-dim)); font-weight: 600; }

.char-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 18px;
    background: linear-gradient(120deg, var(--panel-2), #171208);
    border: 1px solid var(--line);
    border-radius: var(--r);
    transition: border-color .2s ease, transform .2s ease;
}
.char-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.char-lv {
    display: grid;
    place-items: center;
    width: 50px; height: 50px;
    flex-shrink: 0;
    font-family: var(--font-d);
    background: radial-gradient(circle at 34% 30%, var(--panel-3), #120e08);
    border: 1px solid var(--line-2);
    border-radius: 12px;
    line-height: 1.05;
}
.char-lv b { font-size: 1.02rem; color: var(--gold-2); }
.char-lv small { font-size: .6rem; color: var(--text-3); }
.char-body { flex: 1; min-width: 0; }
.char-body h3 { margin-bottom: .15em; font-size: 1.02rem; }
.char-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; color: var(--text-2); }
.char-meta b { color: var(--gold); }

/* =========================================================================
   Giftcode
   ========================================================================= */
.gift-hero { max-width: 560px; margin: 0 auto 30px; text-align: center; }
.gift-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.gift-form .input {
    text-align: center;
    font-family: var(--font-d);
    font-size: 1.06rem;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}
.gift-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 15px; }
.gift-card { padding: 17px 19px; }
.gift-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 13px;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, .3);
    border: 1px dashed var(--line-2);
    border-radius: var(--r-sm);
}
.gift-code code {
    font-family: var(--font-d);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: var(--gold-2);
}
.gift-rewards { display: flex; flex-direction: column; gap: 5px; font-size: .82rem; color: var(--text-2); }
.gift-rewards span { display: flex; justify-content: space-between; gap: 12px; }
.gift-rewards b { color: var(--gold); }

/* =========================================================================
   Huong dan
   ========================================================================= */
.guide-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.guide-side {
    position: sticky;
    top: calc(var(--head-h) + 18px);
    padding: 17px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
}
.guide-side h4 { margin-bottom: .7em; font-size: .8rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold-dim); }
.guide-side a {
    display: block;
    padding: 8px 11px;
    font-size: .85rem;
    color: var(--text-2);
    border-radius: var(--r-sm);
    border-left: 2px solid transparent;
}
.guide-side a:hover, .guide-side a.is-active {
    color: var(--gold-2);
    background: rgba(224, 176, 85, .07);
    border-left-color: var(--gold);
}

.guide-body h2 { padding-top: 12px; margin-top: 30px; }
.guide-body h2:first-child { margin-top: 0; }
.guide-body h3 { margin-top: 22px; color: var(--gold-2); }
.guide-body p, .guide-body li { color: var(--text-2); }
.guide-body li { margin-bottom: .4em; }
.guide-body code {
    padding: 2px 7px;
    font-size: .86em;
    color: var(--gold-2);
    background: rgba(0, 0, 0, .38);
    border: 1px solid var(--line);
    border-radius: 4px;
}
.guide-body kbd {
    padding: 2px 8px;
    font-family: var(--font);
    font-size: .82em;
    color: var(--text);
    background: var(--panel-3);
    border: 1px solid var(--line-2);
    border-bottom-width: 2px;
    border-radius: 4px;
}

.step-list { counter-reset: st; list-style: none; padding: 0; }
.step-list > li {
    position: relative;
    padding: 0 0 22px 46px;
    counter-increment: st;
}
.step-list > li::before {
    content: counter(st);
    position: absolute;
    left: 0; top: 0;
    display: grid;
    place-items: center;
    width: 30px; height: 30px;
    font-family: var(--font-d);
    font-size: .85rem;
    font-weight: 700;
    color: #22180a;
    background: linear-gradient(150deg, var(--gold-2), var(--gold-dim));
    border-radius: 50%;
}
.step-list > li::after {
    content: '';
    position: absolute;
    left: 15px; top: 34px; bottom: 6px;
    width: 1px;
    background: linear-gradient(180deg, var(--line-2), transparent);
}
.step-list > li:last-child { padding-bottom: 0; }
.step-list > li:last-child::after { display: none; }
.step-list h3 { margin: 3px 0 .35em; font-size: 1.04rem; color: var(--text); }

/* Cau hoi thuong gap */
.faq details {
    padding: 15px 18px;
    margin-bottom: 10px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
}
.faq summary {
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    flex-shrink: 0;
    font-family: var(--font-d);
    font-size: 1.2rem;
    color: var(--gold);
    transition: transform .22s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { color: var(--gold-2); margin-bottom: 10px; }
.faq p { margin: 0; font-size: .885rem; color: var(--text-2); }

/* =========================================================================
   Tai game
   ========================================================================= */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl-card { text-align: center; padding: 28px 22px; }
.dl-ico {
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    color: var(--gold);
    background: radial-gradient(circle at 34% 30%, var(--panel-3), #120e08);
    border: 1px solid var(--line-2);
    border-radius: 14px;
}
.dl-ico svg { width: 26px; height: 26px; }
.dl-card h3 { margin-bottom: .25em; }
.dl-card .dl-ver { display: block; margin-bottom: 16px; font-size: .78rem; color: var(--text-3); }

/* =========================================================================
   Trang admin
   ========================================================================= */
.adm-layout { display: grid; grid-template-columns: 236px 1fr; gap: 24px; align-items: start; }
.adm-side {
    position: sticky;
    top: calc(var(--head-h) + 18px);
    padding: 15px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
}
.adm-side h4 {
    margin: 14px 0 .6em;
    font-size: .72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold-dim);
}
.adm-side h4:first-child { margin-top: 0; }
.adm-side a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    font-size: .855rem;
    color: var(--text-2);
    border-radius: var(--r-sm);
}
.adm-side a svg { width: 16px; height: 16px; flex-shrink: 0; }
.adm-side a:hover { background: rgba(224, 176, 85, .07); color: var(--text); }
.adm-side a.is-active { color: var(--gold-2); background: rgba(224, 176, 85, .11); }

.adm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}
.adm-head h1 { margin: 0; font-size: 1.55rem; }

/* Cot noi dung ben phai sidebar - min-width: 0 de bang rong khong pha grid */
.adm-main { min-width: 0; }

.row-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.inline-form { display: inline; }

/* --- Modal dung cho cong coin / doi mat khau --- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(6, 4, 2, .74);
    backdrop-filter: blur(3px);
}
.modal.is-open { display: grid; }
.modal-box {
    width: 100%;
    max-width: 430px;
    max-height: 88vh;
    overflow-y: auto;
    animation: modalIn .22s ease;
}
.modal-box h3 { margin-bottom: .3em; font-size: 1.15rem; }
.modal-box > p { font-size: .87rem; }
.modal-act { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }

@keyframes modalIn {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 24px; }
.kpi {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 19px;
    background: linear-gradient(150deg, var(--panel-2), #171208);
    border: 1px solid var(--line);
    border-radius: var(--r);
}
.kpi-ico {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    flex-shrink: 0;
    color: var(--gold);
    background: rgba(224, 176, 85, .1);
    border-radius: 11px;
}
.kpi-ico svg { width: 20px; height: 20px; }
.kpi-body b {
    display: block;
    font-family: var(--font-d);
    font-size: 1.4rem;
    color: var(--text);
    line-height: 1.2;
}
.kpi-body span { font-size: .76rem; color: var(--text-3); }
.kpi.k-jade .kpi-ico  { color: var(--jade);  background: rgba(72,185,138,.12); }
.kpi.k-azure .kpi-ico { color: var(--azure); background: rgba(74,159,212,.12); }
.kpi.k-blood .kpi-ico { color: #e0664c;      background: rgba(200,69,47,.12); }

.adm-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 11px;
    margin-bottom: 18px;
}
.adm-bar .field { margin: 0; }
.adm-bar .input, .adm-bar .select { min-width: 168px; }

/* =========================================================================
   Phan trang
   ========================================================================= */
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.pager a, .pager span {
    min-width: 38px;
    padding: 8px 12px;
    text-align: center;
    font-size: .85rem;
    color: var(--text-2);
    background: rgba(0, 0, 0, .28);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
}
.pager a:hover { color: var(--gold-2); border-color: var(--line-2); background: rgba(224,176,85,.08); }
.pager .is-active {
    color: #22180a;
    font-weight: 600;
    background: linear-gradient(150deg, var(--gold-2), var(--gold-dim));
    border-color: var(--gold);
}
.pager .is-off { opacity: .4; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-foot {
    margin-top: 70px;
    padding-top: 46px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .45));
    border-top: 1px solid var(--line);
}
.foot-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.15fr;
    gap: 34px;
    padding-bottom: 34px;
}
.foot-brand .brand-mark { margin-bottom: 12px; }
.foot-brand strong {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-d);
    font-size: 1.04rem;
    color: var(--gold-2);
}
.foot-brand p { font-size: .84rem; color: var(--text-3); }
.foot-social { display: flex; gap: 9px; }
.foot-social a {
    padding: 6px 14px;
    font-size: .8rem;
    background: rgba(224, 176, 85, .07);
    border: 1px solid var(--line);
    border-radius: 999px;
}
.foot-social a:hover { background: rgba(224, 176, 85, .16); border-color: var(--line-2); }

.foot-col h4 {
    margin-bottom: .85em;
    font-size: .78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold-dim);
}
.foot-col a {
    display: block;
    padding: 4px 0;
    font-size: .855rem;
    color: var(--text-2);
}
.foot-col a:hover { color: var(--gold-2); }

.foot-sv {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: .845rem;
    color: var(--text-2);
}
.foot-sv em { font-size: .74rem; font-style: normal; color: var(--text-3); margin-left: auto; }

.foot-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 17px 20px;
    border-top: 1px solid var(--line);
}
.foot-bottom p { margin: 0; font-size: .79rem; color: var(--text-3); }
.foot-note { color: var(--gold-dim) !important; }

/* Nut len dau trang */
.to-top {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 150;
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    color: #22180a;
    background: linear-gradient(150deg, var(--gold-2), var(--gold-dim));
    border: 0;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .45);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .24s ease, transform .24s ease, visibility .24s;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }

/* =========================================================================
   Hieu ung xuat hien
   ========================================================================= */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1040px) {
    .hero-grid   { grid-template-columns: 1fr; gap: 38px; }
    .hero        { min-height: auto; }
    .g-side,
    .guide-layout,
    .adm-layout  { grid-template-columns: 1fr; }
    .guide-side,
    .adm-side    { position: static; }
    .adm-side a  { display: inline-flex; }
    .foot-grid   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed;
        top: var(--head-h);
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: calc(100vh - var(--head-h));
        padding: 14px 20px 22px;
        overflow-y: auto;
        background: rgba(10, 7, 5, .985);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line-2);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .22s ease, transform .22s ease, visibility .22s;
    }
    .main-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
    .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .main-nav > ul a { padding: 12px 14px; font-size: .95rem; }
    .main-nav > ul a::after { display: none; }
    .head-actions {
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid var(--line);
    }
    .head-actions .btn { flex: 1; }
    .user-chip { width: 100%; }
    .user-chip-btn { width: 100%; border-radius: var(--r-sm); }
    .user-chip-info { flex: 1; }
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 8px;
        box-shadow: none;
        display: none;
    }
    .user-chip.is-open .dropdown { display: block; }

    .g-3, .g-4, .stat-row, .kpi-row, .dl-grid { grid-template-columns: repeat(2, 1fr); }
    .sec { padding: 46px 0; }
}

@media (max-width: 640px) {
    body { font-size: 15px; }
    .wrap { padding: 0 15px; }
    .g-2, .g-3, .g-4,
    .stat-row, .kpi-row, .dl-grid,
    .form-row, .sv-picker,
    .foot-grid { grid-template-columns: 1fr; }
    .panel { padding: 19px; }
    .hero { padding-top: calc(var(--head-h) + 32px); }
    .hero-stats { gap: 20px; }
    .hero-stats b { font-size: 1.45rem; }
    .hero-cta .btn { width: 100%; }

    .podium { grid-template-columns: 1fr; }
    .podium-item.p1, .podium-item.p2, .podium-item.p3 { order: 0; padding-top: 22px; }

    .acc-head { flex-direction: column; text-align: center; }
    .acc-badges { justify-content: center; }
    .gift-form { flex-direction: column; }
    .bank-line { flex-wrap: wrap; }
    .sv-card { flex-wrap: wrap; }
    .sv-act { width: 100%; }
    .sv-act .btn { width: 100%; }
    .foot-bottom { flex-direction: column; text-align: center; }
}

/* ---------- Ton trong tuy chon giam chuyen dong ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- In ---------- */
@media print {
    .site-head, .site-foot, .to-top, .bg-layer, .nav-toggle { display: none !important; }
    body { padding-top: 0; background: #fff; color: #000; }
}

/* =========================================================================
   Tien Mon 2026 - giao dien tu tien Trung Hoa
   ========================================================================= */
:root {
    --bg: #06110f;
    --bg-2: #091a17;
    --panel: #0c211c;
    --panel-2: #102a23;
    --panel-3: #17382e;
    --gold: #dcb65f;
    --gold-2: #f5dea0;
    --gold-dim: #99753a;
    --jade: #50c69b;
    --text: #f3ead8;
    --text-2: #c3b9a4;
    --text-3: #857e70;
    --line: rgba(218, 184, 104, .2);
    --line-2: rgba(234, 205, 134, .44);
    --r-sm: 5px;
    --r: 12px;
    --r-lg: 20px;
    --sh: 0 12px 34px rgba(0, 0, 0, .42);
    --sh-lg: 0 26px 70px rgba(0, 0, 0, .58);
    --font-d: 'Noto Serif', 'Times New Roman', serif;
    --font-cn: 'Noto Serif SC', 'Noto Serif', serif;
    --head-h: 78px;
}

body {
    background:
        radial-gradient(circle at 50% -12%, rgba(70, 137, 111, .17), transparent 36rem),
        linear-gradient(180deg, #071512 0%, #06100e 56%, #040b0a 100%);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: .28;
    background-image:
        linear-gradient(30deg, transparent 48%, rgba(245, 222, 160, .025) 49%, rgba(245, 222, 160, .025) 51%, transparent 52%),
        linear-gradient(-30deg, transparent 48%, rgba(80, 198, 155, .018) 49%, rgba(80, 198, 155, .018) 51%, transparent 52%);
    background-size: 58px 100px;
}

.bg-layer {
    background:
        radial-gradient(820px 520px at -5% 18%, rgba(21, 111, 83, .2), transparent 72%),
        radial-gradient(880px 560px at 104% 72%, rgba(145, 101, 39, .14), transparent 72%);
}
.bg-glow { opacity: .18; }
.bg-ink { opacity: .25; }

/* Dau trang nhu cong tien mon */
.site-head {
    height: var(--head-h);
    background: linear-gradient(180deg, rgba(4, 18, 15, .96), rgba(6, 20, 17, .86));
    border-bottom-color: rgba(231, 200, 126, .3);
    box-shadow: 0 7px 28px rgba(0, 0, 0, .24);
}
.site-head::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 3px;
    background: linear-gradient(90deg, transparent 4%, var(--gold-dim) 26%, var(--gold-2) 50%, var(--gold-dim) 74%, transparent 96%);
    opacity: .55;
}
.head-ornament {
    position: absolute;
    top: 50%;
    width: 180px;
    height: 46px;
    opacity: .16;
    transform: translateY(-50%);
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold-dim);
    pointer-events: none;
}
.head-ornament-left { left: -110px; transform: translateY(-50%) skewX(-35deg); }
.head-ornament-right { right: -110px; transform: translateY(-50%) skewX(35deg); }
.head-inner { gap: 24px; }

.brand-mark {
    width: 48px;
    height: 48px;
    color: var(--gold-2);
    background:
        radial-gradient(circle at 38% 30%, rgba(80, 198, 155, .38), transparent 38%),
        linear-gradient(145deg, #183c31, #071b17);
    border: 1px solid var(--gold-dim);
    border-radius: 50% 50% 46% 46%;
    box-shadow: 0 0 0 3px rgba(7, 27, 23, .9), 0 0 0 4px rgba(220, 182, 95, .2), 0 7px 22px rgba(0,0,0,.5);
}
.brand-mark i {
    font-family: var(--font-cn);
    font-style: normal;
    text-shadow: 0 2px 10px rgba(245, 222, 160, .3);
}
.brand-text strong {
    font-family: var(--font-d);
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: 1px;
}
.brand-text small {
    margin-top: 5px;
    color: #83aa96;
    font-size: .57rem;
    letter-spacing: 2.5px;
}
.main-nav > ul { gap: 4px; }
.main-nav > ul a {
    padding: 11px 12px;
    font-family: var(--font-d);
    font-size: .84rem;
    letter-spacing: .2px;
    border-radius: 3px 11px 3px 11px;
}
.main-nav > ul a:hover { background: rgba(80, 198, 155, .08); }
.main-nav > ul a::after { bottom: 2px; }

/* Nut lenh bai */
.btn {
    min-height: 42px;
    border-radius: 4px 14px 4px 14px;
    letter-spacing: .3px;
}
.btn-primary {
    color: #17301f;
    background: linear-gradient(135deg, #f8e5ad 0%, #deb762 42%, #b38435 100%);
    border-color: rgba(255, 239, 190, .66);
    box-shadow: 0 5px 20px rgba(193, 142, 52, .26), inset 0 1px 0 rgba(255,255,255,.58);
}
.btn-primary::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #496e4e;
    box-shadow: 0 0 0 3px rgba(73, 110, 78, .14);
}
.btn-ghost {
    color: #d8c99f;
    background: linear-gradient(135deg, rgba(15, 48, 39, .72), rgba(7, 27, 23, .7));
    border-color: rgba(220, 182, 95, .42);
}
.btn-ghost:hover { background: rgba(80, 198, 155, .12); border-color: var(--gold-2); }

/* Khung ngoc tren moi trang */
.panel, .card, .sv-grid .sv-card, .feat-card, .notice-item, .class-chip, .cta-box {
    background:
        linear-gradient(135deg, rgba(255,255,255,.025), transparent 28%),
        linear-gradient(155deg, rgba(14, 48, 39, .94), rgba(5, 23, 19, .96));
    border-color: rgba(220, 182, 95, .25);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 16px 44px rgba(0,0,0,.32);
}
.panel::after, .cta-box::after {
    content: '';
    position: absolute;
    inset: 7px;
    pointer-events: none;
    border: 1px solid rgba(80, 198, 155, .08);
    border-radius: calc(var(--r-lg) - 6px);
}
.input, .select, .textarea {
    background-color: rgba(2, 14, 12, .62);
    border-color: rgba(163, 139, 83, .3);
}
.input:focus, .select:focus, .textarea:focus {
    background-color: rgba(2, 18, 15, .82);
    border-color: var(--jade);
    box-shadow: 0 0 0 3px rgba(80, 198, 155, .1), 0 0 24px rgba(80,198,155,.06);
}

/* Hero dung tranh rieng, chu ben trai va tien mon ben phai */
.hero {
    min-height: 880px;
    padding: calc(var(--head-h) + 88px) 0 92px;
    isolation: isolate;
}
.hero-bg {
    inset: 0;
    background-image: url('../img/bg/hero-tutien-v2.jpg');
    background-size: cover;
    background-position: center;
    filter: saturate(.92) contrast(1.03);
    transform: scale(1.015);
}
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 16, 14, .96) 0%, rgba(4, 20, 17, .84) 27%, rgba(6, 24, 20, .42) 49%, rgba(3, 13, 12, .06) 73%),
        linear-gradient(180deg, rgba(3, 14, 12, .48) 0%, transparent 22%, transparent 65%, #06110f 100%);
}
.hero-bg::after {
    background:
        radial-gradient(circle at 63% 18%, rgba(255, 224, 148, .16), transparent 24%),
        linear-gradient(180deg, transparent 62%, var(--bg) 100%);
}
.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
    align-items: center;
    gap: 50px;
}
.hero-copy {
    position: relative;
    max-width: 680px;
    padding: 42px 0 38px;
}
.hero-copy::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -35px -90px -35px -160px;
    background: radial-gradient(ellipse at 48% 50%, rgba(3, 18, 15, .72), transparent 72%);
    pointer-events: none;
}
.hero-copy .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 21px;
    padding: 7px 16px;
    color: #bce5ce;
    font-family: var(--font-d);
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    background: linear-gradient(90deg, rgba(43, 118, 91, .22), rgba(14, 51, 42, .1));
    border-left: 2px solid var(--jade);
    border-right: 1px solid rgba(220, 182, 95, .36);
}
.hero-title {
    margin: 0 0 18px;
    font-family: var(--font-d);
    font-size: clamp(4.4rem, 8vw, 7.4rem);
    font-weight: 900;
    line-height: .86;
    letter-spacing: -3px;
    color: #f6edda;
    text-shadow: 0 3px 0 rgba(0,0,0,.28), 0 12px 48px rgba(0,0,0,.55);
}
.hero-title .grad {
    display: inline-block;
    padding-bottom: .12em;
    background: linear-gradient(112deg, #fff4cf 0%, #edcc7b 34%, #c9953d 65%, #f5dea0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 8px 24px rgba(145, 91, 20, .2));
}
.hero-oath {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 12px;
    color: var(--jade);
    font-family: var(--font-d);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1.3px;
}
.hero-oath i { width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold); }
.hero-sub {
    max-width: 600px;
    margin-bottom: 30px;
    color: #d4cec0;
    font-size: 1.03rem;
    line-height: 1.8;
    text-shadow: 0 2px 12px #03100d;
}
.hero-cta { margin-bottom: 36px; }
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(92px, 1fr));
    gap: 0;
    max-width: 650px;
    padding: 20px 0 0;
    list-style: none;
    border-top: 1px solid rgba(220, 182, 95, .28);
}
.hero-stats li {
    position: relative;
    padding: 0 18px;
    line-height: 1.3;
}
.hero-stats li:first-child { padding-left: 0; }
.hero-stats li + li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 1px;
    height: 31px;
    background: linear-gradient(transparent, rgba(220,182,95,.35), transparent);
}
.hero-stats strong {
    display: block;
    color: var(--gold-2);
    font-family: var(--font-d);
    font-size: 1.45rem;
}
.hero-stats span { color: #9da99e; font-size: .7rem; text-transform: uppercase; letter-spacing: .8px; }
.hero-art { display: flex; align-items: flex-end; justify-content: flex-end; min-height: 420px; }
.hero-seal {
    position: relative;
    display: grid;
    place-items: center;
    width: 190px;
    height: 190px;
    margin: 0 4% 2% 0;
    color: rgba(246, 225, 168, .86);
    background: radial-gradient(circle, rgba(23, 82, 64, .65), rgba(7, 31, 26, .2) 62%, transparent 64%);
    border: 1px solid rgba(234, 205, 134, .38);
    border-radius: 50%;
    box-shadow: 0 0 48px rgba(71, 187, 142, .16), inset 0 0 36px rgba(220,182,95,.12);
    backdrop-filter: blur(2px);
}
.seal-char { font-family: var(--font-cn); font-size: 5rem; text-shadow: 0 0 28px rgba(245,222,160,.34); }
.seal-ring { position: absolute; inset: 12px; border: 1px dashed rgba(220,182,95,.38); border-radius: 50%; animation: sealSpin 26s linear infinite; }
.seal-ring-2 { inset: -12px; border-style: solid; border-color: rgba(80,198,155,.18); animation-direction: reverse; animation-duration: 34s; }
@keyframes sealSpin { to { transform: rotate(360deg); } }
.hero-fade { position: absolute; z-index: 1; left: 0; right: 0; bottom: -1px; height: 140px; background: linear-gradient(transparent, var(--bg)); }

/* Tieu de mang hoi hoa thu phap */
.section { position: relative; padding: 94px 0; }
.section + .section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(76vw, 920px);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(220,182,95,.28), transparent);
}
.section-tight { padding-top: 66px; padding-bottom: 66px; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(24, 64, 52, .18), transparent); }
.sec-head { max-width: 740px; margin: 0 auto 46px; text-align: center; }
.sec-sigil {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 0 auto 13px;
    color: var(--gold-2);
    font-family: var(--font-cn);
    font-size: 1.15rem;
    background: radial-gradient(circle, rgba(38, 101, 79, .55), rgba(7, 27, 22, .7));
    border: 1px solid var(--gold-dim);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
    box-shadow: 0 0 0 5px rgba(80,198,155,.035);
}
.sec-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--jade);
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: 3.2px;
    text-transform: uppercase;
}
.sec-title {
    margin-bottom: 12px;
    color: #f1dfb4;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    text-shadow: 0 8px 32px rgba(0,0,0,.36);
}
.sec-desc { margin: 0 auto; color: var(--text-2); }

/* May chu */
.sv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.sv-grid .sv-card { display: block; padding: 28px; border-radius: 5px 24px 5px 24px; }
.sv-grid .sv-card::before { width: 4px; background: linear-gradient(var(--gold-2), var(--jade), transparent); }
.sv-grid .sv-card:hover { transform: translateY(-5px); box-shadow: 0 24px 60px rgba(0,0,0,.42); }
.sv-top { display: flex; align-items: center; gap: 14px; margin-bottom: 23px; }
.sv-id {
    display: grid;
    place-items: center;
    width: 50px; height: 50px;
    color: #0a241b;
    font-family: var(--font-d);
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(145deg, var(--gold-2), #b78837);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(220,182,95,.08);
}
.sv-grid .sv-name { display: block; flex: 1; }
.sv-grid .sv-name h3 { margin: 0; color: #f5e7c6; font-size: 1.26rem; }
.sv-grid .sv-name p { margin: 4px 0 0; color: var(--jade); font-size: .78rem; letter-spacing: .8px; }
.sv-state { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid rgba(80,198,155,.24); border-radius: 999px; font-size: .7rem; color: #bce4d2; }
.sv-state.off { color: var(--text-3); border-color: rgba(255,255,255,.08); }
.sv-grid .sv-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 20px; }
.sv-grid .sv-meta > div { padding: 11px 8px; text-align: center; background: rgba(0,0,0,.2); border: 1px solid rgba(220,182,95,.1); }
.sv-grid .sv-meta dt { margin-bottom: 3px; color: var(--text-3); font-size: .65rem; }
.sv-grid .sv-meta dd { margin: 0; color: var(--gold-2); font-family: var(--font-d); font-weight: 700; }
.sv-load { margin-bottom: 20px; }
.sv-load-bar { height: 5px; overflow: hidden; background: rgba(0,0,0,.34); border-radius: 999px; }
.sv-load-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--jade), var(--gold)); box-shadow: 0 0 12px rgba(80,198,155,.3); }
.sv-load small { display: block; margin-top: 5px; color: var(--text-3); font-size: .65rem; text-align: right; }
.sv-top-list { padding: 17px; margin-bottom: 20px; background: rgba(2, 15, 12, .34); border: 1px solid rgba(80,198,155,.1); }
.sv-top-list h4 { margin: 0 0 11px; color: var(--gold); font-size: .78rem; letter-spacing: 1.2px; text-transform: uppercase; }
.sv-top-list ol { margin: 0; padding: 0; list-style: none; }
.sv-top-list li { display: grid; grid-template-columns: 24px 1fr auto auto; align-items: center; gap: 9px; padding: 7px 0; font-size: .76rem; border-top: 1px solid rgba(255,255,255,.04); }
.sv-top-list li:first-child { border-top: 0; }
.sv-top-list .rk { display: grid; place-items: center; width: 21px; height: 21px; color: #0c1d17; background: var(--gold); border-radius: 50%; font-weight: 800; }
.sv-top-list .nm { color: var(--text); font-weight: 600; }
.sv-top-list .cls { color: var(--c, var(--jade)); }
.sv-top-list .lv { color: var(--gold-2); }
.sv-empty { min-height: 76px; color: var(--text-3); font-size: .84rem; }
.sv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Thong bao, tinh nang, mon phai */
.notice-list { display: grid; gap: 12px; max-width: 940px; margin: 0 auto; }
.notice-item { position: relative; display: flex; align-items: flex-start; gap: 15px; padding: 18px 22px; border-radius: 3px 14px 3px 14px; }
.notice-item p { margin: 0; color: var(--text-2); }
.notice-tag { flex-shrink: 0; padding: 3px 9px; color: #143327; background: var(--gold); font-size: .64rem; font-weight: 800; text-transform: uppercase; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-card { position: relative; min-height: 210px; padding: 28px 25px; overflow: hidden; border-radius: 4px 20px 4px 20px; transition: transform .25s ease, border-color .25s ease; }
.feat-card::after { content: '◆'; position: absolute; right: -8px; bottom: -28px; color: rgba(220,182,95,.055); font-size: 7rem; }
.feat-card:hover { transform: translateY(-5px); border-color: rgba(220,182,95,.48); }
.feat-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 17px; color: var(--gold-2); font-size: 1.45rem; background: rgba(80,198,155,.1); border: 1px solid rgba(80,198,155,.2); border-radius: 50%; }
.feat-card h3 { position: relative; z-index: 1; color: #f0dfb9; font-size: 1.04rem; }
.feat-card p { position: relative; z-index: 1; margin: 0; color: var(--text-2); font-size: .84rem; }
.class-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 980px; margin: 0 auto; }
.class-chip { display: flex; align-items: center; gap: 13px; min-height: 64px; padding: 14px 18px; border-left: 2px solid var(--c, var(--jade)); border-radius: 3px 15px 3px 15px; }
.class-dot { width: 11px; height: 11px; transform: rotate(45deg); background: var(--c, var(--jade)); box-shadow: 0 0 15px var(--c, var(--jade)); }
.class-chip strong { color: #e9dfcb; font-family: var(--font-d); font-size: .9rem; }

.cta-final { padding-top: 62px; }
.cta-box { position: relative; max-width: 920px; margin: 0 auto; padding: 58px 38px; text-align: center; overflow: hidden; border-radius: 5px 32px 5px 32px; }
.cta-box::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0, rgba(220,182,95,.14), transparent 52%); pointer-events: none; }
.cta-seal { position: relative; display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 18px; color: var(--gold-2); font-family: var(--font-cn); font-size: 1.35rem; border: 1px solid var(--gold-dim); border-radius: 50%; }
.cta-box h2 { position: relative; color: #f4dfad; font-size: clamp(1.75rem, 4vw, 2.65rem); }
.cta-box p { position: relative; max-width: 620px; margin: 0 auto 26px; color: var(--text-2); }
.cta-actions { position: relative; display: flex; justify-content: center; gap: 12px; }

/* Footer va lien he Zalo */
.site-foot {
    position: relative;
    padding-top: 68px;
    background:
        radial-gradient(600px 230px at 50% 0, rgba(49, 117, 91, .1), transparent 70%),
        linear-gradient(180deg, rgba(3, 13, 11, .1), #030a09 45%);
    border-top-color: rgba(220,182,95,.25);
}
.site-foot::before { content: '雲  ·  龍  ·  道'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 4px 22px; color: var(--gold-dim); font-family: var(--font-cn); letter-spacing: 8px; background: var(--bg); border: 1px solid var(--line); }
.foot-zalo { color: #8bd8ff !important; border-color: rgba(65,176,255,.28) !important; }
.zalo-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 220;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 286px;
    padding: 10px 13px 10px 10px;
    color: #eefaff;
    background: linear-gradient(140deg, rgba(11, 57, 85, .97), rgba(4, 31, 47, .98));
    border: 1px solid rgba(92, 198, 255, .45);
    border-radius: 8px 22px 8px 22px;
    box-shadow: 0 16px 48px rgba(0,0,0,.48), 0 0 24px rgba(0,145,218,.13);
    backdrop-filter: blur(12px);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.zalo-float:hover { color: #fff; transform: translateY(-4px); border-color: #85d8ff; box-shadow: 0 20px 54px rgba(0,0,0,.54), 0 0 32px rgba(0,145,218,.24); }
.zalo-orb { position: relative; display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; color: #fff; background: linear-gradient(145deg, #2bb8ff, #0876d1); border: 2px solid rgba(255,255,255,.78); border-radius: 50%; box-shadow: 0 0 0 5px rgba(31,166,235,.1); }
.zalo-orb b { font-family: Arial, sans-serif; font-size: 1.4rem; }
.zalo-orb i { position: absolute; inset: -7px; border: 1px solid rgba(71,192,255,.38); border-radius: 50%; animation: zaloPulse 1.8s ease-out infinite; }
@keyframes zaloPulse { 0% { transform: scale(.82); opacity: .9; } 100% { transform: scale(1.32); opacity: 0; } }
.zalo-copy { display: flex; flex: 1; flex-direction: column; line-height: 1.25; }
.zalo-copy small { color: #78d4aa; font-size: .64rem; letter-spacing: .5px; }
.zalo-copy strong { margin: 2px 0; color: #fff; font-family: var(--font-d); font-size: .88rem; }
.zalo-copy em { color: #a8c6d3; font-size: .63rem; font-style: normal; }
.zalo-arrow { width: 17px; height: 17px; color: #7dcfff; }
.to-top { right: 26px; bottom: 104px; color: #113023; background: linear-gradient(145deg, var(--gold-2), #ac7f31); }

@media (max-width: 1040px) {
    .hero { min-height: 800px; }
    .hero-inner { grid-template-columns: 1fr .58fr; gap: 20px; }
    .hero-title { font-size: clamp(4rem, 8.8vw, 6.4rem); }
    .hero-seal { width: 145px; height: 145px; }
    .seal-char { font-size: 3.8rem; }
    .feat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .site-head { background: rgba(4, 18, 15, .97); }
    .main-nav { background: rgba(4, 18, 15, .99); }
    .hero { min-height: 760px; padding-top: calc(var(--head-h) + 62px); }
    .hero-bg { background-position: 62% center; }
    .hero-bg::before { background: linear-gradient(90deg, rgba(3,16,14,.97), rgba(4,20,17,.79) 52%, rgba(3,14,12,.28)); }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-copy { max-width: 650px; }
    .hero-art { display: none; }
    .sv-grid { grid-template-columns: 1fr; }
    .class-grid { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 72px 0; }
}

@media (max-width: 640px) {
    :root { --head-h: 70px; }
    .brand-mark { width: 42px; height: 42px; }
    .brand-text strong { font-size: .92rem; }
    .brand-text small { font-size: .5rem; letter-spacing: 1.5px; }
    .hero { min-height: 710px; padding: calc(var(--head-h) + 48px) 0 64px; }
    .hero-bg { background-position: 66% center; }
    .hero-bg::before { background: linear-gradient(90deg, rgba(3,16,14,.95), rgba(4,20,17,.72) 70%, rgba(3,14,12,.38)); }
    .hero-copy { padding: 20px 0; }
    .hero-copy .eyebrow { font-size: .6rem; letter-spacing: 1.3px; }
    .hero-title { font-size: clamp(3.15rem, 16vw, 4.65rem); letter-spacing: -2px; }
    .hero-sub { font-size: .92rem; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
    .hero-stats li:nth-child(3) { padding-left: 0; }
    .hero-stats li:nth-child(3)::before { display: none; }
    .sv-grid .sv-card { padding: 21px 18px; }
    .sv-top { align-items: flex-start; flex-wrap: wrap; }
    .sv-state { margin-left: 64px; }
    .sv-grid .sv-meta { grid-template-columns: repeat(2, 1fr); }
    .sv-top-list .cls { display: none; }
    .sv-top-list li { grid-template-columns: 24px 1fr auto; }
    .sv-actions, .feat-grid, .class-grid { grid-template-columns: 1fr; }
    .notice-item { flex-direction: column; }
    .cta-box { padding: 44px 21px; }
    .cta-actions { flex-direction: column; }
    .zalo-float { right: 14px; bottom: 14px; min-width: 0; width: 58px; height: 58px; padding: 5px; border-radius: 50%; }
    .zalo-orb { width: 46px; height: 46px; }
    .zalo-copy, .zalo-arrow { display: none; }
    .to-top { right: 20px; bottom: 82px; width: 40px; height: 40px; }
}

@media print {
    .zalo-float { display: none !important; }
}
