/* ============================================================
   HX ADMIN V3 • GIAO DIỆN XANH DƯƠNG CÔNG NGHỆ (11/2026)
   Nạp SAU CÙNG: đổi màu, khung, hiệu ứng cho mọi trang.
   Trang Tổng quan mới: hx_v3_overview.js • Màn hình chờ + âm thanh: hx_v3_fx.js
   Muốn quay lại giao diện cũ: xoá 3 dòng hx_v3 trong index.html.
   ============================================================ */
:root, [data-theme="dark"] {
  --bg: #050a14;
  --card: rgba(12, 22, 42, 0.66);
  --card-solid: #0c1730;
  --line: rgba(148, 190, 255, 0.10);
  --soft: rgba(255, 255, 255, 0.05);
  --input: rgba(255, 255, 255, 0.04);
  --inputb: rgba(148, 190, 255, 0.16);
  --raised: rgba(255, 255, 255, 0.035);
  --raisedb: rgba(148, 190, 255, 0.10);
  --btn: rgba(255, 255, 255, 0.045);
  --btnb: rgba(148, 190, 255, 0.18);
  --track: rgba(255, 255, 255, 0.08);
  --grid: rgba(255, 255, 255, 0.06);
  --side: rgba(9, 17, 34, 0.7);
  --text: #eef5ff;
  --muted: #94a6c6;
  --dim: #6b7d9c;
  --blue: #3b82f6;
  --blue2: #2563eb;
  --bluet: #7dd3fc;
  --gold: #fbbf24;
  --goldt: #fcd34d;
  --mint: #34d399;
  --mintt: #6ee7b7;
  --cyan: #22d3ee;
  --red: #fb7185;
  --redt: #fda4af;
  --hxg: linear-gradient(135deg, #22d3ee 0%, #3b82f6 55%, #6366f1 100%);
  --hxg-soft: linear-gradient(135deg, rgba(34, 211, 238, .12), rgba(99, 102, 241, .14));
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 40px rgba(0, 0, 0, 0.35);
  --glow1: rgba(59, 130, 246, 0.24);
  --glow2: rgba(34, 211, 238, 0.12);
  --gridline: transparent;
  --dotc: rgba(255, 255, 255, 0.06);
  --tab: rgba(9, 17, 34, 0.92);
  --overlay: rgba(2, 6, 14, 0.68);
  --term: #030812;
}
[data-theme="light"] {
  --bg: #f2f6fc;
  --card: rgba(255, 255, 255, 0.86);
  --card-solid: #ffffff;
  --line: rgba(15, 40, 90, 0.09);
  --soft: rgba(15, 40, 90, 0.05);
  --input: #ffffff;
  --inputb: rgba(15, 40, 90, 0.14);
  --raised: #f8fafd;
  --raisedb: rgba(15, 40, 90, 0.08);
  --btn: #ffffff;
  --btnb: rgba(15, 40, 90, 0.14);
  --track: rgba(15, 40, 90, 0.08);
  --side: rgba(255, 255, 255, 0.84);
  --text: #0b1530;
  --muted: #55657f;
  --dim: #7b8aa3;
  --blue: #2563eb;
  --blue2: #1d4ed8;
  --bluet: #1d4ed8;
  --gold: #f59e0b;
  --goldt: #a16207;
  --mint: #10b981;
  --mintt: #047857;
  --cyan: #0891b2;
  --red: #e11d48;
  --redt: #be123c;
  --hxg-soft: linear-gradient(135deg, rgba(34, 211, 238, .10), rgba(99, 102, 241, .10));
  --shadow: 0 1px 2px rgba(15, 40, 90, 0.04), 0 14px 34px rgba(15, 40, 90, 0.08);
  --glow1: rgba(59, 130, 246, 0.14);
  --glow2: rgba(34, 211, 238, 0.10);
  --tab: rgba(255, 255, 255, 0.95);
  --overlay: rgba(11, 21, 48, 0.36);
}

/* ---------- nền: cực quang + lưới công nghệ + tia quét ---------- */
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 600px at 85% -10%, var(--glow1), transparent 60%),
    radial-gradient(800px 560px at -5% 105%, var(--glow2), transparent 60%);
  background-size: auto; background-attachment: fixed;
}
.hx3-grid { position: fixed; inset: 0; z-index: 0; pointer-events: none; background-image: linear-gradient(rgba(59, 130, 246, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(59, 130, 246, .055) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask: radial-gradient(ellipse at 55% 25%, #000 30%, transparent 75%); mask: radial-gradient(ellipse at 55% 25%, #000 30%, transparent 75%); }
.hx3-scan { position: fixed; left: 0; right: 0; top: 0; height: 140px; z-index: 0; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(59, 130, 246, .07), transparent); animation: hx3scan 9s linear infinite; will-change: transform; }
@keyframes hx3scan { from { transform: translateY(-160px); } to { transform: translateY(100vh); } }
[data-theme="light"] .hx3-scan { display: none; }
.app { position: relative; z-index: 1; }
::selection { background: rgba(59, 130, 246, 0.35); }
:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
.d, .big, .bt, .ct { font-family: "Space Grotesk", "Be Vietnam Pro", system-ui, sans-serif; }

/* ---------- logo ---------- */
.logo-img { border-radius: 14px; box-shadow: 0 10px 26px rgba(59, 130, 246, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.bs { letter-spacing: .2em; font-size: 10.5px; background: var(--hxg); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }

/* ---------- thẻ kính + đèn soi theo chuột + góc HUD ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: border-color .3s, transform .35s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; width: auto; height: auto; border: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, -400px) var(--my, -400px), rgba(34, 211, 238, .10), rgba(99, 102, 241, .05) 40%, transparent 65%);
}
.card::after {
  content: ""; position: absolute; left: 10px; top: 10px; right: auto; bottom: auto; width: 14px; height: 14px; border: 0; border-left: 2px solid rgba(125, 211, 252, .55); border-top: 2px solid rgba(125, 211, 252, .55); border-radius: 6px 0 0 0; pointer-events: none; opacity: .5; transition: all .4s var(--ease);
}
.card:hover::after { opacity: 1; width: 22px; height: 22px; }
.card:hover { border-color: rgba(59, 130, 246, 0.32); }
.card.click:hover { transform: translateY(-2px); }
.raised { border-radius: 16px; }
.ey { letter-spacing: .14em; font-weight: 700; font-size: 10.5px; color: var(--muted); }
.big { font-weight: 700; letter-spacing: -0.03em; }

/* ---------- nút ---------- */
.btn { border-radius: 12px; font-weight: 600; transition: transform .2s var(--ease), border-color .15s, background .15s, box-shadow .2s; }
.btn:hover { border-color: rgba(59, 130, 246, 0.6); background: rgba(59, 130, 246, 0.08); transform: translateY(-1px); }
.btn.pri, .btn.blue { background: var(--hxg); border-color: transparent; color: #fff; box-shadow: 0 10px 28px rgba(59, 130, 246, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn.pri:hover, .btn.blue:hover { filter: brightness(1.08); background: var(--hxg); }
.btn.ok { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.35); color: var(--mintt); }
.btn.no { border-color: rgba(251, 113, 133, 0.4); color: var(--redt); }
.btn.danger { background: linear-gradient(135deg, #fb7185, #e11d48); border-color: transparent; }
.ib { border-radius: 13px; background: var(--input); border-color: var(--inputb); transition: border-color .2s, transform .2s; }
.ib:hover { border-color: rgba(59, 130, 246, 0.6); color: var(--text); transform: translateY(-1px); }
.badge { background: var(--hxg); color: #fff; box-shadow: 0 0 0 2px var(--bg), 0 4px 12px rgba(59, 130, 246, 0.45); }
.p-blue { background: rgba(59, 130, 246, 0.14); color: var(--bluet); }
.c-blue { background: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(99, 102, 241, .2)); color: #bae6fd; }
[data-theme="light"] .c-blue { color: #1d4ed8; }
.ico { border-radius: 13px; }
.a0 { background: #7dd3fc; } .a1 { background: #fcd34d; } .a2 { background: #6ee7b7; } .a3 { background: #a5b4fc; } .a4 { background: #fdba74; } .a5 { background: #f9a8d4; }
.field { border-radius: 13px; }
.field:focus-within { border-color: #3b82f6 !important; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18); }
.sw.on { background: var(--hxg) !important; border-color: transparent !important; }
.seg { border-radius: 13px; }
.seg button.on, .seg .on { background: var(--hxg) !important; color: #fff !important; box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3); }

/* ---------- menu trái nổi + thanh trượt ---------- */
.side {
  width: 264px; margin: 14px 0 14px 14px; height: calc(100vh - 28px); top: 14px;
  border: 1px solid var(--line); border-radius: 26px; background: var(--side);
  backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: var(--shadow); padding: 20px 14px;
}
.side .brand { padding: 2px 8px 18px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.side-nav { position: relative; gap: 3px; }
.side .sec { font-size: 11px; letter-spacing: .12em; color: var(--dim); font-weight: 700; margin: 16px 12px 8px; }
.nav { position: relative; z-index: 1; height: 42px; border-radius: 13px; color: var(--muted); transition: color .3s, background .2s; }
.nav:hover { background: rgba(59, 130, 246, 0.08); color: var(--text); }
.nav.on { background: transparent; color: #fff; font-weight: 700; box-shadow: none; }
.hx3-pill { position: absolute; left: 0; right: 0; top: 0; height: 42px; border-radius: 13px; background: var(--hxg); box-shadow: 0 10px 26px rgba(59, 130, 246, 0.42), inset 0 1px 0 rgba(255, 255, 255, .22); transition: transform .55s var(--ease), height .3s, opacity .3s; z-index: 0; pointer-events: none; }
.side-nav.no-pill .hx3-pill { opacity: 0; }
.side-nav.no-pill .nav.on { background: var(--hxg); }
.nav .tag.hot { background: #fff; color: #0369a1; }
.bot-box { border-radius: 18px !important; background: var(--hxg-soft) !important; border: 1px solid rgba(59, 130, 246, 0.25) !important; }
.bot-box .bar i, .bar i.grad, .bar .grad { background: var(--hxg) !important; }

/* ---------- thanh trên nổi ---------- */
.top {
  margin: 14px 18px 0; height: 68px; padding: 0 14px 0 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--side);
  backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); box-shadow: var(--shadow);
  position: sticky; top: 14px; z-index: 30;
}
.top-date { border-radius: 13px; height: 42px; }
.me { border-radius: 14px; }
#meAvatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #3b82f6; }
.content { padding: 20px 18px 40px; gap: 18px; }
.menu { border-radius: 16px; background: var(--card-solid); border: 1px solid var(--line); }
.page-head h1, .page-head .tt { letter-spacing: -0.02em; }
.hx3-glitch { animation: hx3glitch .5s steps(2) 1; }
@keyframes hx3glitch { 0% { transform: translate(2px, 0); text-shadow: -2px 0 #22d3ee, 2px 0 #6366f1; } 50% { transform: translate(-1px, 1px); text-shadow: 2px 0 #22d3ee, -2px 0 #6366f1; } 100% { transform: none; text-shadow: none; } }
.content > * { animation: hx3rise .7s var(--ease) both; }
.content > *:nth-child(2) { animation-delay: .05s; } .content > *:nth-child(3) { animation-delay: .1s; } .content > *:nth-child(4) { animation-delay: .15s; } .content > *:nth-child(5) { animation-delay: .2s; }
@keyframes hx3rise { from { opacity: 0; transform: translateY(16px); } }

.sheet { border-radius: 26px 26px 0 0; background: var(--card-solid); border: 1px solid var(--line); }
@media (min-width: 900px) { .sheet { border-radius: 26px; } }
.toast { border-radius: 16px; }
.alert { border-radius: 14px; }
table tr:hover td { background: rgba(59, 130, 246, 0.05); }

/* ---------- điện thoại ---------- */
.tabbar { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); width: auto; border-radius: 24px; border: 1px solid var(--line); background: var(--tab); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); }
.tab { position: relative; z-index: 0; transition: color .3s; }
.tab.on { color: #fff; }
.tab.on::before { content: ""; position: absolute; inset: 6px 8%; border-radius: 16px; background: var(--hxg); z-index: -1; animation: hx3pop .35s var(--ease); }
@keyframes hx3pop { from { transform: scale(.7); opacity: 0; } }
@media (max-width: 899px) {
  .side { margin: 0; height: 100vh; top: 0; border-radius: 0; }
  .top { margin: 10px 10px 0; top: 10px; height: 62px; border-radius: 20px; }
  .content { padding: 14px 10px 110px; }
}

/* ---------- màn chào, đăng nhập, khoá ---------- */
.splash { background: var(--bg) !important; }
.splash-bar i { background: var(--hxg) !important; }
.showcase { position: relative; overflow: hidden; background: radial-gradient(600px 400px at 20% 20%, rgba(34, 211, 238, .22), transparent 65%), radial-gradient(600px 500px at 85% 80%, rgba(99, 102, 241, .3), transparent 65%), #060c1a !important; }
.showcase > *:not(canvas) { position: relative; z-index: 1; }
.hx3-plex { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.slogan h1 { background: linear-gradient(100deg, #fff 20%, #a5f3fc 35%, #a5b4fc 50%, #fff 65%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: hx3holo 6s linear infinite; }
@keyframes hx3holo { to { background-position: -250% 0; } }
.pk-btn { border-radius: 16px !important; }
.otp input:focus { border-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59, 130, 246, .18); }
.face-big { background: var(--hxg) !important; box-shadow: 0 16px 40px rgba(59, 130, 246, .45) !important; }

/* ---------- trang Tổng quan cũ (nếu còn dùng) ---------- */
.fx-p { clip-path: none !important; border-radius: 22px; }
.fx-p::before, .fx-p .crn { display: none; }

/* ============================================================
   TRANG TỔNG QUAN V3
   ============================================================ */
.v3 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.v3 > .card { padding: 20px; overflow: hidden; animation: hx3rise .8s var(--ease) both; }
.v3 .s12 { grid-column: span 12; } .v3 .s8 { grid-column: span 8; } .v3 .s7 { grid-column: span 7; } .v3 .s6 { grid-column: span 6; } .v3 .s5 { grid-column: span 5; } .v3 .s4 { grid-column: span 4; } .v3 .s3 { grid-column: span 3; }
.v3h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.v3h h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.v3h small { color: var(--muted); font-size: 13px; }
.v3h .sp { flex: 1; }
.v3tag { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: rgba(34, 211, 238, .1); color: #67e8f9; border: 1px solid rgba(34, 211, 238, .35); white-space: nowrap; }
.v3tag.live::before { content: "● "; animation: hx3blink 1.2s infinite; }
@keyframes hx3blink { 50% { opacity: .3; } }
.v3tag.warn { background: rgba(251, 191, 36, .12); color: #fcd34d; border-color: rgba(251, 191, 36, .35); }
.v3tag.ok { background: rgba(52, 211, 153, .12); color: #6ee7b7; border-color: rgba(52, 211, 153, .35); }
[data-theme="light"] .v3tag { color: #0e7490; } [data-theme="light"] .v3tag.warn { color: #92400e; } [data-theme="light"] .v3tag.ok { color: #047857; }
.v3seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--input); border: 1px solid var(--line); position: relative; }
.v3seg button { border: 0; background: none; padding: 6px 12px; border-radius: 9px; font-size: 13px; color: var(--muted); position: relative; z-index: 1; transition: color .3s; cursor: pointer; white-space: nowrap; }
.v3seg button.on { color: #fff; font-weight: 700; }
.v3seg i { position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: 9px; background: var(--hxg); transition: transform .45s var(--ease), width .45s var(--ease); }
/* hero */
.v3hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px minmax(0, .9fr); align-items: center; gap: 20px; min-height: 330px; }
.v3hello small { color: #67e8f9; font-weight: 600; font-size: 13px; }
[data-theme="light"] .v3hello small { color: #0e7490; }
.v3hello h2 { font-size: 34px; line-height: 1.1; margin: 8px 0; letter-spacing: -.03em; background: linear-gradient(100deg, var(--text) 20%, #7dd3fc 35%, #a5b4fc 50%, var(--text) 65%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: hx3holo 7s linear infinite; }
.v3hello p { color: var(--muted); margin: 0 0 18px; }
.v3acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v3acts .btn { justify-content: flex-start; }
.v3acts .cnt { margin-left: auto; background: rgba(255, 255, 255, .25); border-radius: 8px; padding: 0 7px; font-size: 12px; }
.v3core { position: relative; aspect-ratio: 1; width: 100%; max-width: 300px; justify-self: center; }
.v3core svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.v3core .mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.v3core .mid b { font: 700 52px/1 "Space Grotesk", system-ui, sans-serif; letter-spacing: -.04em; }
.v3core .mid small { color: var(--muted); }
.v3spin { transform-origin: 150px 150px; animation: hx3rot 24s linear infinite; }
.v3spin.r { animation-duration: 36s; animation-direction: reverse; }
@keyframes hx3rot { to { transform: rotate(360deg); } }
.v3arc { transition: stroke-dashoffset 1.4s var(--ease); }
.v3mini { display: flex; flex-direction: column; gap: 10px; }
.v3mi { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--raised); border: 1px solid var(--line); }
.v3mi svg { width: 46px; height: 46px; flex: none; }
.v3mi b { font: 700 22px "Space Grotesk", system-ui, sans-serif; letter-spacing: -.02em; }
.v3mi b span { font-size: 13px; color: var(--muted); font-weight: 500; }
.v3mi small { display: block; color: var(--muted); font-size: 12.5px; }
/* kpi */
.v3kpi { transition: transform .35s var(--ease), border-color .3s; }
.v3kpi:hover { transform: translateY(-4px); }
.v3kl { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 600; }
.v3ki { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; }
.v3ki.k0 { background: rgba(251, 191, 36, .14); color: #fbbf24; } .v3ki.k1 { background: rgba(34, 211, 238, .14); color: #22d3ee; } .v3ki.k2 { background: rgba(52, 211, 153, .14); color: #34d399; } .v3ki.k3 { background: rgba(129, 140, 248, .16); color: #818cf8; }
.v3big { font: 700 32px/1 "Space Grotesk", system-ui, sans-serif; letter-spacing: -.03em; margin: 12px 0 6px; }
.v3big small { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 4px; }
.v3cmp { font-size: 12.5px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; color: var(--muted); }
.v3sp { display: block; width: 100%; height: 46px; margin-top: 10px; }
.v3ft { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.v3draw { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: hx3draw 1.6s var(--ease) .3s forwards; }
@keyframes hx3draw { to { stroke-dashoffset: 0; } }
.v3fade { opacity: 0; animation: hx3fade .9s .9s forwards; }
@keyframes hx3fade { to { opacity: 1; } }
/* biểu đồ */
.v3fig { position: relative; height: 280px; }
.v3fig.tall { height: 250px; }
.v3fig svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.v3fig text { font: 12px "Be Vietnam Pro", system-ui, sans-serif; fill: var(--dim); }
.v3tip { position: absolute; pointer-events: none; padding: 8px 12px; border-radius: 12px; background: var(--card-solid); border: 1px solid var(--line); font-size: 12.5px; opacity: 0; transition: opacity .2s; white-space: nowrap; transform: translate(-50%, -125%); box-shadow: var(--shadow); z-index: 2; }
.v3tip b { font: 700 15px "Space Grotesk", system-ui, sans-serif; }
.v3big2 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.v3big2 b { font: 700 28px "Space Grotesk", system-ui, sans-serif; letter-spacing: -.02em; }
/* danh sách */
.v3li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.v3li:first-child { border-top: 0; }
.v3li .g { flex: 1; min-width: 0; }
.v3li b { font-size: 14px; }
.v3li small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v3amt { font: 700 14px "Space Grotesk", system-ui, sans-serif; white-space: nowrap; }
.v3amt.p { color: var(--mintt); }
.v3feed { max-height: 360px; overflow: hidden; }
.v3feed .v3li { animation: hx3slide .6s var(--ease) both; }
@keyframes hx3slide { from { opacity: 0; transform: translateX(-14px); } }
.v3todo { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(251, 191, 36, .06); border: 1px solid rgba(251, 191, 36, .22); margin-bottom: 10px; }
.v3todo .g { flex: 1; min-width: 0; }
.v3todo small { display: block; color: var(--muted); font-size: 12.5px; }
.v3okbig { display: grid; place-items: center; gap: 8px; padding: 24px 0; color: var(--muted); }
.v3okbig svg { width: 64px; height: 64px; }
.v3room { margin-bottom: 12px; }
.v3room div { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 6px; gap: 10px; }
.v3room div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v3bar { height: 8px; border-radius: 5px; background: var(--track); overflow: hidden; }
.v3bar i { display: block; height: 100%; width: 0; border-radius: 5px; background: var(--hxg); transition: width 1.2s var(--ease); }
.v3sess { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; background: var(--raised); border: 1px solid var(--line); margin-bottom: 10px; flex-wrap: wrap; }
.v3sess .who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.v3sess .g { flex: 1; min-width: 180px; }
.v3sess small { color: var(--muted); font-size: 12.5px; }
.v3empty { padding: 26px 0; text-align: center; color: var(--dim); font-size: 13.5px; }
.v3rank { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.v3rank .n { width: 22px; font: 700 15px "Space Grotesk", system-ui, sans-serif; color: var(--dim); }
.v3rank .n.top { color: #67e8f9; }
.v3srv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: center; }
.v3srv svg { width: 100%; max-width: 110px; height: auto; display: block; margin: 0 auto; }
.v3srv b { display: block; font: 700 18px "Space Grotesk", system-ui, sans-serif; margin-top: -40px; }
.v3srv small { display: block; color: var(--muted); font-size: 12px; margin-top: 18px; }
.v3svc { margin-top: 12px; }
.v3svc div { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 0; border-top: 1px solid var(--line); }
.v3svc i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }
.v3svc i.bad { background: #fb7185; box-shadow: 0 0 8px #fb7185; }
.v3svc span { flex: 1; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1240px) { .v3hero { grid-template-columns: minmax(0, 1fr) 250px; } .v3hero .v3mini { grid-column: span 2; flex-direction: row; } .v3hero .v3mini .v3mi { flex: 1; } .v3 .s3 { grid-column: span 6; } .v3 .s8, .v3 .s4, .v3 .s7, .v3 .s5 { grid-column: span 12; } .v3rank { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .v3hero { grid-template-columns: minmax(0, 1fr); } .v3hero .v3core { order: -1; max-width: 240px; } .v3hero .v3mini { grid-column: auto; flex-direction: column; } .v3 .s3, .v3 .s6 { grid-column: span 12; } .v3acts { grid-template-columns: 1fr; } .v3rank { grid-template-columns: minmax(0, 1fr); } .v3hello h2 { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { .v3 *, .hx3-scan, .content > * { animation: none !important; transition: none !important; } .v3draw { stroke-dashoffset: 0; } .v3fade { opacity: 1; } }

/* ============================================================
   THẺ GÓI MÁY CHỦ (trang VPS)
   ============================================================ */
.v3plan { padding: 20px; }
.v3plan .top3 { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.v3chip { width: 64px; height: 64px; border-radius: 18px; background: var(--hxg); display: grid; place-items: center; color: #fff; box-shadow: 0 12px 30px rgba(59, 130, 246, .45); flex: none; }
.v3specs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.v3spec { padding: 8px 14px; border-radius: 14px; background: var(--raised); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.v3spec b { display: block; font: 700 18px "Space Grotesk", system-ui, sans-serif; color: var(--text); }
.v3spec.newv { border-color: rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .07); }
.v3spec.newv b { color: var(--mintt); }
.v3al { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; margin-top: 14px; font-size: 14px; flex-wrap: wrap; }
.v3al .g { flex: 1 1 260px; min-width: 0; }
.v3al small { display: block; color: var(--muted); margin-top: 2px; }
.v3al.g1 { background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .3); }
.v3al.w1 { background: rgba(251, 191, 36, .07); border: 1px solid rgba(251, 191, 36, .3); }
.v3al code { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--term); color: #a5f3fc; font: 13px ui-monospace, Consolas, monospace; overflow-x: auto; white-space: nowrap; }

/* ============================================================
   CÀI ĐẶT ÂM THANH (chỉ Owner)
   ============================================================ */
.v3own { font-size: 12px; font-weight: 800; color: #0b1530; background: #fcd34d; border-radius: 8px; padding: 2px 8px; }
.v3snd { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.v3snd b { font-size: 14px; }
.v3snd small { display: block; color: var(--muted); font-size: 12.5px; }
.v3sel { height: 42px; border-radius: 12px; border: 1px solid var(--inputb); background: var(--card-solid); color: var(--text); padding: 0 10px; font: 14px "Be Vietnam Pro", system-ui, sans-serif; width: 100%; }
.v3rng { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 4px; background: linear-gradient(90deg, #22d3ee, #3b82f6 var(--v, 50%), var(--track) var(--v, 50%)); outline: none; }
.v3rng::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(59, 130, 246, .35); cursor: pointer; }
.v3rng::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px rgba(59, 130, 246, .35); }
.v3sw { width: 48px; height: 28px; border-radius: 14px; background: var(--track); border: 0; position: relative; transition: background .3s; flex: none; cursor: pointer; }
.v3sw::after { content: ""; position: absolute; left: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease); }
.v3sw.on { background: var(--hxg); } .v3sw.on::after { transform: translateX(20px); }
.v3row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.v3play { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--btnb); background: var(--btn); display: grid; place-items: center; cursor: pointer; color: var(--text); }
.v3file { font-size: 12.5px; color: var(--muted); }
@media (max-width: 760px) { .v3snd { grid-template-columns: minmax(0, 1fr) auto; } .v3snd .v3sel, .v3snd .vr { grid-column: span 2; } }

/* ============================================================
   MÀN HÌNH CHỜ XÁC THỰC SAU ĐĂNG NHẬP
   ============================================================ */
.v3auth { position: fixed; inset: 0; z-index: 9999; background: radial-gradient(circle at 50% 38%, #0b1d3a, #030812 62%); overflow: hidden; font-family: "Be Vietnam Pro", system-ui, sans-serif; color: #eef5ff; }
.v3auth canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.v3auth .wrap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; gap: 26px; }
.v3auth .stage { position: relative; width: min(300px, 72vw); aspect-ratio: 1; flex: none; }
.v3auth .rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.v3auth .rings .sp1 { transform-origin: 150px 150px; animation: hx3rot 22s linear infinite; }
.v3auth .rings .sp2 { transform-origin: 150px 150px; animation: hx3rot 2.4s linear infinite; }
.v3auth .prog { transition: stroke .5s; }
.v3auth .avb { position: absolute; inset: 23%; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 5px rgba(3, 8, 18, .9), 0 0 50px rgba(59, 130, 246, .55); transition: transform .6s var(--ease), opacity .4s, box-shadow .5s; background: linear-gradient(135deg, #38bdf8, #3b82f6 55%, #6366f1); display: grid; place-items: center; font: 700 clamp(34px, 9vw, 56px) "Be Vietnam Pro", system-ui, sans-serif; color: #fff; }
.v3auth .avb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v3auth .beam { position: absolute; left: -10%; right: -10%; height: 34%; top: -34%; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .08) 70%, rgba(207, 250, 254, .9) 98%, transparent); animation: hx3beam 1.8s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes hx3beam { to { top: 100%; } }
.v3auth .tick { position: absolute; inset: 18%; width: 64%; height: 64%; opacity: 0; transform: scale(.6); }
.v3auth .tick .tc { stroke-dasharray: 330; stroke-dashoffset: 330; }
.v3auth .tick .tp { stroke-dasharray: 80; stroke-dashoffset: 80; }
.v3auth .bdg { position: absolute; right: 20%; bottom: 20%; width: 16%; aspect-ratio: 1; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px #050a14, 0 6px 18px rgba(34, 197, 94, .6); display: grid; place-items: center; opacity: 0; transform: scale(0); }
.v3auth .bdg svg { width: 62%; height: 62%; }
.v3auth .txs { display: grid; width: min(440px, 100%); }
.v3auth .txs > * { grid-area: 1 / 1; }
.v3auth .at { text-align: center; transition: opacity .4s, transform .5s var(--ease); }
.v3auth .at h2 { margin: 0; font-size: clamp(24px, 3.2vw, 32px); font-weight: 700; letter-spacing: -.02em; }
.v3auth .at p { margin: 8px 0 18px; color: #94a6c6; font-size: 15px; min-height: 22px; }
.v3auth .list { display: grid; gap: 8px; text-align: left; }
.v3auth .ai { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(148, 190, 255, .1); font-size: 14.5px; color: #6b7d9c; transition: color .3s, border-color .3s, background .3s; }
.v3auth .ck { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(148, 190, 255, .2); flex: none; display: grid; place-items: center; transition: all .3s var(--ease); }
.v3auth .ai.rn { color: #eef5ff; border-color: rgba(59, 130, 246, .45); background: rgba(59, 130, 246, .08); }
.v3auth .ai.rn .ck { border-color: #3b82f6; border-right-color: transparent; animation: hx3rot .7s linear infinite; }
.v3auth .ai.dn { color: #eef5ff; }
.v3auth .ai.dn .ck { background: #22c55e; border-color: #22c55e; animation: hx3pop2 .45s var(--ease); }
.v3auth .ai.dn .ck::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
@keyframes hx3pop2 { 0% { transform: scale(.4); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
.v3auth .ai small { margin-left: auto; color: #6b7d9c; font-size: 12.5px; }
.v3auth .pc { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13.5px; color: #94a6c6; }
.v3auth .pc b { color: #fff; font-variant-numeric: tabular-nums; }
.v3auth .wel { align-self: start; text-align: center; opacity: 0; transform: translateY(14px); transition: all .6s var(--ease); pointer-events: none; }
.v3auth .wel h2 { margin: 0; font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }
.v3auth .wel p { margin: 8px 0 0; color: #94a6c6; }
.v3auth .tap { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 13px; color: #94a6c6; background: rgba(255, 255, 255, .06); border: 1px solid rgba(148, 190, 255, .18); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.v3auth.ph1 .prog { stroke: #22c55e; }
.v3auth.ph1 .rings g { opacity: 0; transition: opacity .3s; }
.v3auth.ph1 .avb { transform: scale(.7); opacity: 0; }
.v3auth.ph1 .tick { animation: hx3tickIn .5s var(--ease) forwards; }
.v3auth.ph1 .tick .tc { animation: hx3dash .55s .05s ease-out forwards; }
.v3auth.ph1 .tick .tp { animation: hx3dash .35s .5s ease-out forwards; }
.v3auth.ph1 .at { opacity: 0; transform: translateY(12px); }
@keyframes hx3tickIn { to { opacity: 1; transform: scale(1); } }
@keyframes hx3dash { to { stroke-dashoffset: 0; } }
.v3auth.ph2 .tick { animation: hx3tickOut .45s var(--ease) forwards; }
.v3auth.ph2 .avb { transform: scale(1); opacity: 1; box-shadow: 0 0 0 5px rgba(3, 8, 18, .9), 0 0 0 9px #22c55e, 0 0 60px rgba(34, 197, 94, .55); }
.v3auth.ph2 .beam { display: none; }
.v3auth.ph2 .bdg { animation: hx3pop2 .5s .15s var(--ease) forwards; opacity: 1; }
.v3auth.ph2 .wel { opacity: 1; transform: none; }
@keyframes hx3tickOut { to { opacity: 0; transform: scale(1.4); } }
.v3auth.out { opacity: 0; transform: scale(1.03); transition: opacity .7s var(--ease), transform .7s var(--ease); }
@media (max-width: 760px) { .v3auth .wrap { gap: 18px; } .v3auth .ai { font-size: 13.5px; padding: 9px 12px; } }
@media (prefers-reduced-motion: reduce) { .v3auth * { animation: none !important; } }
.v3mt { margin-top: 18px; }
.v3sess > svg { width: 46px; height: 46px; flex: none; }
.v3mi b span[data-n] { font-size: inherit; color: inherit; font-weight: inherit; }
.v3rank .v3n { width: 22px; flex: none; font: 700 15px "Space Grotesk", system-ui, sans-serif; color: var(--dim); }
.v3rank .v3n.top { color: #22d3ee; }
.showcase .bt { color: #fff; }
.showcase .card { background: rgba(12, 22, 42, .72); color: #eef5ff; border-color: rgba(148, 190, 255, .14); }
.showcase .card .sub, .showcase .card .ey { color: #94a6c6; }
.v3auth .txs { width: min(520px, 100%); }
