/* Linh vat + ten thuong hieu */
@keyframes bob { 50% { transform: translateY(-4px); } }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -.5px;
    background: linear-gradient(90deg, var(--gold), #fde68a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
/* ============ SKELETON LOADING + LOI DOC LAP TUNG WIDGET ============ */
@keyframes skelShimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.skel-row { height: 14px; margin: 8px 0; }
.skel-row.w60 { width: 60%; }
.skel-row.w40 { width: 40%; }
.skel-row.w80 { width: 80%; }
.skel-card { height: 62px; border-radius: 12px; }
.widget-error { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.3); border-radius: 10px;
    padding: 10px 13px; font-size: 12.5px; color: #ffb4a8; display: flex; align-items: center; gap: 8px; }
.widget-error button { background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.4); color: #ffb4a8;
    border-radius: 6px; padding: 3px 10px; font-size: 11.5px; cursor: pointer; }
/* Trang thai RONG (API tra ve mang rong) — khac han trang thai LOI */
.empty-state { background: rgba(138,160,152,.07); border: 1px dashed var(--border); border-radius: 10px;
    padding: 12px 14px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.empty-state button { background: transparent; border: 1px solid var(--border); color: var(--muted);
    border-radius: 6px; padding: 3px 10px; font-size: 11.5px; cursor: pointer; }
/* Nhan du lieu cu (hien khi API loi nhung con cache lan cuoi) */
.stale-note { background: rgba(234,179,8,.10); border: 1px solid rgba(234,179,8,.35); border-radius: 8px;
    padding: 6px 11px; font-size: 11.5px; color: #e8c76a; margin-bottom: 8px; }
/* ============ BO LOC CHAT LUONG CO PHIEU ============ */
.qf-bar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
    background: rgba(138,160,152,.06); border: 1px solid var(--border); border-radius: 9px;
    padding: 7px 11px; margin-bottom: 9px; }
.qf-toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    font-size: 12.5px; font-weight: 600; user-select: none; }
.qf-toggle input { cursor: pointer; width: 15px; height: 15px; accent-color: var(--green); }
.qf-help { cursor: help; font-size: 12px; color: var(--muted); }
/* Nhan canh bao tren ma thanh khoan thap (van tra cuu duoc, chi canh bao) */
.lowq-badge { display: inline-block; background: rgba(234,179,8,.14); color: #e8c76a;
    border: 1px solid rgba(234,179,8,.4); border-radius: 5px; padding: 1px 6px;
    font-size: 10px; font-weight: 700; margin-left: 5px; cursor: help; white-space: nowrap; }
.lowq-note { background: rgba(234,179,8,.10); border: 1px solid rgba(234,179,8,.38);
    border-left: 3px solid #e8c76a; border-radius: 8px; padding: 9px 12px;
    font-size: 12.5px; color: #e8c76a; margin: 8px 0; line-height: 1.55; }
tr.lowq-row td { opacity: .78; }
/* Hop giai thich khi tin hieu bi CHAN (RSI cuc doan / du lieu bat thuong / mau thuan) */
.signal-guard { background: rgba(234,179,8,.10); border: 1px solid rgba(234,179,8,.38);
    border-left: 3px solid #e8c76a; border-radius: 8px; padding: 10px 13px;
    font-size: 12.5px; color: #e8c76a; margin: 8px 0; line-height: 1.55; }
/* ============ HOA GIAI PRO <-> DA KHUNG ============ */
/* Nhan khung/nguon du lieu — luon hien de nguoi dung biet moi module chay tren gi */
.tf-src { font-size: 11px; color: var(--muted); margin-top: 7px; padding: 5px 9px;
    background: rgba(138,160,152,.06); border: 1px solid var(--border);
    border-radius: 7px; line-height: 1.5; }
/* Canh bao khi PRO nguoc chieu da so khung */
.reconcile-warn { background: rgba(239,68,68,.10); border: 1px solid rgba(239,68,68,.42);
    border-left: 3px solid #ef4444; border-radius: 9px; padding: 10px 13px;
    font-size: 12px; color: #ffb4a8; margin-top: 8px; line-height: 1.6; }
.reconcile-warn ul { color: #e8c0b8; }
.reconcile-warn li { margin: 3px 0; }
/* ============ GIAI THICH DIEM TUONG DONG MAU HINH ============ */
/* Nut "?" canh moi con so — bam ra popup phuong phap tinh */
.q-help { display: inline-flex; align-items: center; justify-content: center;
    width: 15px; height: 15px; margin-left: 4px; border-radius: 50%; cursor: pointer;
    background: rgba(138,160,152,.18); border: 1px solid var(--border);
    color: var(--muted); font-size: 10px; font-weight: 700; vertical-align: middle; }
.q-help:hover { background: var(--gold); color: #0d0a05; border-color: var(--gold); }
/* Dong cong khai ty le dung THUC TE ngay dau muc tich luy */
.accum-bt { background: rgba(234,179,8,.09); border: 1px solid rgba(234,179,8,.35);
    border-left: 3px solid #e8c76a; border-radius: 9px; padding: 9px 12px;
    font-size: 12px; color: #e8c76a; margin-bottom: 10px; line-height: 1.6; }
/* Hop canh bao trong popup */
.am-warn { background: rgba(234,179,8,.10); border: 1px solid rgba(234,179,8,.38);
    border-radius: 8px; padding: 9px 12px; font-size: 12.5px; color: #e8c76a;
    line-height: 1.6; }
/* ============ Y NGHIA THONG KE (co mau nho) ============ */
/* Banner canh bao khi chua du 30 lenh — chi so chua dang tin */
.sig-warn { background: rgba(234,179,8,.10); border: 1px solid rgba(234,179,8,.40);
    border-left: 3px solid #e8c76a; border-radius: 9px; padding: 10px 13px;
    margin-bottom: 10px; font-size: 12.5px; color: #e8c76a; line-height: 1.55; }
/* Thanh tien do "6/30 lenh" */
.sig-bar { height: 7px; background: rgba(138,160,152,.18); border-radius: 4px; overflow: hidden; }
.sig-bar-fill { height: 100%; background: linear-gradient(90deg,#e8c76a,#d4af37);
    border-radius: 4px; transition: width .4s ease; }
/* Lam mo chi so NHAY voi co mau (profit factor, expectancy, Sharpe, max DD) */
.stat-dim { opacity: .45; filter: grayscale(.75); position: relative; cursor: help; }
.stat-dim .value { font-weight: 600 !important; }
.sig-inline { display: inline-block; background: rgba(234,179,8,.14); color: #e8c76a;
    border: 1px solid rgba(234,179,8,.4); border-radius: 4px; padding: 0 5px;
    font-size: 10px; font-weight: 700; margin-left: 4px; cursor: help; white-space: nowrap; }
/* ============ LOAI HINH DOANH NGHIEP ============ */
/* Nhan loai hinh + giai thich vi sao an chi so — tranh nguoi dung tuong
     la thieu du lieu trong khi thuc ra chi so do VO NGHIA voi loai hinh nay */
.biz-badge { background: rgba(138,160,152,.07); border: 1px solid var(--border);
    border-left: 3px solid var(--gold); border-radius: 8px; padding: 8px 12px;
    margin-bottom: 9px; line-height: 1.5; }
/* Khung dinh gia dinh che tai chinh (DDM + Excess Return) */
.fin-val { background: var(--panel2); border: 1px solid var(--border);
    border-radius: 10px; padding: 12px 14px; margin-top: 12px; }
/* ============ DCF: nguon tham so + dai gia tri ============ */
/* Nhan ro tham so nao la UOC LUONG (fallback) vs tinh tu du lieu THAT */
.dcf-fb { display: inline-block; background: rgba(234,179,8,.16); color: #e8c76a;
    border: 1px solid rgba(234,179,8,.42); border-radius: 4px; padding: 0 5px;
    font-size: 9.5px; font-weight: 700; margin-left: 3px; cursor: help; white-space: nowrap; }
.dcf-real { display: inline-block; background: rgba(16,185,129,.14); color: #86efac;
    border: 1px solid rgba(16,185,129,.38); border-radius: 4px; padding: 0 5px;
    font-size: 9.5px; font-weight: 700; margin-left: 3px; cursor: help; white-space: nowrap; }
/* Dai gia tri hop ly — thay cho 1 con so don le */
.dcf-range { background: linear-gradient(135deg, rgba(212,175,55,.12), rgba(28,42,36,.4));
    border: 1px solid rgba(212,175,55,.4); border-radius: 9px; padding: 10px 13px;
    margin-bottom: 10px; line-height: 1.5; }
/* SL cam ket vs SL thuc te — hien so THAT thay vi chi cau quang cao */
.sl-reality { margin-top: 5px; padding-top: 5px; border-top: 1px dashed var(--border);
    font-size: 10.5px; line-height: 1.5; }
.sl-reality.ok { color: #86efac; }
.sl-reality.bad { color: #fca5a5; }
/* ============ BADGE DO TRE NGUON DU LIEU (goc widget) ============ */
.src-badge { position: absolute; top: 12px; right: 14px; z-index: 4; display: inline-flex; align-items: center;
    gap: 4px; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 20px; cursor: help;
    border: 1px solid transparent; white-space: nowrap; }
/* Chua badge o goc -> tieu de panel chua badge chua san le phai de khong de len */
@media (max-width: 560px) { .panel > h2:first-of-type { padding-right: 0; } .src-badge { position: static; display: inline-flex; margin-bottom: 8px; top: auto; right: auto; } }
.src-badge.sb-green  { background: rgba(34,197,94,.14);  color: var(--green);  border-color: rgba(34,197,94,.35); }
.src-badge.sb-yellow { background: rgba(234,179,8,.16);  color: var(--yellow); border-color: rgba(234,179,8,.4); }
.src-badge.sb-gray   { background: rgba(138,160,152,.14);color: var(--muted);  border-color: rgba(138,160,152,.3); }
.src-badge.sb-purple { background: rgba(168,85,247,.18); color: #c084fc;       border-color: rgba(168,85,247,.5); animation: sbPulse 1.6s infinite; }
.src-badge.sb-blue   { background: rgba(59,130,246,.14); color: #93c5fd;       border-color: rgba(59,130,246,.4); }
.src-badge .sb-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.src-badge.sb-green .sb-dot { animation: sbPulse 1.6s infinite; }
@keyframes sbPulse { 50% { opacity: .35; } }
/* Canh bao T+0 noi bat (du lieu tre dung cho phai sinh) */
.t0-warn { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.5); border-left: 4px solid var(--red);
    border-radius: 8px; padding: 10px 13px; margin: 8px 0 12px; font-size: 12.5px; line-height: 1.6; color: #ffb4a8; }
.t0-warn b { color: var(--red); }
/* ============ HUB PHÁI SINH VIP — tone đen-vàng ngân hàng ============ */
.futures-hub {
    --vip-gold: #d4af37;
    --vip-gold-bright: #ffd700;
    --vip-gold-dim: #8a7020;
    --vip-bg: #0d0a05;
    --vip-bg2: #17120a;
    --vip-border: rgba(212,175,55,.32);
    background: linear-gradient(180deg, #0d0a05 0%, #1a1408 100%) !important;
    border: 1px solid var(--vip-border) !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,.55), inset 0 1px 0 rgba(212,175,55,.15) !important;
    padding: 0 !important;
    overflow: hidden;
    position: relative;
  }
/* Summary (khi đóng): 1 hàng gọn với icon + title + hint + chevron */
.futures-hub > summary {
    list-style: none; cursor: pointer;
    padding: 14px 22px;
    display: flex; align-items: center; gap: 14px;
    position: relative;
    background: linear-gradient(135deg, transparent 60%, rgba(212,175,55,.08) 100%);
    transition: background .2s;
  }
.futures-hub > summary::-webkit-details-marker { display: none; }
.futures-hub > summary:hover { background: linear-gradient(135deg, transparent 40%, rgba(212,175,55,.14) 100%); }
.futures-hub[open] > summary { border-bottom: 1px solid var(--vip-border); }
.futures-hub[open] > summary::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--vip-gold), transparent); opacity: .7;
  }
.futures-summary-icon {
    font-size: 22px; line-height: 1;
    filter: drop-shadow(0 1px 6px rgba(255,215,0,.4));
    animation: crown-glow 3s ease-in-out infinite;
  }
@keyframes crown-glow { 50% { filter: drop-shadow(0 2px 12px rgba(255,215,0,.7)); } }
.futures-summary-title {
    font-size: 15px; font-weight: 800; letter-spacing: 2px;
    background: linear-gradient(90deg, #ffd700, #d4af37, #f5d971, #ffd700);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: gold-shine 6s linear infinite;
    text-transform: uppercase;
  }
@keyframes gold-shine { to { background-position: 200% center; } }
.futures-summary-hint { font-size: 11px; color: #8a7d5a; font-style: italic; margin-left: auto; }
.futures-hub[open] .futures-summary-hint { display: none; }
.futures-summary-chevron {
    color: var(--vip-gold); font-size: 14px; transition: transform .25s;
  }
.futures-hub[open] .futures-summary-chevron { transform: rotate(180deg); }
/* Scope tone vàng cho các card + button trong hub */
.futures-hub .panel, .futures-hub #deriv-body, .futures-hub #deriv-bot-body { padding: 0 22px 20px; }
.futures-hub .card { background: #16110780; border-color: rgba(212,175,55,.18); border-radius: 10px; }
.futures-hub .card:hover { border-color: var(--vip-gold); box-shadow: 0 6px 18px rgba(212,175,55,.18); }
.futures-hub .card .label { color: #a89658; }
.futures-hub h2, .futures-hub b, .futures-hub .value { color: #f5e8a8; }
.futures-hub #deriv-pro-hub {
    border-top: 2px solid var(--vip-gold) !important;
    background: radial-gradient(ellipse at top, rgba(212,175,55,.06), transparent);
    padding-top: 16px !important; margin-top: 18px !important;
  }
.futures-hub .badge.b-buy { background: rgba(212,175,55,.18); color: var(--vip-gold-bright); border: 1px solid rgba(212,175,55,.4); }
.futures-hub .badge.b-sell { background: rgba(212,80,60,.2); color: #ff9678; border: 1px solid rgba(212,80,60,.4); }
.futures-hub button, .futures-hub .tf { border-color: rgba(212,175,55,.35) !important; }
.futures-hub button.on, .futures-hub .tf.on {
    background: linear-gradient(135deg, #d4af37, #a08020) !important;
    color: #0d0a05 !important; font-weight: 800;
    box-shadow: 0 2px 10px rgba(212,175,55,.35);
  }
.futures-hub table th { color: #a89658; border-bottom-color: rgba(212,175,55,.2); }
.futures-hub table td { border-bottom-color: rgba(212,175,55,.1); }
@media (max-width: 640px) {
    .futures-title { font-size: 17px; letter-spacing: 2px; }
    .futures-crown { font-size: 32px; }
    .futures-badge-wrap { margin-left: 0; margin-top: 8px; }
  }
.card:hover { transform: translateY(-2px); border-color: rgba(16,185,129,.4); box-shadow: 0 6px 16px rgba(16,185,129,.1); }
table { width: 100%; border-collapse: collapse; }
th { color: var(--muted); font-size: 12px; text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--border); text-transform: uppercase; }
td { padding: 7px 8px; text-align: right; border-bottom: 1px solid #1d2a24; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
tr.clickable { cursor: pointer; transition: background .12s; }
tr.clickable:hover { background: rgba(16,185,129,.08); }
.green { color: var(--green); }
.red { color: var(--red); }
.yellow { color: var(--yellow); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.b-buy   { background: rgba(34,197,94,.16);  color: var(--green); }
.b-sell  { background: rgba(239,68,68,.16);  color: var(--red); }
.b-hold  { background: rgba(138,160,152,.16); color: var(--muted); }
.b-warn  { background: rgba(234,179,8,.18);  color: var(--yellow); }
/* Badge do tin cay (4 bac): do -> vang -> xanh -> xanh dam */
.b-conf-red    { background: rgba(239,68,68,.16); color: var(--red); }
.b-conf-yellow { background: rgba(234,179,8,.18); color: var(--yellow); }
.b-conf-green  { background: rgba(34,197,94,.16); color: var(--green); }
.b-conf-strong { background: rgba(16,185,129,.28); color: #10b981; border: 1px solid rgba(16,185,129,.55); font-weight: 700; }
.alert-box { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.4); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.alert-box.warn { background: rgba(234,179,8,.09); border-color: rgba(234,179,8,.35); }
.alert-box div { margin: 3px 0; }
button { background: linear-gradient(135deg, #10b981, #059669); color: #fff; border: 0; border-radius: 9px; padding: 8px 15px; font-size: 13px; cursor: pointer; font-weight: 600; transition: filter .15s, transform .1s; }
button:hover { filter: brightness(1.12); }
button:active { transform: scale(.97); }
button.small { padding: 4px 10px; font-size: 12px; }
button.danger { background: var(--red); }
button.ghost { background: var(--panel2); color: var(--text); border: 1px solid var(--border); }
input, select { background: var(--panel2); color: var(--text); border: 1px solid var(--border); border-radius: 7px; padding: 8px 10px; font-size: 13px; width: 100%; }
input::placeholder { color: #6f857c; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; align-items: end; }
.form-grid label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.pw-wrap { position:relative; display:flex; align-items:center; }
.pw-wrap input { flex:1; padding-right:36px !important; }
.eye-btn { position:absolute; right:8px; background:none; border:none; color:var(--muted); cursor:pointer; font-size:16px; padding:4px; line-height:1; }
.eye-btn:hover { color:var(--text); }
.sens-hidden { color:transparent !important; text-shadow:0 0 8px var(--muted); user-select:none; }
/* z-index 400/401: modal chi tiet PHAI noi tren MOI thu cua trang (topbar 10,
   o tim kiem 120, chuong 70, cac modal khac 60-83). Truoc day 50/51 -> khi topbar
   tung de z-index 60 thi modal bi de -> chong cheo. Dat cao han han (400) de KHONG
   bao gio bi de lai, du sau nay co them phan tu z-index vua phai. */
#modal-bg { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 400; }
#modal { display: none; position: fixed; top: 4%; left: 50%; transform: translateX(-50%); width: min(960px, 94vw); max-height: 92vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 20px; z-index: 401; box-shadow: 0 18px 50px rgba(0,0,0,.5); }
#modal img { width: 100%; border-radius: 8px; margin-top: 12px; }
.reasons li { margin: 4px 0 4px 18px; color: var(--text); }
.pill-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0; }
.pill-row span b { color: var(--text); }
.pill-row span { color: var(--muted); font-size: 13px; }
details summary { cursor: pointer; color: var(--muted); margin-bottom: 8px; }
/* Mau bang dien tu (chuan VN, sang ro tren nen toi) */
.c-up { color: var(--green); }
.c-down { color: var(--red); }
.c-ref { color: var(--yellow); }
.c-ce { color: #d946ef; }
.c-fl { color: #22d3ee; }
@keyframes flup { 0% { background: rgba(34,197,94,.32); } 100% { background: transparent; } }
@keyframes fldn { 0% { background: rgba(239,68,68,.3); } 100% { background: transparent; } }
.fl-up { animation: flup .8s ease-out; }
.fl-down { animation: fldn .8s ease-out; }
.sig-head { font-size: 13px; font-weight: 700; letter-spacing: .3px; margin: 14px 0 6px; cursor: pointer; user-select: none; }
.sig-head:first-child { margin-top: 6px; }
.sig-chv { font-size: 10px; color: var(--muted); }
.pill { background: var(--panel2); color: var(--muted); border: 1px solid var(--border); border-radius: 20px; padding: 5px 13px; font-size: 12px; cursor: pointer; font-weight: 600; transition: all .12s; }
.pill:hover { border-color: rgba(16,185,129,.4); }
.pill.on { background: linear-gradient(135deg, #10b981, #059669); color: #fff; border-color: transparent; }
/* Bang quy mo: dong dang chon + hover */
#funds-body tbody tr:hover { background: rgba(99,102,241,.08); }
#funds-body tr.fund-sel { background: rgba(99,102,241,.16); box-shadow: inset 3px 0 0 #6366f1; }
#live-dot { color: var(--green); font-size: 12px; font-weight: 700; }
#live-dot .blink { animation: blink 1.2s infinite; display: inline-block; }
@keyframes blink { 50% { opacity: .25; } }
@media (max-width: 700px) { td, th { padding: 5px 4px; font-size: 12px; } }
/* Nut khung thoi gian trong modal chart the gioi */
.tfs { display: flex; gap: 4px; flex-wrap: wrap; }
.tf { background: var(--panel2); color: var(--muted); border: 1px solid var(--border); border-radius: 7px; padding: 4px 10px; font-size: 12px; cursor: pointer; font-weight: 600; }
.tf:hover { color: var(--text); border-color: var(--muted); }
.tf.on { background: linear-gradient(135deg, #10b981, #059669); color: #fff; border-color: transparent; }
/* Nut chi bao ky thuat + pane phu trong modal chart */
#wc-indbar .wc-lbl { color: var(--muted); font-size: 11px; margin-right: 2px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.wc-ind { background: rgba(20,31,26,.8); color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 4px 11px; font-size: 11.5px; cursor: pointer; font-weight: 600; transition: all .15s; }
.wc-ind:hover { color: var(--text); border-color: var(--muted); }
.wc-ind.on { background: linear-gradient(135deg, rgba(16,185,129,.22), rgba(16,185,129,.10)); color: #34d399; border-color: rgba(16,185,129,.65); }
.wc-subpane { height: 0; overflow: hidden; position: relative; border-radius: 10px; margin-top: 5px; }
.wc-subpane.on { height: 96px; border: 1px solid rgba(37,53,45,.55); }
.wc-subtag { position: absolute; z-index: 3; top: 5px; left: 8px; font-size: 10px; font-weight: 800; letter-spacing: .8px; color: var(--muted); background: rgba(11,18,16,.75); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; pointer-events: none; }
#wc-chart-wrap { border: 1px solid rgba(37,53,45,.55); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 28px rgba(0,0,0,.3); }
/* ===== BANG GIA 4 BAC (modal nang cap kieu ChatGPT/Claude) ===== */
.term-pill { background: var(--panel2); color: var(--muted); border: 1px solid var(--border); border-radius: 20px; padding: 6px 15px; font-size: 12.5px; cursor: pointer; font-weight: 600; }
.term-pill:hover { color: var(--text); }
.term-pill.on { background: linear-gradient(135deg, var(--gold), #d9a83c); color: #1a1405; border-color: transparent; }
.tier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: start; }
.tier-col { background: var(--panel2); border: 1px solid var(--border); border-radius: 14px; padding: 16px 14px; position: relative;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
/* Hover: sang vien theo mau goi + nhac len + glow -> cam giac chan thuc.
     --tier-color luon duoc gan (vd "59,130,246") o inline style tung the. */
.tier-col { --tier-color: 245,196,81; }
.tier-col:hover { border-color: rgb(var(--tier-color));
    box-shadow: 0 0 0 1px rgb(var(--tier-color)), 0 10px 34px rgba(var(--tier-color), .28);
    transform: translateY(-4px); z-index: 2; }
.tier-pop { border-width: 2px; }
.tier-badge { position: absolute; top: -10px; right: 12px; font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: 10px; letter-spacing: .5px; }
.tier-btn { display: block; width: 100%; text-align: center; padding: 9px; border-radius: 9px; font-size: 13px; font-weight: 700; margin-top: 4px; color: #fff; border: 0; }
.tier-btn-buy { cursor: pointer; transition: filter .15s, transform .1s; }
.tier-btn-buy:hover { filter: brightness(1.1); }
.tier-btn-buy:active { transform: scale(.98); }
.feat { font-size: 11.5px; line-height: 1.5; margin: 5px 0; color: var(--text); display: flex; gap: 5px; align-items: flex-start; }
.feat-tick { color: var(--green); font-weight: 800; flex: none; }
.feat-inherit { color: var(--muted); font-style: italic; margin-bottom: 7px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
@media (max-width: 820px) { .tier-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .tier-grid { grid-template-columns: 1fr; } }
/* QR floating Phase 1: an tren man hinh nho (<= 1100px) de khong che nen chinh */
@media (max-width: 1100px) { #phase1-qr-float { display: none !important; } }
/* Toast noti khi lenh phai sinh vua khop */
@keyframes toastSlide { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
/* HIEU UNG HOVER CHUNG cho cac nut Zalo (mo Zalo, Zalo ho tro, Zalo phase 1) */
.zalo-btn { transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.zalo-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 22px rgba(59,130,246,.55), 0 0 18px rgba(59,130,246,.35);
    filter: brightness(1.15) saturate(1.15);
  }
.zalo-btn:active { transform: translateY(0) scale(0.99); }
/* Hieu ung pulse nhe nhang cho nut Zalo de thu hut chu y */
@keyframes zaloPulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(24,119,242,.35); }
    50%      { box-shadow: 0 4px 22px rgba(24,119,242,.65); }
  }
.zalo-btn { animation: zaloPulse 2.4s ease-in-out infinite; }
.zalo-btn:hover { animation: none; }
/* dung pulse khi hover de hover effect ro hon */
/* Nhan bac tren tieu de panel (Plus/VIP/Premium) */
.tier-tag { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 10px; vertical-align: middle; cursor: pointer; }
.tag-plus { background: rgba(59,130,246,.18); color: #6ba3f5; }
.tag-vip { background: rgba(245,196,81,.2); color: var(--gold); }
.tag-premium { background: rgba(168,85,247,.18); color: #c084fc; }
/* ===== MAN HINH CHO (landing khi chua dang nhap) ===== */
#lic-lock { display: none; position: fixed; inset: 0; z-index: 100; overflow-y: auto;
    background: radial-gradient(1100px 520px at 15% -8%, #15291e 0%, rgba(21,41,30,0) 55%),
                radial-gradient(900px 480px at 100% 0%, #2a2410 0%, rgba(42,36,16,0) 50%),
                var(--bg); }
.land-wrap { max-width: 1200px; margin: 0 auto; padding: 18px 20px 34px; }
.land-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.land-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; align-items: start; margin-bottom: 24px; }
.land-title { font-size: clamp(28px, 4.4vw, 50px); font-weight: 800; line-height: 1.14; letter-spacing: -1px; }
.land-title .gold { background: linear-gradient(90deg, var(--gold), #fde68a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.land-stats { display: flex; gap: 30px; flex-wrap: wrap; margin: 20px 0 18px; }
.land-stats b { display: block; font-size: 26px; color: var(--gold); }
.land-stats span { font-size: 12px; color: var(--muted); }
.land-card { background: linear-gradient(180deg, rgba(28,42,36,.55), rgba(22,33,28,.92)); border: 1px solid var(--border);
    border-radius: 16px; padding: 24px; box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.land-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.land-row { display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 9px 2px; border-bottom: 1px solid rgba(42,58,50,.55); font-size: 14px; }
.land-row:last-child { border-bottom: 0; }
.land-news-item { padding: 9px 2px; border-bottom: 1px solid rgba(42,58,50,.55); font-size: 13.5px; line-height: 1.45; }
.land-news-item:last-child { border-bottom: 0; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.feat-card { background: var(--panel2); border: 1px solid var(--border); border-radius: 14px; padding: 18px;
    transition: transform .15s, border-color .15s; }
.feat-card:hover { transform: translateY(-3px); border-color: rgba(245,196,81,.45); }
.feat-card .ico { font-size: 26px; margin-bottom: 8px; }
.feat-card b { display: block; margin-bottom: 5px; font-size: 14.5px; }
.feat-card p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.btn-gold { background: linear-gradient(135deg, var(--gold), #d9a83c) !important; color: #1a1405 !important; }
@media (max-width: 900px) { .land-hero, .land-grid2 { grid-template-columns: 1fr; } }
/* ===== Tooltip giai thich thuat ngu (cho nguoi moi) ===== */
.gloss { display: inline-flex; align-items: center; justify-content: center;
    width: 15px; height: 15px; border-radius: 50%; background: var(--panel2);
    border: 1px solid var(--border); color: var(--muted); font-size: 10px;
    font-weight: 700; cursor: help; margin-left: 3px; vertical-align: middle;
    position: relative; user-select: none; flex: none; }
.gloss:hover, .gloss.open { background: var(--gold); color: #1a1405; border-color: var(--gold); }
.gloss .gloss-pop { display: none; position: absolute; bottom: 145%; left: 50%;
    transform: translateX(-50%); width: max(210px, 62vw); max-width: 300px;
    background: #0b120f; color: var(--text); border: 1px solid var(--gold);
    border-radius: 10px; padding: 9px 11px; font-size: 12px; font-weight: 400;
    line-height: 1.5; text-align: left; text-transform: none; letter-spacing: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,.55); z-index: 200; white-space: normal; }
.gloss .gloss-pop b { color: var(--gold); }
.gloss:hover .gloss-pop, .gloss.open .gloss-pop { display: block; }
.gloss .gloss-pop::after { content: ''; position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--gold); }
/* An khoi nang cao khi bat Che do don gian */
body.simple-mode .adv-only { display: none !important; }
/* ============ CHE DO DON GIAN — GIAM TAI NHAN THUC THUC SU ============ */
/* Bang 5 cot: chu to hon, thoang hon vi it cot */
.simple-table th, .simple-table td { padding: 9px 10px; font-size: 13.5px; }
.simple-table td:first-child { font-size: 14px; }
/* Sao do tin cay — thay cho con so % hoac diem */
.stars { letter-spacing: 2px; font-size: 14px; }
.stars.green { color: #86efac; }
.stars.yellow { color: #e8c76a; }
.stars.muted { color: var(--muted); }
/* Khoi 3 cau + ke hoach vao lenh o man chi tiet */
.simple-brief { background: linear-gradient(135deg, rgba(16,185,129,.07), rgba(28,42,36,.5));
    border: 1px solid rgba(16,185,129,.30); border-radius: 12px;
    padding: 14px 16px; margin: 10px 0 14px; }
.simple-q { margin-bottom: 11px; line-height: 1.65; font-size: 13.5px; }
.simple-q:last-of-type { margin-bottom: 0; }
.simple-q-label { font-size: 12px; font-weight: 800; color: #86efac;
    margin-bottom: 2px; letter-spacing: .2px; }
/* Ke hoach vao lenh — LUON noi bat, khong giau trong tab */
.simple-plan { margin-top: 13px; padding-top: 12px; border-top: 1px dashed rgba(16,185,129,.35); }
.simple-plan-title { font-size: 13.5px; font-weight: 800; color: var(--gold); margin-bottom: 8px; }
.simple-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.simple-plan-k { font-size: 11px; color: var(--muted); margin-bottom: 2px; line-height: 1.35; }
.simple-plan-v { font-size: 15px; font-weight: 800; }
.simple-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
    color: var(--muted); cursor: pointer; user-select: none; }
/* ===== Thanh menu section dashboard (kieu VPBankS: bam muc nao chi hien muc do) ===== */
.dash-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(16,185,129,.10), rgba(245,196,81,.06));
    border: 1px solid var(--border); border-radius: 14px; padding: 8px; position: sticky; top: 0; z-index: 45;
    backdrop-filter: blur(8px); box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.dash-nav button { background: transparent; border: 1px solid transparent; color: var(--muted);
    font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 10px; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.dash-nav button:hover { color: var(--text); background: var(--panel2); }
.dash-nav button.on { color: var(--primary); background: rgba(16,185,129,.14);
    border-color: rgba(16,185,129,.4); box-shadow: 0 0 0 1px rgba(16,185,129,.25); }
.dash-section.on { display: block; animation: secFade .25s ease; }
@keyframes secFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .dash-nav { overflow-x: auto; flex-wrap: nowrap; } .dash-nav button { padding: 7px 11px; font-size: 12px; } }
/* ===== Bang dien (bang gia nhieu ma kieu VPBankS) ===== */
.board-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
table.board { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; }
table.board th { background: var(--panel2); color: var(--muted); font-weight: 600; text-align: right;
    padding: 6px 8px; border-bottom: 1px solid var(--border); font-size: 11px; position: sticky; top: 0; z-index: 1; }
table.board td { padding: 5px 8px; text-align: right; border-bottom: 1px solid rgba(42,58,50,.4); }
table.board tr:hover td { background: rgba(16,185,129,.06); }
table.board .sym { text-align: left; font-weight: 700; color: var(--gold); cursor: pointer; }
table.board .sym:hover { text-decoration: underline; }
/* Mau chuan bang dien VN */
.bd-ceil { color: #d05ce3; }
/* tran - tim */
.bd-floor { color: #00bcd4; }
/* san - xanh lo */
.bd-ref { color: var(--gold); }
/* tham chieu - vang */
.bd-up { color: var(--green); }
.bd-down { color: var(--red); }
.board-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.board-tabs button { background: var(--panel2); border: 1px solid var(--border); color: var(--muted);
    font-size: 12px; padding: 5px 11px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.board-tabs button.on { background: rgba(16,185,129,.15); color: var(--primary); border-color: rgba(16,185,129,.4); }
/* ==== BOARD FULL (VPBankS-style): header 2 hang, mau nhom Mua/Ban/Khop ==== */
table.board-full th { text-align: center; padding: 4px 6px; font-size: 10.5px; }
table.board-full td { padding: 4px 6px; font-size: 12px; }
.board-grp .grp-buy   { background: rgba(16,185,129,.14) !important; color: #86efac; border-bottom: 1px solid rgba(16,185,129,.35); }
.board-grp .grp-match { background: rgba(212,175,55,.14) !important; color: #f7d774; border-bottom: 1px solid rgba(212,175,55,.35); }
.board-grp .grp-sell  { background: rgba(239,68,68,.14) !important; color: #fca5a5; border-bottom: 1px solid rgba(239,68,68,.35); }
.board-grp .grp-price { background: rgba(59,130,246,.10) !important; color: #93c5fd; border-bottom: 1px solid rgba(59,130,246,.30); }
.board-grp .grp-du    { background: rgba(168,85,247,.10) !important; color: #c084fc; border-bottom: 1px solid rgba(168,85,247,.30); }
.board-sub .grp-buy   { background: rgba(16,185,129,.06) !important; color: #6ee7b7; }
.board-sub .grp-match { background: rgba(212,175,55,.06) !important; color: #eabf5b; }
.board-sub .grp-sell  { background: rgba(239,68,68,.06) !important; color: #f87171; }
.board-sub .grp-price { background: rgba(59,130,246,.05) !important; color: #93c5fd; }
.board-sub .grp-du    { background: rgba(168,85,247,.05) !important; color: #c084fc; }
/* Volume cot nho hon 1 chut */
table.board-full td.bd-vol { color: var(--muted); font-size: 11px; }
/* Highlight cot Khop (giua bang) */
table.board-full td:nth-child(n) { transition: background .12s; }