* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: #0b0e14; color: #e6edf3; font: 13px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { min-height: 100vh; padding: 14px 12px; }
button, input { font-family: inherit; }

/* chọn ngôn ngữ (góc trên phải) */
.topbar { display: flex; justify-content: space-between; align-items: center; max-width: 932px; margin-bottom: 8px; }
/* nhãn mạng + link sang web BSC */
.netbar { display: inline-flex; gap: 8px; align-items: center; }
.netpill { font-size: 11px; font-weight: 800; letter-spacing: .4px; padding: 3px 8px; border-radius: 6px; background: #1d2a3f; color: #8ab4ff; }
.netlink { font-size: 12px; color: #f0b90b; text-decoration: none; border: 1px solid #243044; border-radius: 8px; padding: 4px 9px; background: #141b27; }
.netlink:hover { border-color: #f0b90b; }
.lang { display: inline-flex; gap: 2px; background: #141b27; border: 1px solid #243044; border-radius: 8px; padding: 2px; }
.lang button {
  border: 0; border-radius: 6px; background: transparent; color: #8b97ab; font-size: 11px; font-weight: 700;
  padding: 4px 9px; cursor: pointer; white-space: nowrap;
}
.lang button:hover { color: #e6edf3; }
.lang button.on { background: #243049; color: #c8f56a; }

/* bảng mua bán nép trái, ô sở hữu bên phải */
.wrap { display: flex; gap: 12px; align-items: flex-start; justify-content: flex-start; }
.card { background: #141b27; border: 1px solid #243044; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.card.trade { width: 360px; flex: none; }
.card.bag { flex: 1 1 auto; min-width: 320px; max-width: 560px; min-height: 200px; }

.row { display: flex; gap: 6px; align-items: center; }
.ca-box { flex: 1; min-width: 0; position: relative; display: flex; }
.ca-box input {
  flex: 1; min-width: 0; background: #0b0e14; color: #fff; border: 1px solid #2a364c; border-radius: 8px; padding: 8px 30px 8px 10px; font-size: 12px;
}
#ca-x {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border: 0; border-radius: 50%; background: #243044; color: #e6edf3; font-size: 15px; line-height: 1; cursor: pointer;
}
#ca-x:hover { background: #ff6b6b; color: #fff; }
.wallet { background: #243049; color: #c8f56a; border: 1px solid #2f3d5c; border-radius: 8px; padding: 8px 10px; cursor: pointer; white-space: nowrap; font-weight: 700; }
.wallet.on { color: #fff; border-color: #c8f56a; }
.logout { background: #3a1a1a; color: #ff8a80; border: 1px solid #6b2a2a; border-radius: 8px; padding: 8px 8px; cursor: pointer; font-weight: 700; white-space: nowrap; }

.tok-line { display: flex; align-items: center; gap: 6px; font-size: 12px; min-height: 20px; }
.tok-line img { width: 18px; height: 18px; border-radius: 50%; background: #243044; object-fit: cover; }
.tok-line img[src=""] { display: none; }
.tok-line b { color: #fff; }
.muted { color: #8b97ab; font-size: 11px; font-weight: 400; }

.head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.head b { margin-left: auto; color: #e6edf3; font-weight: 600; font-size: 12px; }
.head.buy { color: #26a69a; }
.head.sell { color: #ef5350; }

/* (5) SOL / USDC / USDT đúng màu logo */
.bases { display: inline-flex; gap: 5px; }
.bases button {
  width: 24px; height: 24px; border: 0; border-radius: 50%; color: #fff; cursor: pointer; font-weight: 900; font-size: 12px;
  opacity: .35; filter: saturate(.6); transition: opacity .12s, transform .12s;
}
.bases button:hover { opacity: .8; }
.bases button.on { opacity: 1; filter: none; transform: scale(1.08); box-shadow: 0 0 0 2px #0b0e14, 0 0 0 4px #e6edf3; }
.bases .b-sol { background: linear-gradient(135deg, #9945ff 0%, #14f195 100%); color: #0b0e14; }
.bases .b-usdc { background: #2775ca; }
.bases .b-usdt { background: #26a17b; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.grid button, .grid input {
  border: 0; border-radius: 8px; padding: 9px 2px; font-weight: 800; font-size: 12px; cursor: pointer; width: 100%; min-width: 0;
  user-select: none; touch-action: manipulation;
}
.grid.buy button { background: #143028; color: #3ee0a0; border: 1px solid #1f5a3f; }
.grid.buy button:hover { background: #1a4736; }
.grid.sell button { background: #3a1a1a; color: #ff8a80; border: 1px solid #6b2a2a; }
.grid.sell button:hover { background: #4a2222; }
.grid button.busy { opacity: .6; cursor: progress; }
.grid input { background: #0b0e14; color: #fff; border: 1px solid #3a4d6e; text-align: center; cursor: text; }

.opt { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #9aa7bd; }
.opt label { display: flex; align-items: center; gap: 6px; }
#slip { width: 58px; background: #0b0e14; color: #fff; border: 1px solid #2a364c; border-radius: 8px; padding: 4px 6px; }
#edit { background: #171e2b; color: #c5d0e0; border: 1px solid #263044; border-radius: 8px; padding: 5px 10px; cursor: pointer; }

.gap { height: 8px; }

.cols, .vals { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.3fr; gap: 4px; font-size: 11px; }
.cols span { color: #8b97ab; }
.vals span { font-weight: 700; color: #e6edf3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vals #v-sell { color: #c8f56a; }
.up { color: #26a69a !important; }
.dn { color: #ff8a80 !important; }
.na { color: #8b97ab !important; font-weight: 500; }

.msg { margin: 2px 0 0; font-size: 11px; color: #9aa7bd; word-break: break-all; min-height: 14px; }
.msg.err { color: #ff8a80; }
.msg.ok { color: #7ee0a8; }
.msg a { color: #c8f56a; }
.mode { margin: 0; font-size: 10px; color: #6b7891; line-height: 1.45; }
.mode.dry { color: #f5c542; }

/* ===== Sở hữu ===== */
.bag-h { font-weight: 700; font-size: 13px; color: #e8edf5; display: flex; align-items: baseline; gap: 8px; }
.bag-cols, .bag-row { display: grid; grid-template-columns: 1.3fr 0.9fr 1fr 1.3fr; gap: 6px; align-items: center; }
.bag-cols { font-size: 10px; color: #8b97ab; padding: 0 4px 2px; border-bottom: 1px solid #1a2230; }
#bag-list { display: flex; flex-direction: column; }
.bag-item { border-bottom: 1px solid #1a2230; padding: 6px 4px 6px; }
.bag-item:hover { background: #171e2b; }
.bag-row { cursor: pointer; }
.bag-row .tk { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bag-row .tk img { width: 18px; height: 18px; border-radius: 50%; background: #243044; object-fit: cover; flex: none; }
.bag-row .tk img[src=""] { display: none; }
.bag-row .tk b { font-size: 13px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bag-row .tk small { color: #8b97ab; font-size: 10px; display: block; }
.bag-row .bought { color: #c5d0e0; font-size: 12px; font-weight: 700; }
.bag-row .usd { color: #c8f56a; font-weight: 800; font-size: 12px; }
.bag-row .pnl { font-weight: 700; font-size: 11px; }
/* dòng 2: thanh TP/SL (trái) + nút Bán 100% (phải) */
.bag-ctl { display: flex; align-items: center; gap: 6px; padding-top: 4px; }
.bag-ctl .tpsl { flex: 1; min-width: 0; }
.bag-sell {
  flex: none; background: #3a1a1a; color: #ff8a80; border: 0; border-radius: 6px;
  padding: 5px 7px; font-size: 10px; line-height: 1.15; font-weight: 800; cursor: pointer; white-space: nowrap;
}
.bag-sell:hover { background: #4a2222; }
.bag-sell.busy { opacity: .6; }

/* TP / SL kéo chuột (giống Jup Trade) */
.tpsl { padding: 2px 0 0; user-select: none; }
.tp-track { position: relative; height: 18px; background: #131a26; border-radius: 9px; margin: 2px 8px 4px; touch-action: none; }
.tp-fill { position: absolute; top: 6px; height: 6px; opacity: .55; }
.tp-fill.sl { background: #ff6b6b; border-radius: 3px 0 0 3px; }
.tp-fill.tp { background: #26a69a; border-radius: 0 3px 3px 0; }
.tp-zero { position: absolute; top: 2px; width: 2px; height: 14px; background: #e8edf5; margin-left: -1px; }
.tp-h { position: absolute; top: 1px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; cursor: ew-resize; border: 2px solid #0b0e14; opacity: .45; }
.tp-h.sl { background: #ff6b6b; }
.tp-h.tp { background: #26a69a; }
.tp-h.set { opacity: 1; box-shadow: 0 0 0 2px rgba(255,255,255,.18); }
.tp-h:hover { opacity: 1; transform: scale(1.12); }
.tp-now { position: absolute; top: -1px; width: 3px; height: 20px; margin-left: -1px; background: #f5c542; border-radius: 2px; pointer-events: none; }
.tp-lab { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; }
.tp-lab .sl { color: #ff8a80; text-align: left; }
.tp-lab .tp { color: #26a69a; text-align: right; }
.tp-sw { color: #c5d0e0; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.tpsl.on .tp-sw { color: #f5c542; }
.tp-state { grid-column: 1 / -1; color: #8b97ab; font-weight: 600; text-align: center; font-size: 10px; }
.tp-state:empty { display: none; }

@media (max-width: 780px) {
  .wrap { flex-direction: column; }
  .card.trade, .card.bag { width: 100%; max-width: none; min-width: 0; }
}

.foot { margin-top: 14px; font-size: 11px; line-height: 1.5; color: #8b97ab; max-width: 932px; }
.foot a { color: #c8f56a; }

.fee-setup { display: flex; gap: 6px; align-items: center; font-size: 11px; color: #f5c542; }
.fee-setup button { background: #3a2f10; color: #f5c542; border: 1px solid #6b5a1e; border-radius: 6px; padding: 4px 8px; cursor: pointer; font-weight: 700; }

/* Tiết kiệm (cuối bảng mua bán) */
.save-box { margin-top: 4px; padding-top: 8px; border-top: 1px solid #1a2230; display: flex; flex-direction: column; gap: 6px; }
.save-line1 { font-size: 12px; color: #c5d0e0; }
.save-line1 b { color: #c8f56a; font-size: 15px; font-weight: 800; margin-left: 2px; }
.save-line2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: #c5d0e0; }
.save-line2 small { color: #8b97ab; font-size: 10px; }
.save-note { font-size: 11px; color: #f5c542; }
.save-note.paid { color: #7ee0a8; }
#save-claim {
  background: #f59e0b; color: #1a1200; border: 1px solid #c77d06;
  border-radius: 8px; padding: 6px 12px; font-weight: 800; font-size: 12px; cursor: pointer;
}
#save-claim:hover { background: #fbbf24; }
#save-claim:disabled { opacity: .35; cursor: not-allowed; }
#save-claim:disabled:hover { background: #f59e0b; }


/* ===== Xu hướng Sol + BSC (GMGN) ===== */
.wrap { flex-wrap: wrap; }
.card.trend { flex: 1 1 520px; min-width: 420px; max-width: 760px; min-height: 200px; }
.tr-h { flex-wrap: wrap; }
.tr-ctl { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; }
.tr-tf { display: inline-flex; gap: 2px; background: #0f1520; border: 1px solid #243044; border-radius: 6px; padding: 1px; }
.tr-tf button { border: 0; border-radius: 5px; background: transparent; color: #8b97ab; font-size: 10px; font-weight: 700; padding: 2px 7px; cursor: pointer; }
.tr-tf button.on { background: #243049; color: #c8f56a; }
#tr-liq { background: #0f1520; color: #c5d0e0; border: 1px solid #243044; border-radius: 6px; font-size: 10px; padding: 2px 4px; }
.tr-cols, .tr-row { display: grid; grid-template-columns: 30px 1.5fr 0.8fr 0.8fr 0.75fr 0.75fr 0.5fr 1.4fr; gap: 6px; align-items: center; }
.tr-cols { font-size: 10px; color: #8b97ab; padding: 0 4px 2px; border-bottom: 1px solid #1a2230; }
#trend-list { display: flex; flex-direction: column; }
.tr-row { border-bottom: 1px solid #1a2230; padding: 5px 4px; cursor: pointer; }
.tr-row:hover { background: #171e2b; }
.tr-row.other { opacity: .85; }
.tr-row .ch { font-size: 9px; font-weight: 800; letter-spacing: .3px; padding: 2px 4px; border-radius: 4px; text-align: center; }
.tr-row .ch.sol { background: #1d2a3f; color: #8ab4ff; }
.tr-row .ch.bsc { background: #3a2f07; color: #f0b90b; }
.tr-row .tk { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tr-row .tk img { width: 18px; height: 18px; border-radius: 50%; background: #243044; object-fit: cover; flex: none; }
.tr-row .tk img[src=""] { display: none; }
.tr-row .tk b { font-size: 12px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; max-width: 110px; }
.tr-row .tk small { color: #8b97ab; font-size: 9px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.tr-row .pc { font-weight: 800; font-size: 12px; }
.tr-row .pc2 { font-weight: 600; font-size: 11px; opacity: .85; }
.tr-row .up { color: #c8f56a; }
.tr-row .dn { color: #ff6b6b; }
.tr-row .lq, .tr-row .mc { color: #c5d0e0; font-size: 11px; font-weight: 600; }
.tr-row .ag { color: #8b97ab; font-size: 11px; }
.tr-row .fl { display: flex; flex-wrap: wrap; gap: 3px; }
.tr-row .tf { font-style: normal; font-size: 9px; font-weight: 800; padding: 1px 4px; border-radius: 4px; white-space: nowrap; }
.tr-row .tf.bad { background: #3a1a1a; color: #ff8a80; }
.tr-row .tf.warn { background: #3a2f07; color: #f0b90b; }
.tr-row .tf.good { background: #163a22; color: #7fe3a0; }
@media (max-width: 780px) {
  .card.trend { width: 100%; max-width: none; min-width: 0; }
  .tr-cols, .tr-row { grid-template-columns: 28px 1.4fr 0.8fr 0.8fr 0.7fr 0.7fr 1.2fr; }
  .tr-cols span:nth-child(7), .tr-row .ag { display: none; }
}

/* ===== Chart GMGN ở giữa (giống Jup Trade) ===== */
.mid { flex: 2 1 420px; min-width: 400px; display: flex; flex-direction: column; gap: 12px; }
.wrap > .card.bag { flex: 1 1 100%; max-width: none; min-width: 0; }
.card.trend { flex: 1 1 420px; min-width: 420px; max-width: 760px; }
.card.vip { flex: 1 1 300px; min-width: 280px; max-width: none; min-height: 360px; padding: 0; overflow: hidden; }
.vip-open {
  flex: 1; min-height: 340px; border: 0; border-radius: 11px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: #c8f56a; background: radial-gradient(circle at 50% 42%, #21311c 0, #141b27 44%, #101620 100%);
  font-size: 19px; font-weight: 900; letter-spacing: .2px;
}
.vip-open:hover { box-shadow: inset 0 0 0 1px #c8f56a, inset 0 0 32px rgba(200,245,106,.08); }
.vip-open small { color: #8b97ab; font-size: 11px; font-weight: 600; }
#vip-box { min-height: 358px; height: 100%; display: flex; flex-direction: column; }
.vip-h {
  display: flex; align-items: center; justify-content: space-between; padding: 10px;
  border-bottom: 1px solid #243044; color: #c8f56a; font-weight: 900;
}
.vip-h small { color: #8b97ab; font-size: 10px; font-weight: 600; }
/* Nút chuông báo lệnh mua mới (cạnh tiêu đề Bot AI tự trade) */
.vip-bell { margin-left: 4px; padding: 2px 7px; font-size: 14px; line-height: 1.2; vertical-align: middle; border: 1px solid #3a465d; background: #171e2b; border-radius: 6px; cursor: pointer; opacity: .6; filter: grayscale(1); }
.vip-bell.on { opacity: 1; filter: none; border-color: #c8f56a; background: #243049; }
.vip-bell:hover { opacity: 1; }
.vip-bell[hidden] { display: none; }
.vip-h-main { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.vip-v2 { color: #9aa7bd; font-size: 12px; font-weight: 600; line-height: 1.35; padding: 0 6px 1px; }
.vip-h-right { display: flex; align-items: center; gap: 6px; }
.sig-auto-btn { border: 0; background: transparent; color: #c8f56a; font: inherit; font-weight: 900; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.sig-auto-btn.on { cursor: default; }
.sig-auto-btn:not(.on) { color: #c8f56a; border: 1px solid #3a465d; background: #171e2b; }
.sig-auto-btn:not(.on):hover { border-color: #c8f56a; }
.sig-help-btn { margin-left: 6px; padding: 2px 8px; font-size: 11px; font-weight: 800; line-height: 1.4; vertical-align: middle; border: 1px solid #3a465d; background: #171e2b; color: #c8f56a; border-radius: 6px; cursor: pointer; }
.sig-help-btn:hover, .sig-help-btn.on { border-color: #c8f56a; }
.sig-help-btn.on { background: #243049; }
#vip-logout, .vip-close {
  border: 1px solid #3a465d; background: #171e2b; color: #9aa7bd; border-radius: 6px; cursor: pointer;
}
#vip-logout { padding: 4px 8px; font-size: 10px; }
#vip-list { max-height: 500px; min-height: 320px; overflow-y: auto; padding: 6px; }
.vip-sig {
  width: 100%; display: grid; grid-template-columns: 34px auto minmax(0,1fr); gap: 7px; align-items: baseline;
  border: 0; border-bottom: 1px solid #1a2230; border-radius: 5px; background: transparent;
  color: #e6edf3; padding: 7px 5px; cursor: pointer; text-align: left; font-size: 12px;
}
.vip-sig:hover { background: #1a2332; }
.vip-sig .ago { color: #8b97ab; text-align: right; font-variant-numeric: tabular-nums; }
.vip-sig .what { font-weight: 900; white-space: nowrap; }
.vip-sig.touch.l30 .what { color: #ff6b6b; }
.vip-sig.touch.l50 .what { color: #26a69a; }
.vip-sig.near .what { color: #f5c542; }
.vip-sig.dump .what { color: #ff9800; }
.vip-sig.buy .what { color: #fff; }
.vip-sig.x30 .what { color: #7dffb2; }
.vip-sig.x30.combo .what { color: #fff; }
.vip-sig b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Kèo từ bot tự trade: 2 mục Đang giữ / Đã đóng */
.vip-tabs { display: flex; gap: 4px; padding: 6px 8px 2px; }
.vip-tabs[hidden], .vip-note[hidden] { display: none; }
.vip-tabs button { flex: 1; border: 1px solid #243044; background: #0f1520; color: #8b97ab; border-radius: 6px; padding: 5px 6px; font-size: 11px; font-weight: 700; cursor: pointer; }
.vip-tabs button.on { background: #243049; color: #c8f56a; border-color: #3a4a66; }
.vip-sig.bot { grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; }
.vip-sig.bot .nm { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.vip-sig.bot .nm small { color: #8b97ab; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vip-sig.bot .nm small i { color: #f5c542; font-style: normal; font-weight: 700; }
.vip-sig.bot .pl { font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.vip-sig.bot .pl small { font-size: 10px; font-weight: 700; opacity: .85; }
.vip-sig.bot .pl.pos { color: #26a69a; }
.vip-sig.bot .pl.neg { color: #ff6b6b; }
.vip-sig.bot .pl.new { color: #f5c542; font-size: 10px; }
.vip-sig.bot.fresh { background: rgba(200,245,106,.07); }
.vip-stat { padding: 6px 6px 7px; color: #8b97ab; font-size: 11px; border-bottom: 1px solid #1a2230; }
.vip-stat.warn { color: #f5c542; }
.vip-stat b.pos { color: #26a69a; }
.vip-stat b.neg { color: #ff6b6b; }
.vip-note { padding: 6px 10px 8px; color: #6f7b90; font-size: 10px; line-height: 1.4; border-top: 1px solid #1a2230; }
/* Chọn ngày: mục Đã đóng và Sổ lệnh xem từng ngày */
.vip-day { display: flex; align-items: center; gap: 6px; padding: 5px 8px 2px; color: #8b97ab; font-size: 11px; }
.vip-day[hidden] { display: none; }
.vip-day select, .vb-day { background: #0f1520; color: #c8f56a; border: 1px solid #3a4a66; border-radius: 6px; padding: 4px 6px; font-size: 11px; font-weight: 700; cursor: pointer; }
.vip-day select { flex: 1; min-width: 0; }
.vb-day { align-self: center; }
/* Sổ kèo VIP: bảng tổng quan kèo đã vào / đã chốt */
.wrap > .card.vipbook { flex: 1 1 100%; max-width: none; min-width: 0; padding: 10px 0 0; gap: 8px; overflow: hidden; }
.card.vipbook[hidden] { display: none; }
.card.vipbook .bag-h { padding: 0 12px; flex-wrap: wrap; }
.vb-toggle { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: inherit; font: inherit; font-weight: 900; cursor: pointer; padding: 0; }
.vb-toggle small { color: #8b97ab; font-size: 11px; font-weight: 600; text-decoration: underline; }
.vipbook.shut .vb-scroll, .vipbook.shut > .vip-note { display: none; }
.card.vipbook .bag-h b.pos, .vb td.pl.pos { color: #26a69a; }
.card.vipbook .bag-h b.neg, .vb td.pl.neg { color: #ff6b6b; }
.vb-scroll { max-height: 560px; overflow: auto; }
.vb { width: 100%; min-width: 720px; max-width: 1280px; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.vb th { position: sticky; top: 0; z-index: 1; background: #101722; color: #8b97ab; font-weight: 600; font-size: 11px; text-align: left; padding: 8px 12px; border-bottom: 1px solid #243044; white-space: nowrap; }
.vb td { padding: 7px 12px; border-bottom: 1px solid #1a2230; color: #d5dce8; white-space: nowrap; vertical-align: middle; }
.vb tbody tr[data-mint] { cursor: pointer; }
.vb tbody tr[data-mint]:hover { background: #1a2332; }
.vb td.tk b { display: block; color: #6cb6ff; font-weight: 600; font-size: 13px; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.vb td.tk small { display: block; color: #8b97ab; font-size: 10px; font-family: ui-monospace, Consolas, monospace; }
.vb td.st { color: #f5c542; font-weight: 700; }
.vb td.now { color: #8b97ab; }
.vb td.pl { font-weight: 700; }
.vb td.pl small { margin-left: 6px; font-size: 10px; font-weight: 600; opacity: .8; }
.vb tr.hold { background: rgba(245,197,66,.045); }
.vb td.na { text-align: center; padding: 22px; }
.vip-modal {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  padding: 18px; background: rgba(4,7,12,.82); backdrop-filter: blur(4px);
}
.vip-login {
  position: relative; width: min(360px, 100%); padding: 24px; border-radius: 14px;
  border: 1px solid #3b4b68; background: #141b27; box-shadow: 0 20px 60px #000b;
  display: flex; flex-direction: column; gap: 12px;
}
.vip-login > b { color: #c8f56a; font-size: 18px; text-align: center; }
.vip-login p { color: #9aa7bd; text-align: center; margin: 0; }
.vip-login input { background: #0b0e14; color: #fff; border: 1px solid #35445f; border-radius: 8px; padding: 11px; }
.vip-login button[type="submit"] { border: 0; border-radius: 8px; padding: 10px; cursor: pointer; background: #c8f56a; color: #11170d; font-weight: 900; }
.vip-close { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; font-size: 18px; }
.vip-login.sig-help { width: min(440px, 100%); }
.vip-login.sig-help p { text-align: left; font-size: 13px; line-height: 1.55; }
#vip-error { min-height: 16px; color: #ff8a80; text-align: center; }
.card.chart { gap: 6px; }
.ch-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.chart-tf { display: inline-flex; gap: 2px; background: #0f1520; border: 1px solid #243044; border-radius: 6px; padding: 1px; }
.chart-tf button { border: 0; border-radius: 5px; background: transparent; color: #8b97ab; font-size: 11px; font-weight: 700; padding: 3px 8px; cursor: pointer; }
.chart-tf button.on { background: #243049; color: #c8f56a; }
.ch-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11px; color: #8b97ab; }
.ch-stats b { color: #e6ecf5; font-weight: 700; }
.ch-stats b.warn { color: #f0b90b; }
.ch-stats b.bad { color: #ff6b6b; }
#st-flags { color: #ff6b6b; font-weight: 700; }
.ch-frame { position: relative; height: 600px; min-height: 260px; resize: vertical; overflow: hidden; border-radius: 8px; background: #0b0f17; border: 1px solid #243044; }
.ch-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.ch-frame .na { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; }
@media (max-width: 780px) {
  .mid { min-width: 0; flex-basis: 100%; }
  .ch-frame { height: 320px; }
  .card.trend { min-width: 0; }
  .card.vip { width: 100%; min-width: 0; }
}

/* nút copy địa chỉ contract trên đầu chart */
.ch-ca { display: inline-flex; align-items: center; gap: 5px; background: #0f1520; border: 1px solid #243044; border-radius: 6px; color: #c5d0e0; font: 600 11px/1 ui-monospace, Consolas, monospace; padding: 4px 8px; cursor: pointer; }
.ch-ca:hover { border-color: #3a4a66; color: #fff; }
.ch-ca.ok { color: #c8f56a; border-color: #4e6b2a; }

/* ===== Ví web (tạo trong trình duyệt, khoá bằng mật khẩu) ===== */
.ww-btn { background: #1b2433; color: #c8f56a; border: 1px solid #2f3d5c; border-radius: 999px; padding: 3px 9px; cursor: pointer; font-weight: 700; font-size: 11px; white-space: nowrap; max-width: 118px; overflow: hidden; text-overflow: ellipsis; }
.ww-btn:hover { border-color: #c8f56a; }
.ww-btn.locked { color: #f5c542; }
.ww-btn.on { color: #0b0e14; background: #c8f56a; border-color: #c8f56a; }
.ww-modal { position: fixed; inset: 0; background: rgba(5, 8, 14, .78); display: flex; align-items: center; justify-content: center; z-index: 9998; padding: 12px; }
.ww-modal[hidden] { display: none; }
.ww-card { width: 100%; max-width: 440px; max-height: 94vh; overflow: auto; background: #141b27; border: 1px solid #2f3d5c; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 20px 60px #000b; }
.ww-h { display: flex; justify-content: space-between; align-items: center; font-size: 15px; color: #c8f56a; }
.ww-h .x { background: transparent; border: 0; color: #9aa7bd; font-size: 20px; cursor: pointer; }
.ww-sec { display: flex; flex-direction: column; gap: 8px; }
.ww-sec[hidden], .ww-sec [hidden] { display: none; }
.ww-sec label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #9aa7bd; }
.ww-sec input, .ww-sec textarea { background: #0b0e14; border: 1px solid #3a4d6e; color: #fff; border-radius: 8px; padding: 8px; font-size: 13px; width: 100%; box-sizing: border-box; }
.ww-sec input:focus { border-color: #c8f56a; outline: none; }
.ww-sec .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ww-sec button { background: #243049; color: #e6edf3; border: 1px solid #2f3d5c; border-radius: 8px; padding: 8px 12px; cursor: pointer; font-weight: 700; font-size: 12px; }
.ww-sec button:disabled { opacity: .5; cursor: default; }
.ww-sec button.primary { background: #c8f56a; color: #11170d; border-color: #c8f56a; }
.ww-sec button.danger { background: #3a1a1a; color: #ff8a80; border-color: #6b2a2a; }
.ww-sec .hint { margin: 0; font-size: 12px; color: #9aa7bd; line-height: 1.45; }
.ww-sec .hint.warn { color: #f5c542; }
.ww-sec .hint code { color: #c8f56a; word-break: break-all; }
.ww-sec .addr-row { display: flex; gap: 6px; align-items: center; }
.ww-sec .addr-row code { flex: 1; font-size: 12px; background: #0b0e14; border: 1px solid #243044; border-radius: 8px; padding: 7px 8px; word-break: break-all; color: #c8f56a; }
.ww-sec .bal-row { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #e6edf3; }
#ww-export-box { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid #1a2230; padding-top: 8px; }
#ww-export-box[hidden] { display: none; }
#ww-pk-out { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: #f5c542; resize: none; }
