/* ============================================================
   HX ADMIN V2 • Xanh dương + vàng • Sáng / Tối
   ============================================================ */
:root, [data-theme="dark"] {
  --bg: #030815;
  --card: rgba(8, 20, 42, 0.86);
  --card-solid: #0a1834;
  --line: rgba(90, 160, 255, 0.16);
  --soft: #0f2140;
  --input: #081428;
  --inputb: #1a3563;
  --raised: #050e20;
  --raisedb: #14294d;
  --btn: #0e1d3a;
  --btnb: #1d3a6a;
  --track: #122850;
  --grid: #12284d;
  --side: rgba(3, 10, 24, 0.72);
  --text: #eef2f7;
  --muted: #8199bb;
  --dim: #6f86a8;
  --blue: #3b9bff;
  --blue2: #1767e6;
  --bluet: #8cc8ff;
  --gold: #ffc53d;
  --goldt: #ffd36b;
  --mint: #34e3b0;
  --mintt: #4ff0c0;
  --cyan: #6fe3ff;
  --red: #ff8a8a;
  --redt: #ff9b9b;
  --shadow: inset 0 1px 0 rgba(160, 210, 255, 0.07), 0 24px 48px rgba(0, 8, 30, 0.45);
  --glow1: rgba(35, 110, 255, 0.26);
  --glow2: rgba(255, 190, 60, 0.08);
  --gridline: rgba(90, 160, 255, 0.055);
  --dotc: rgba(120, 190, 255, 0.14);
  --tab: rgba(9, 23, 49, 0.94);
  --overlay: rgba(2, 6, 16, 0.62);
  --term: #020610;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #eef3fa;
  --card: #ffffff;
  --card-solid: #ffffff;
  --line: #d9e3f2;
  --soft: #edf2f9;
  --input: #f5f8fc;
  --inputb: #cfdbed;
  --raised: #f5f8fc;
  --raisedb: #dfe7f3;
  --btn: #ffffff;
  --btnb: #cfdbed;
  --track: #e3eaf4;
  --grid: #e3eaf4;
  --side: #ffffff;
  --text: #0b1830;
  --muted: #53647e;
  --dim: #6c7c94;
  --blue: #1f6fe5;
  --blue2: #1f6fe5;
  --bluet: #1558c0;
  --gold: #f2b100;
  --goldt: #8a5f00;
  --mint: #12a77b;
  --mintt: #0b7f5d;
  --cyan: #0aa5c6;
  --red: #d64545;
  --redt: #b42f2f;
  --shadow: 0 1px 2px rgba(11, 24, 48, 0.04), 0 12px 32px rgba(11, 24, 48, 0.07);
  --glow1: rgba(31, 111, 229, 0.12);
  --glow2: rgba(242, 177, 0, 0.1);
  --gridline: rgba(31, 111, 229, 0.06);
  --dotc: rgba(31, 111, 229, 0.12);
  --tab: rgba(255, 255, 255, 0.96);
  --overlay: rgba(11, 24, 48, 0.4);
  --term: #0b1830;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 78% -8%, var(--glow1), transparent 62%),
    radial-gradient(700px 420px at 8% 108%, var(--glow2), transparent 60%),
    linear-gradient(var(--gridline) 1px, transparent 1px),
    linear-gradient(90deg, var(--gridline) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--bluet); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { display: block; flex-shrink: 0; }
.hidden { display: none !important; }
.d { font-family: "Space Grotesk", "Be Vietnam Pro", sans-serif; font-feature-settings: "tnum"; }
.muted { color: var(--muted); }
.t-blue { color: var(--bluet); } .t-mint { color: var(--mintt); } .t-gold { color: var(--goldt); } .t-red { color: var(--redt); } .t-cyan { color: var(--cyan); }
.dots { background-image: radial-gradient(var(--dotc) 1px, transparent 1px); background-size: 20px 20px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grow { flex-grow: 1; min-width: 0; }
.mt { margin-top: 12px; }
.mobile-only { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Logo ---------- */
.logo-img { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; box-shadow: 0 8px 22px rgba(35, 110, 255, 0.35); }
.brand { display: flex; align-items: center; gap: 12px; }
.bt { font: 700 15px "Space Grotesk", sans-serif; }
.bs { font-size: 11px; color: var(--muted); letter-spacing: 0.16em; margin-top: 2px; }

/* ---------- Thẻ HUD ---------- */
.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 22px; box-shadow: var(--shadow); min-width: 0;
}
.card::before, .card::after { content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none; }
.card::before { top: -1px; left: -1px; border-top: 2px solid var(--blue); border-left: 2px solid var(--blue); border-top-left-radius: 20px; }
.card::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); border-bottom-right-radius: 20px; }
.card.danger-card { border-color: rgba(255, 110, 110, 0.35); }
.card.click { cursor: pointer; transition: transform 0.15s, border-color 0.15s; }
.card.click:hover { border-color: var(--blue); }
.raised { background: var(--raised); border: 1px solid var(--raisedb); border-radius: 16px; }
.ey { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.ct { font: 700 16px "Space Grotesk", sans-serif; }
.cs { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.big { font: 700 32px "Space Grotesk", sans-serif; letter-spacing: -0.02em; line-height: 1; }
.unit { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 6px; letter-spacing: 0; }
.sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

/* ---------- Nút ---------- */
.btn {
  height: 40px; padding: 0 15px; border-radius: 12px; border: 1px solid var(--btnb); background: var(--btn); color: var(--text);
  font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; white-space: nowrap; text-decoration: none; transition: transform 0.12s, border-color 0.15s, opacity 0.15s;
}
.btn:hover { border-color: var(--blue); color: var(--text); }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 12px; border-radius: 10px; }
.btn.lg { height: 54px; border-radius: 15px; font-size: 15px; width: 100%; }
.btn.pri { background: #ffc53d; border-color: #ffc53d; color: #1a1200; box-shadow: 0 10px 26px rgba(255, 197, 61, 0.3); }
.btn.blue { background: var(--blue2); border-color: var(--blue2); color: #fff; }
.btn.ok { background: rgba(52, 227, 176, 0.14); border-color: rgba(52, 227, 176, 0.35); color: var(--mintt); }
.btn.no { background: transparent; border-color: rgba(255, 110, 110, 0.4); color: var(--redt); }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn.loading { pointer-events: none; opacity: 0.7; }
.btn.loading::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
.ib {
  width: 44px; height: 44px; border-radius: 12px; background: var(--input); border: 1px solid var(--inputb); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; position: relative; cursor: pointer; flex-shrink: 0; padding: 0;
}
.ib:hover { color: var(--text); border-color: var(--blue); }
.ib.sm { width: 34px; height: 34px; border-radius: 10px; }
.ib.spin svg { animation: spin 0.8s linear; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge {
  position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; border-radius: 10px; background: #ffc53d; color: #1a1200;
  font: 800 10.5px "Space Grotesk", sans-serif; display: flex; align-items: center; justify-content: center; padding: 0 5px; box-shadow: 0 0 0 2px var(--bg);
}
.linkbtn { background: none; border: none; padding: 0; color: var(--bluet); font-weight: 600; font-size: 12.5px; cursor: pointer; }
.link { font-size: 12.5px; font-weight: 600; color: var(--bluet); display: inline-flex; align-items: center; gap: 4px; cursor: pointer; background: none; border: none; padding: 0; }

.pill { font-size: 11.5px; padding: 4px 10px; border-radius: 999px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.p-green { background: rgba(52, 227, 176, 0.14); color: var(--mintt); }
.p-gold { background: rgba(255, 197, 61, 0.18); color: var(--goldt); }
.p-blue { background: rgba(59, 155, 255, 0.14); color: var(--bluet); }
.p-red { background: rgba(255, 110, 110, 0.14); color: var(--redt); }
.p-grey { background: var(--soft); color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: currentColor; flex-shrink: 0; }
.dot.live { box-shadow: 0 0 0 3px rgba(52, 227, 176, 0.2); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(52, 227, 176, 0.04); } }
.delta { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.up { background: rgba(52, 227, 176, 0.14); color: var(--mintt); }
.down { background: rgba(255, 120, 120, 0.14); color: var(--redt); }
.flat { background: var(--soft); color: var(--muted); }

.ico { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ico.sm { width: 34px; height: 34px; border-radius: 10px; }
.c-gold { background: rgba(255, 197, 61, 0.16); color: var(--goldt); }
.c-blue { background: rgba(59, 155, 255, 0.14); color: var(--bluet); }
.c-mint { background: rgba(52, 227, 176, 0.14); color: var(--mintt); }
.c-cyan { background: rgba(111, 227, 255, 0.14); color: var(--cyan); }
.c-red { background: rgba(255, 110, 110, 0.14); color: var(--redt); }
.c-grey { background: var(--soft); color: var(--muted); }

.av { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; object-fit: cover; background: var(--track); display: inline-flex; align-items: center; justify-content: center; font: 700 13px "Space Grotesk", sans-serif; color: #050e20; }
.av.sm { width: 28px; height: 28px; font-size: 11px; }
.av.lg { width: 48px; height: 48px; font-size: 16px; }
.a0 { background: #7cc4ff; } .a1 { background: #ffc454; } .a2 { background: #4ff0c0; } .a3 { background: #8fb3ff; } .a4 { background: #ffab7a; } .a5 { background: #c7b8ff; }
.pair { display: flex; }
.pair .av + .av { margin-left: -9px; box-shadow: 0 0 0 2px var(--card-solid); }

.seg { display: inline-flex; background: var(--raised); border: 1px solid var(--raisedb); border-radius: 11px; padding: 3px; flex-shrink: 0; }
.seg button { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 8px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; background: none; border: none; cursor: pointer; }
.seg button.on { background: var(--card-solid); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }
.seg.full { display: flex; width: 100%; }
.seg.full button { flex: 1; justify-content: center; padding: 6px 4px; }

.li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--soft); font-size: 13.5px; }
.li:first-child { border-top: none; }
.empty { padding: 26px 0 12px; text-align: center; color: var(--muted); font-size: 13px; }
.bar { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; width: 0; transition: width 0.6s; background: var(--blue); }
.bar i.grad { background: linear-gradient(90deg, var(--blue), var(--gold)); }
.bar i.mint { background: var(--mint); } .bar i.gold { background: var(--gold); } .bar i.red { background: var(--red); }
.sw { width: 44px; height: 26px; border-radius: 13px; background: var(--track); position: relative; flex-shrink: 0; border: none; cursor: pointer; padding: 0; transition: background 0.2s; }
.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: left 0.2s; }
.sw.on { background: var(--mint); }
.sw.on::after { left: 21px; }
.sw.static { cursor: default; }

/* ---------- Ô nhập ---------- */
label { font-size: 12.5px; color: var(--muted); font-weight: 600; display: block; margin-bottom: 8px; }
.field { height: 52px; border-radius: 14px; border: 1px solid var(--inputb); background: var(--input); display: flex; align-items: center; gap: 10px; padding: 0 6px 0 14px; color: var(--dim); transition: border-color 0.15s, box-shadow 0.15s; }
.field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59, 155, 255, 0.16); }
.field input, .field select, .field textarea { flex-grow: 1; min-width: 0; height: 100%; border: none; background: transparent; color: var(--text); font-size: 15px; outline: none; padding: 0; }
.field select { cursor: pointer; }
.field select option { background: var(--card-solid); color: var(--text); }
.field.area { height: auto; padding: 12px 14px; align-items: flex-start; }
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.eye { width: 40px; height: 40px; border: none; background: none; color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 10px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.hint.warn { color: var(--goldt); }
.alert { padding: 12px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; background: rgba(255, 110, 110, 0.1); border: 1px solid rgba(255, 110, 110, 0.3); color: var(--redt); }
.alert.ok { background: rgba(52, 227, 176, 0.1); border-color: rgba(52, 227, 176, 0.3); color: var(--mintt); }
.check { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); font-weight: 500; cursor: pointer; margin: 0; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--inputb); background: var(--input); display: inline-flex; align-items: center; justify-content: center; color: transparent; flex-shrink: 0; }
.check input:checked + .box { background: var(--blue2); border-color: var(--blue2); color: #fff; }
.check input:focus-visible + .box { outline: 2px solid var(--blue); outline-offset: 2px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex-grow: 1; height: 1px; background: var(--line); }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.otp input { height: 58px; border-radius: 14px; border: 1px solid var(--inputb); background: var(--input); text-align: center; font: 700 22px "Space Grotesk", sans-serif; color: var(--text); outline: none; min-width: 0; }
.otp input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59, 155, 255, 0.16); }

/* ============================================================
   MÀN HÌNH CHÀO
   ============================================================ */
.splash { position: fixed; inset: 0; z-index: 100; background-color: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; transition: opacity 0.4s; }
.splash.out { opacity: 0; pointer-events: none; }
.splash-logo { width: 108px; height: 108px; border-radius: 30px; box-shadow: 0 20px 60px rgba(59, 155, 255, 0.45); animation: pop 0.6s ease-out; }
@keyframes pop { from { transform: scale(0.85); opacity: 0; } }
.splash-name { font: 700 28px "Space Grotesk", sans-serif; margin-top: 10px; }
.splash-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.16em; }
.splash-bar { width: 160px; height: 4px; border-radius: 2px; background: var(--track); overflow: hidden; margin-top: 12px; }
.splash-bar i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--blue), var(--gold)); animation: load 1.2s ease-in-out infinite; }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* ============================================================
   ĐĂNG NHẬP
   ============================================================ */
.login { min-height: 100vh; display: flex; padding: 20px; gap: 20px; }
.showcase { width: 46%; max-width: 700px; border-radius: 28px; background-color: var(--card-solid); border: 1px solid var(--line); padding: 48px; display: flex; flex-direction: column; overflow: hidden; }
.float-cards { margin-top: 56px; display: flex; flex-direction: column; gap: 14px; }
.fc { padding: 16px 18px; display: flex; align-items: center; gap: 14px; width: min(380px, 80%); animation: float 6s ease-in-out infinite; }
.fc b { font-size: 14px; }
.fc1 { margin-left: 10%; }
.fc2 { margin-left: 28%; justify-content: space-between; animation-delay: -2s; }
.fc2 .big { font-size: 24px; margin-top: 8px; }
.fc3 { margin-left: 4%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-6px); } }
.slogan { margin-top: auto; }
.slogan h1 { font: 700 40px/1.12 "Space Grotesk", sans-serif; letter-spacing: -0.02em; margin: 0; }
.slogan p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 14px 0 0; }
.login-side { flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; padding: 70px 0 30px; }
.login-top { position: absolute; top: 4px; left: 0; right: 0; display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.login-form { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 16px; }
.login-form h2 { font: 700 32px "Space Grotesk", sans-serif; margin: 0; }
.login-form p { font-size: 14px; margin: 8px 0 0; line-height: 1.6; }
.pk-btn {
  height: 62px; border-radius: 16px; border: 1px solid var(--blue); background: var(--btn); color: var(--text); display: flex; align-items: center;
  gap: 14px; padding: 0 16px; cursor: pointer; text-align: left; box-shadow: 0 0 0 4px rgba(59, 155, 255, 0.12);
}
.pk-btn .ico { width: 38px; height: 38px; border-radius: 11px; }
.pk-text { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pk-text b { font-size: 14px; }
.pk-text small { font-size: 12px; color: var(--muted); }
.foot-note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--dim); text-align: center; }
.install-tip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--raised); border: 1px solid var(--raisedb); font-size: 12.5px; color: var(--muted); }
.install-tip b { color: var(--text); }
.ring-sm { width: 52px; height: 52px; flex-shrink: 0; }

/* ============================================================
   MỞ KHOÁ
   ============================================================ */
.lock { min-height: 100vh; display: flex; justify-content: center; padding: 60px 22px 36px; }
.lock-inner { width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.lock-av { position: relative; margin-bottom: 8px; }
.lock-av #lockAvatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--track); }
.lock-badge { position: absolute; right: -4px; bottom: -4px; width: 34px; height: 34px; border-radius: 10px; }
.lock h2 { font: 700 26px "Space Grotesk", sans-serif; margin: 0; }
.lock p { margin: 0; font-size: 14px; }
.face-big {
  margin: 40px 0 18px; width: 150px; height: 150px; border-radius: 40px; border: 1px solid var(--line); background: var(--card-solid); color: var(--blue);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 0 0 10px rgba(59, 155, 255, 0.06), 0 0 0 22px rgba(59, 155, 255, 0.04), 0 20px 50px rgba(35, 120, 255, 0.25);
}
.face-big svg { width: 84px; height: 84px; stroke-width: 1.4; }
.lock-actions { margin-top: auto; width: 100%; display: flex; flex-direction: column; gap: 12px; align-items: center; padding-top: 30px; }
#lockPwBox { width: 100%; }

/* ============================================================
   KHUNG ỨNG DỤNG
   ============================================================ */
.app { display: flex; min-height: 100vh; }
.side { width: 268px; flex-shrink: 0; position: sticky; top: 0; height: 100vh; background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 22px 16px; overflow-y: auto; }
.side .brand { padding: 2px 8px 18px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.sec { font-size: 10.5px; color: var(--dim); letter-spacing: 0.18em; margin: 14px 10px 6px; font-weight: 600; }
.side-foot .sec { margin: 0 4px 8px; }
.nav { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 12px; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; border: none; background: none; width: 100%; text-align: left; }
.nav:hover { color: var(--text); background: rgba(59, 155, 255, 0.07); }
.nav.on { background: var(--blue2); color: #fff; font-weight: 700; box-shadow: 0 10px 30px rgba(35, 120, 255, 0.35); }
.tag { margin-left: auto; font-size: 10px; padding: 2px 7px; border-radius: 6px; background: var(--soft); color: var(--muted); font-weight: 700; white-space: nowrap; }
.tag.hot { background: #ffc53d; color: #1a1200; }
.nav.on .tag { background: rgba(255, 255, 255, 0.2); color: #fff; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 20px; }
.bot-box { background: var(--raised); border: 1px solid var(--raisedb); border-radius: 16px; padding: 14px; text-align: left; cursor: pointer; color: var(--text); display: flex; flex-direction: column; gap: 10px; }
.bot-row { display: flex; align-items: center; gap: 10px; }
.bot-row b { font-size: 13px; display: block; }
.bot-row small { font-size: 11.5px; color: var(--muted); }
.bot-row .dot { margin-left: auto; color: var(--mint); }
.bot-meter { display: flex; justify-content: space-between; font-size: 11.5px; }

.main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.offline { background: #ffc53d; color: #1a1200; text-align: center; font-size: 13px; font-weight: 700; padding: 8px; }
.top { height: 76px; flex-shrink: 0; display: flex; align-items: center; padding: 0 32px; gap: 12px; }
.top-title { display: none; }
.top-title .tt { font: 700 22px "Space Grotesk", sans-serif; margin-top: 2px; }
.top-date { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--input); border: 1px solid var(--inputb); font-size: 13px; font-weight: 600; color: var(--text); }
.top-date svg { color: var(--muted); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.updated { font-size: 12px; color: var(--muted); }
.me-wrap { position: relative; }
.me { display: flex; align-items: center; gap: 10px; padding: 5px 10px 5px 5px; border-radius: 14px; background: var(--input); border: 1px solid var(--inputb); cursor: pointer; color: var(--text); }
.me .av { width: 34px; height: 34px; }
.me-text { display: flex; flex-direction: column; text-align: left; }
.me-text b { font-size: 13px; }
.me-text small { font-size: 11px; color: var(--muted); }
.menu { position: absolute; right: 0; top: calc(100% + 8px); width: 220px; background: var(--card-solid); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35); z-index: 40; }
.menu button, .menu a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--text); background: none; border: none; cursor: pointer; text-align: left; }
.menu button:hover, .menu a:hover { background: var(--soft); }
.menu .danger { color: var(--redt); }
.content { padding: 4px 32px 40px; display: flex; flex-direction: column; gap: 20px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.span2 { grid-column: span 2; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head h1 { font: 700 30px "Space Grotesk", sans-serif; margin: 6px 0 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Tổng quan ---------- */
.hero { padding: 26px 28px; display: flex; flex-direction: column; gap: 20px; }
.hero-top { display: flex; align-items: center; gap: 28px; }
.hero h2 { font: 700 30px "Space Grotesk", sans-serif; margin: 10px 0 0; letter-spacing: -0.02em; }
.hero p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.hero p b { color: var(--text); }
.stats { display: flex; gap: 12px; }
.stat { padding: 14px 18px; min-width: 138px; }
.stat .v { font: 700 26px "Space Grotesk", sans-serif; margin-top: 6px; }
.stat .v small { font-size: 16px; color: var(--muted); }
.stat .s { font-size: 12px; color: var(--muted); }
.quick { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--soft); padding-top: 18px; flex-wrap: wrap; }
.quick .btn { height: 44px; }
.quick .cnt { background: rgba(0, 0, 0, 0.14); border-radius: 6px; padding: 0 6px; font-family: "Space Grotesk", sans-serif; }
.kpi { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.kpi .ico { width: 36px; height: 36px; border-radius: 11px; }
.kpi .kb { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.kpi .cmp { margin-top: 10px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.kpi .kfoot { border-top: 1px solid var(--soft); padding-top: 12px; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart { margin-top: 10px; position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .hit { cursor: crosshair; }
.chart-tip { position: absolute; pointer-events: none; background: #0b1830; color: #fff; border-radius: 10px; padding: 8px 12px; font-size: 11px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); transform: translate(-50%, -110%); white-space: nowrap; }
.chart-tip b { display: block; font: 700 15px "Space Grotesk", sans-serif; margin-top: 2px; }
.ring { position: relative; flex-shrink: 0; }
.ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 13px "Space Grotesk", sans-serif; }
.mini3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.mini3 .raised { padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.feed-amt { font-weight: 700; font-family: "Space Grotesk", sans-serif; }
.feed-time { font-size: 12px; color: var(--muted); min-width: 70px; text-align: right; flex-shrink: 0; white-space: nowrap; }

/* ---------- VPS ---------- */
.gauge-card { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.gauge { position: relative; margin: 4px auto 0; }
.gauge .gv { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; }
.gauge .gv b { font: 700 26px "Space Grotesk", sans-serif; line-height: 1; display: block; }
.gauge .gv small { font-size: 11px; color: var(--muted); }
.net2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.net2 .raised { padding: 12px; }
.net2 b { font: 700 22px "Space Grotesk", sans-serif; display: block; margin-top: 4px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 10.5px; color: var(--dim); font-weight: 600; letter-spacing: 0.14em; padding: 0 8px 10px 0; white-space: nowrap; }
td { padding: 12px 8px 12px 0; border-top: 1px solid var(--soft); vertical-align: middle; }
.table-wrap { overflow-x: auto; }
.term { background: var(--term); border-radius: 14px; padding: 14px 16px; font: 12.5px/1.75 "JetBrains Mono", ui-monospace, monospace; color: #c9d6ea; border: 1px solid var(--raisedb); height: 330px; overflow-y: auto; }
.term .l { display: flex; gap: 14px; }
.term .tm { color: #5e7699; flex-shrink: 0; }
.term .lv { width: 52px; font-weight: 600; flex-shrink: 0; }
.term .INFO { color: #7cc4ff; } .term .WARN { color: #ffc53d; } .term .ERROR { color: #ff8a8a; }
.term .x { white-space: pre-wrap; word-break: break-word; }
.term .x.ERROR { color: #ffb3b3; }
.term .live { color: #4ff0c0; margin-top: 4px; }

/* ---------- Bảng nổi ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.sheet-bg { position: absolute; inset: 0; background: var(--overlay); backdrop-filter: blur(3px); animation: fade 0.2s; }
.sheet {
  position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--card-solid); border: 1px solid var(--line);
  border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); animation: up 0.25s ease-out;
}
.sheet.wide { max-width: 620px; }
.sheet-grip { display: none; width: 44px; height: 5px; border-radius: 3px; background: var(--track); align-self: center; }
.sheet-head { display: flex; align-items: center; gap: 14px; }
.sheet-head .ico { width: 48px; height: 48px; border-radius: 14px; }
.sheet-head h3 { font: 700 20px "Space Grotesk", sans-serif; margin: 0; }
.sheet-head p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.sheet .close { margin-left: auto; align-self: flex-start; }
.note { padding: 12px 14px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.note b { color: var(--goldt); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13.5px; }
.kv span { color: var(--muted); }
.kv b { text-align: right; word-break: break-all; }
.copy { cursor: pointer; border-bottom: 1px dashed var(--muted); }
.results { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow-y: auto; }
.result { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; cursor: pointer; background: none; border: 1px solid transparent; text-align: left; color: var(--text); }
.result:hover, .result.on { background: var(--soft); border-color: var(--blue); }
.theme-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.theme-card { padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; color: var(--text); font-size: 12.5px; font-weight: 600; }
.theme-card.on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 155, 255, 0.18); }
.theme-card .pv { width: 64px; height: 42px; border-radius: 8px; border: 1px solid var(--line); }
.pv.l { background: #eef3fa; } .pv.dk { background: #030815; } .pv.au { background: linear-gradient(135deg, #eef3fa 50%, #030815 50%); }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(16px); opacity: 0; } }

.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--card-solid); border: 1px solid var(--line); padding: 12px 18px; border-radius: 14px; font-size: 13px; font-weight: 600; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35); display: flex; align-items: center; gap: 8px; animation: up 0.25s; }
.toast.err { border-color: rgba(255, 110, 110, 0.5); color: var(--redt); }
.toast.ok svg { color: var(--mintt); }

.skel { background: linear-gradient(90deg, var(--soft) 25%, var(--track) 50%, var(--soft) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 20px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.soon { padding: 60px 20px; text-align: center; }
.soon h3 { font: 700 22px "Space Grotesk", sans-serif; margin: 16px 0 6px; }
.soon .ico { margin: 0 auto; width: 60px; height: 60px; border-radius: 18px; }
.tabbar { display: none; }

/* ============================================================
   MÀN HÌNH NHỎ
   ============================================================ */
@media (max-width: 1360px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-top { flex-direction: column; align-items: stretch; }
}
@media (max-width: 1100px) {
  .showcase { display: none; }
  .mobile-only { display: flex !important; }
  .login-top { justify-content: space-between; }
  .login-side { justify-content: flex-start; padding-top: 84px; }
}
@media (max-width: 1024px) {
  .side { display: none; }
  .g3, .g2 { grid-template-columns: minmax(0, 1fr); }
  .span2 { grid-column: auto; }
  .top { padding: calc(env(safe-area-inset-top) + 8px) 16px 6px; height: auto; min-height: 64px; }
  .top-title { display: block; }
  .top-date, .updated { display: none; }
  .content { padding: 4px 16px calc(110px + env(safe-area-inset-bottom)); gap: 14px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    height: 68px; z-index: 30; background: var(--tab); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10.5px; color: var(--muted); font-weight: 600; background: none; border: none; cursor: pointer; position: relative; }
  .tab.on { color: var(--goldt); }
  [data-theme="dark"] .tab.on { color: var(--gold); }
  .sheet-wrap { align-items: flex-end; padding: 0; }
  .sheet { max-width: none !important; border-radius: 28px 28px 0 0; padding: 12px 22px calc(28px + env(safe-area-inset-bottom)); max-height: 92vh; animation: slide 0.3s ease-out; }
  .sheet-grip { display: block; }
  @keyframes slide { from { transform: translateY(100%); } }
}
@media (max-width: 640px) {
  .login { padding: 16px; }
  .login-side { padding-top: 76px; }
  .login-form h2 { font-size: 28px; }
  .me-text, .me-chev, #refreshBtn { display: none; }
  .me { padding: 4px; }
  .hero { padding: 20px 18px; }
  .hero h2 { font-size: 23px; }
  .stats { gap: 8px; }
  .stat { min-width: 0; flex: 1; padding: 12px; }
  .stat .v { font-size: 20px; }
  .quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; border-top: none; padding-top: 0; }
  .quick .ey { display: none; }
  .quick .btn { flex-direction: column; height: 76px; gap: 6px; padding: 0 4px; border-radius: 16px; font-size: 11px; white-space: normal; text-align: center; line-height: 1.2; position: relative; }
  .quick .btn.pri { box-shadow: none; }
  .quick .cnt { position: absolute; top: -6px; right: -6px; background: #ffc53d; color: #1a1200; min-width: 19px; height: 19px; border-radius: 10px; font-size: 10.5px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--bg); }
  .g4 { gap: 10px; }
  .kpi { padding: 14px; gap: 10px; border-radius: 18px; }
  .kpi .spark, .kpi .kfoot, .kpi .ico { display: none; }
  .kpi .ey { font-size: 10px; }
  .big { font-size: 24px; }
  .card { padding: 16px; border-radius: 18px; }
  .legend { display: none; }
  .li .hide-m { display: none; }
  .feed-time { width: auto; }
  .page-head h1 { font-size: 24px; }
  .page-head .btns { width: 100%; }
  .page-head .btns .btn { flex: 1; }
  .term { height: 260px; font-size: 11px; }
  .term .lv { width: 44px; }
  .hero-top .stats { order: 2; }
}

/* Không cho trang tràn ngang trên điện thoại */
.main { overflow-x: clip; }
.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
@media (max-width: 640px) {
  .head { flex-wrap: wrap; }
  .head > .seg, .head > .row { width: 100%; }
  .head > .seg button, .head > .row > .seg button { flex: 1; justify-content: center; }
  .head > .row > .seg { flex: 1; }
}
@media (max-width: 1024px) {
  .page-head > div:first-child > .ey, .page-head h1 { display: none; }
  .page-head .chips { margin-top: 0; }
}
@media (max-width: 640px) {
  .stat .ey { font-size: 9.5px; letter-spacing: 0.1em; }
  .stat .s { font-size: 11px; }
}
/* ============================================================
   4 TRANG MỚI: HX Xu • PlayDuo • Thành viên • Ticket
   ============================================================ */
.head.wrap { flex-wrap: wrap; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.gap6 { gap: 6px; }
.mt4 { margin-top: 4px; }
.r { text-align: right; }
.nowrap { white-space: nowrap; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.pre { white-space: pre-wrap; word-break: break-word; }
.pill.xs { font-size: 10px; padding: 2px 7px; vertical-align: 1px; }
.seg .cnt { background: rgba(255, 197, 61, 0.2); color: var(--goldt); border-radius: 6px; padding: 0 6px; font: 700 11px "Space Grotesk", sans-serif; }
.field.sm { height: 42px; border-radius: 12px; }
.field.sm input { font-size: 14px; }
.field.search { width: 300px; max-width: 100%; }
.field.search input::-webkit-search-cancel-button { filter: grayscale(1); }
.more-row { display: flex; justify-content: center; padding-top: 14px; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }

/* Bảng dữ liệu */
.dt td { padding-top: 11px; padding-bottom: 11px; }
.dt th.r, .dt td.r { padding-right: 14px; }
.dt b { font-weight: 600; }
.dt.click tbody tr { cursor: pointer; transition: background 0.12s; }
.dt.click tbody tr:hover { background: var(--soft); }
.dt .row { gap: 10px; }

/* Danh sách bấm được */
.rowbtn { width: 100%; background: none; border: none; color: var(--text); cursor: pointer; text-align: left; font: inherit; font-size: 13.5px; border-top: 1px solid var(--soft); }
.rowbtn:first-child { border-top: none; }
.rowbtn:hover b, .rowbtn:hover .grow > b:first-child { color: var(--bluet); }
.rank { width: 22px; text-align: center; font: 700 13px "Space Grotesk", sans-serif; color: var(--muted); flex-shrink: 0; }
.rank.medal { font-size: 17px; }

/* Thanh cơ cấu xu */
.stackbar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--track); gap: 2px; }
.stackbar i { display: block; height: 100%; width: 0; transition: width 0.6s; }
.sb-a { background: var(--blue); } .sb-b { background: var(--cyan); } .sb-c { background: var(--mint); }
.dot.sb-a, .dot.sb-b, .dot.sb-c { width: 10px; height: 10px; border-radius: 3px; }

/* Ô số trong bảng nổi */
.tiles4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tile { padding: 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile span { font-size: 11px; color: var(--muted); }
.tile b { font: 700 18px "Space Grotesk", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Thẻ duo */
.duo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.duo-grid .span-all { grid-column: 1 / -1; }
.duo { padding: 16px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; transition: border-color 0.15s, transform 0.15s; min-width: 0; }
.duo:hover { border-color: var(--blue); }
.duo .grow b { font-size: 15px; }
.games { display: flex; flex-wrap: wrap; gap: 6px; }
.games span { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 7px; background: var(--soft); color: var(--muted); }
.duo-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; border-top: 1px solid var(--soft); border-bottom: 1px solid var(--soft); padding: 10px 0; }
.duo-stats div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.duo-stats span { font-size: 10.5px; color: var(--muted); }
.duo-stats b, .duo-stats .stars { font: 700 14px "Space Grotesk", sans-serif; }
.stars { display: inline-flex; align-items: center; gap: 3px; color: var(--goldt); }
.stars svg { fill: currentColor; }

/* Vai trò Discord */
.roles { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.role-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--raisedb); background: var(--raised); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-chip .dot { background: var(--rc, var(--muted)); }
.kpi .cmp.w { white-space: normal; line-height: 1.45; }
.note .kv b { color: var(--text); }
.kv b.copy { justify-self: end; }
.mod-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* Ticket */
.tbar { display: flex; flex-direction: column; gap: 6px; padding: 9px 0; font-size: 13px; }
.ico.emo { font-size: 18px; }
.tk { gap: 12px; }
.chat { display: flex; flex-direction: column; gap: 14px; max-height: 380px; overflow-y: auto; padding: 14px; border-radius: 16px; background: var(--raised); border: 1px solid var(--raisedb); }
.msg { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.55; }
.msg .mh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.msg .mh .sub { margin: 0; }
.emb { margin-top: 6px; padding: 8px 12px; border-left: 3px solid var(--blue); background: var(--soft); border-radius: 4px 10px 10px 4px; font-size: 12.5px; color: var(--muted); }
.emb b { color: var(--text); display: block; margin-bottom: 2px; }
.msg.bot .emb { border-left-color: var(--gold); }

/* Bảng "Thêm" trên điện thoại */
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.more-item { padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--text); cursor: pointer; text-align: center; }
.more-item.on { border-color: var(--blue); }

@media (max-width: 640px) {
  .dt .hide-m { display: none; }
  .dt { font-size: 13px; }
  .field.search { width: 100%; }
  .head.wrap > .seg { width: 100%; }
  .tiles4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duo-grid { grid-template-columns: minmax(0, 1fr); }
  .chat { max-height: 46vh; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
}
/* ============================================================
   THÔNG BÁO ĐẨY
   ============================================================ */
.push-ask { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-color: rgba(255, 197, 61, 0.45); }
.push-ask b { font-size: 14px; }
.toggles { display: flex; flex-direction: column; }
.tg { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--soft); font-size: 13.5px; cursor: pointer; }
.tg:first-child { border-top: none; }
.tg input { position: absolute; opacity: 0; pointer-events: none; }
.tg i { width: 44px; height: 26px; border-radius: 13px; background: var(--track); position: relative; flex-shrink: 0; transition: background 0.2s; }
.tg i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.2s; }
.tg input:checked + i { background: var(--mint); }
.tg input:checked + i::after { transform: translateX(18px); }
.tg input:focus-visible + i { box-shadow: 0 0 0 3px rgba(59, 155, 255, 0.35); }
@media (max-width: 640px) {
  .push-ask { flex-wrap: wrap; padding: 14px; }
  .push-ask .grow { flex-basis: calc(100% - 60px); }
  .push-ask .btn { flex: 1; }
  #pushCard .head > .ico { display: none; }
}
/* ===== Sửa lỗi hiển thị (kiểm tra sáng/tối 10/2026) ===== */
/* Ô tiêu đề thẻ: đường dẫn dài tự xuống dòng, nút không bị ép tràn viền */
.card .head > .btn, .card .head > div > .btn { flex-shrink: 0; }
.card .head .cs { overflow-wrap: anywhere; }
/* Ô tốc độ mạng VPS */
.net2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.net2 b { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .net2 { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .net2 .raised { padding: 10px; }
  .net2 b { font-size: 17px; }
  /* Nút dài (vd. "Bật Windows Hello / vân tay trên thiết bị này") được xuống dòng */
  .btn.lg { white-space: normal; height: auto; min-height: 54px; padding: 10px 16px; text-align: center; line-height: 1.3; }
}

/* ---- sửa lỗi tràn khung (21/10/2026) ---- */
.gauge { max-width: 100%; }
.gauge svg { display: block; max-width: 100%; height: auto; }
.li > .grow { min-width: 0; }
.li > .grow > b, .li > .grow > .sub { overflow-wrap: anywhere; }
.field { min-width: 0; }
