:root {
  --bg: #0e1016; --panel: #141720; --panel2: #131826; --line: #1f2636; --text: #e7e9ee; --muted: #8a91a3;
  --gold: #e6b450; --gold2: #f5d58a; --green: #16c784; --red: #f0465a; --blue: #2962ff; --orange: #ff9800;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(1200px 500px at 70% -10%, #1a1606 0%, transparent 60%), var(--bg);
  color: var(--text); font-family: "Be Vietnam Pro", system-ui, sans-serif; font-size: 15px; line-height: 1.5; }
a { color: var(--gold2); text-decoration: none; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.gold-t { background: linear-gradient(90deg, var(--gold), var(--gold2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; background: rgba(7, 9, 15, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); letter-spacing: .5px; }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #111;
  background: linear-gradient(135deg, var(--gold), var(--gold2)); font-size: 14px; }
.nav { display: flex; gap: 18px; margin-left: 12px; }
.nav a { color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--text); }
.top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.btn { border: 0; border-radius: 10px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn.gold { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #16120a; }
.btn.gold:hover { filter: brightness(1.08); }
.btn.line { background: transparent; color: var(--gold2); border: 1px solid #5a4a22; }
.btn.ghost { background: transparent; color: var(--text); }
.btn.big { padding: 14px 26px; font-size: 16px; }
.btn.full { width: 100%; padding: 12px; margin-top: 6px; }
.user-chip { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.user-chip b { color: var(--text); }

.banner { text-align: center; padding: 10px 16px; font-weight: 600; font-size: 14px; }
.banner.trial { background: #10233a; color: #9cc7ff; }
.banner.vip { background: #14261b; color: #8ff0b8; }
.banner.none { background: #2a1416; color: #ffb3bb; }
.banner button { margin-left: 10px; }

/* hero */
.hero { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; padding: 34px 0 22px; }
.hero h1 { font-size: 38px; line-height: 1.15; margin: 0 0 10px; font-weight: 800; }
.hero-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.k-label { color: var(--muted); font-size: 13px; }
.k-val { font-size: 26px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; }
.k-sub { color: var(--muted); font-size: 12px; }
.pos { color: var(--green); } .neg { color: var(--red); }

/* cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card h2 { margin: 0; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.sub-h { font-size: 15px; margin: 18px 0 8px; color: var(--muted); font-weight: 600; }
.grid-main { display: grid; grid-template-columns: 1.65fr 1fr; gap: 18px; }
.grid-main .card { margin-bottom: 18px; }
.chart-card { padding: 12px; }
.tv { height: 560px; border-radius: 10px; overflow: hidden; }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.tab { background: var(--panel2); color: var(--muted); border: 1px solid var(--line); border-radius: 9px; padding: 7px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.tab.active { color: #16120a; background: linear-gradient(135deg, var(--gold), var(--gold2)); border-color: transparent; }
.small-tabs { margin: 0; }
.tf-tabs { margin: 0; }
.tf-tabs .tab { padding: 6px 10px; min-width: 38px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(22, 199, 132, .6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(22, 199, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 199, 132, 0); } }

/* signals */
.signals-card { max-height: 640px; overflow: auto; }
.sig-list { display: flex; flex-direction: column; gap: 10px; }
.sig { position: relative; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; overflow: hidden; }
.sig-top { display: flex; align-items: center; gap: 8px; }
.side { font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 6px; letter-spacing: .5px; }
.side.BUY { background: rgba(22, 199, 132, .15); color: var(--green); }
.side.SELL { background: rgba(240, 70, 90, .15); color: var(--red); }
.sig-sym { font-weight: 700; }
.sig-no { color: var(--muted); font-size: 13px; }
.sig-state { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); }
.sig-pips { margin-left: 8px; font-weight: 800; font-variant-numeric: tabular-nums; }
.lv { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 6px 10px; margin-top: 10px; font-size: 13px; }
.lv div span { display: block; color: var(--muted); font-size: 11px; }
.lv div b { font-variant-numeric: tabular-nums; }
.lv .hit b { color: var(--green); }
.locked .lv { filter: blur(6px); user-select: none; }
.lock { position: absolute; inset: 40px 0 0 0; display: grid; place-items: center; text-align: center; font-size: 13px; }
.lock button { margin-top: 6px; }
.empty { color: var(--muted); font-size: 14px; padding: 14px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; }

/* stats */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.trade-list { display: flex; flex-direction: column; gap: 6px; }
.tr-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2, #121725); font-variant-numeric: tabular-nums; }
.tr-res { text-align: right; white-space: nowrap; }
.tr-remark { grid-column: 1 / -1; margin-top: 2px; }
.tr-total { margin-top: 8px; padding: 12px 14px; font-size: 16px; }
@media (max-width: 640px) { .tr-row { grid-template-columns: 1fr auto; } .tr-time { grid-column: 1 / -1; font-size: 12px; } }
.cap-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cap { background: linear-gradient(180deg, #151a28, #10141e); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.cap .c-top { color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; }
.cap .c-val { font-size: 22px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }
.cap .c-pct { font-size: 13px; font-weight: 600; }

/* history */
.hist { display: grid; grid-template-columns: 300px 1fr; gap: 16px; }
.day-list { display: flex; flex-direction: column; gap: 6px; max-height: 460px; overflow: auto; }
.day { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.day.active { border-color: var(--gold); }
.day .d-pips { font-weight: 700; font-variant-numeric: tabular-nums; }
.input { width: 100%; background: #0a0d14; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; margin-top: 4px; }
.input:focus { outline: none; border-color: var(--gold); }
.input.date { width: auto; margin: 0; color-scheme: dark; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: linear-gradient(120deg, #1b1607, #0e121b 60%); border-color: #3a3016; }
.cta h2 { font-size: 22px; }
.foot { color: var(--muted); font-size: 13px; padding: 10px 16px 40px; }

/* modals */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .65); display: grid; place-items: center; padding: 16px; }
.dialog { position: relative; width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; max-height: 92vh; overflow: auto; }
.dialog h3 { margin: 0 0 6px; font-size: 20px; }
.dialog label { display: block; font-size: 13px; color: var(--muted); margin-top: 12px; }
.x { position: absolute; right: 12px; top: 8px; background: none; border: 0; color: var(--muted); font-size: 26px; cursor: pointer; }
.err { color: var(--red); font-size: 13px; min-height: 18px; margin: 8px 0 0; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #14261b; color: #8ff0b8; padding: 12px 18px; border-radius: 12px; z-index: 60; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); max-width: calc(100% - 32px); }

@media (max-width: 980px) {
  .hero, .grid-main, .hist { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .tv { height: 420px; }
  .nav { display: none; }
}
@media (max-width: 640px) {
  .top-in { gap: 8px; }
  .logo span:last-child { display: none; }
  .top-actions .btn.ghost { padding: 9px 8px; }
  .top-actions .btn.line { display: none; }
  .btn.gold { padding: 9px 12px; }
  .hero h1 { font-size: 28px; }
  .hero-kpis { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .k-val { font-size: 19px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .tv { height: 360px; }
}

/* ---------- login / sign-up panel ---------- */
.auth { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; width: 100%; max-width: 860px; max-height: 94vh;
  overflow: auto; border-radius: 22px; border: 1px solid #2a2a1c; background: #0e1016;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(230,180,80,.06); animation: pop .22s ease-out; }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.auth .x { z-index: 2; }
.auth-side { position: relative; padding: 30px 28px; overflow: hidden;
  background: radial-gradient(420px 260px at 0% 0%, rgba(230,180,80,.22), transparent 60%),
              radial-gradient(380px 300px at 100% 100%, rgba(41,98,255,.18), transparent 60%), #12141c; }
.auth-side::after { content: ""; position: absolute; inset: auto -40px -40px auto; width: 220px; height: 220px; border-radius: 50%;
  border: 1px dashed rgba(230,180,80,.25); }
.auth-side h3 { font-size: 26px; line-height: 1.25; margin: 26px 0 18px; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; }
.perks i { font-style: normal; display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px;
  background: rgba(230,180,80,.1); border: 1px solid rgba(230,180,80,.25); }
.perks b { display: block; font-size: 14px; }
.perks span { color: var(--muted); font-size: 13px; }
.trial-chip { display: inline-block; margin-top: 22px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--gold2); background: rgba(230,180,80,.1); border: 1px solid rgba(230,180,80,.3); }
.auth-main { padding: 30px 28px 24px; }
.auth-main h3 { margin: 18px 0 4px; font-size: 21px; }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: #161922; border: 1px solid var(--line);
  border-radius: 12px; padding: 4px; margin-right: 28px; }
.seg-b { position: relative; z-index: 1; background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600;
  padding: 9px; cursor: pointer; transition: color .2s; }
.seg-b.active { color: #16120a; }
.seg-ind { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), var(--gold2)); transition: transform .25s ease; }
.seg[data-on="register"] .seg-ind { transform: translateX(100%); }
.field { position: relative; margin-top: 14px; }
.field input { width: 100%; height: 54px; padding: 20px 42px 6px 44px; border-radius: 12px; background: #0a0c12; color: var(--text);
  border: 1px solid #252a36; font: inherit; transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(230,180,80,.12); }
.field label { position: absolute; left: 44px; top: 17px; color: var(--muted); font-size: 14px; pointer-events: none; transition: all .15s; margin: 0; }
.field input:focus + label, .field input:not(:placeholder-shown) + label { top: 7px; font-size: 11px; color: var(--gold2); }
.field .ico { position: absolute; left: 14px; top: 16px; font-size: 16px; opacity: .8; }
.field .eye { position: absolute; right: 10px; top: 12px; background: none; border: 0; cursor: pointer; font-size: 16px; opacity: .5; padding: 4px; }
.field .eye.on { opacity: 1; }
.meter { height: 4px; border-radius: 4px; background: #1c2030; margin-top: 10px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.auth .btn.full { height: 50px; font-size: 16px; margin-top: 8px; box-shadow: 0 10px 24px rgba(230,180,80,.18); }
.auth .center { margin: 10px 0 0; }
@media (max-width: 760px) {
  .auth { grid-template-columns: 1fr; max-height: 100vh; border-radius: 18px; }
  .auth-side { padding: 22px 20px; }
  .auth-side h3 { font-size: 21px; margin: 14px 0 0; }
  .perks, .auth-side::after { display: none; }
  .trial-chip { margin-top: 12px; }
  .auth-main { padding: 20px; }
}

/* =====================================================================
   CRM MKT look (NVT Agency): deep navy, teal glow, sky-blue pill buttons,
   purple→blue bars, glass bottom bar, light / dark switch.
   ===================================================================== */
:root {
  --bg: #0a1020; --panel: #121a2e; --panel2: #16203a; --line: #22304f; --text: #eef2fa; --muted: #8e9ab8;
  --pri: #4aa3e6; --pri2: #74bdf2; --violet: #8b6cf0; --green: #3dd68c; --red: #f2667a; --gold: #d9b25f; --gold2: #f1d58e;
  --grad: linear-gradient(90deg, #8b6cf0, #4aa3e6);
  --glow: radial-gradient(900px 520px at 85% 8%, rgba(32, 140, 160, .22), transparent 60%),
          radial-gradient(700px 500px at 0% 40%, rgba(90, 70, 200, .14), transparent 60%),
          radial-gradient(900px 600px at 60% 100%, rgba(30, 110, 150, .16), transparent 60%);
  --card-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px rgba(0, 0, 0, .25);
  --radius: 22px;
}
:root[data-theme="light"] {
  --bg: #eef3fa; --panel: #ffffff; --panel2: #f4f7fc; --line: #e1e8f3; --text: #0f1b33; --muted: #5f6f8f;
  --glow: radial-gradient(900px 520px at 85% 8%, rgba(74, 163, 230, .18), transparent 60%),
          radial-gradient(700px 500px at 0% 40%, rgba(139, 108, 240, .10), transparent 60%);
  --card-shadow: 0 10px 30px rgba(30, 60, 120, .08);
}
body { background: var(--glow), var(--bg); background-attachment: fixed; color: var(--text); }
.top { background: color-mix(in srgb, var(--bg) 82%, transparent); }
.logo { gap: 12px; }
.logo-mark { width: 54px; height: 34px; border-radius: 10px; font-size: 16px; font-weight: 900; letter-spacing: -.5px;
  color: #1b1405; background: linear-gradient(135deg, #f6e3a8, #c99a3c 55%, #f1d58e); box-shadow: 0 0 0 2px rgba(255,255,255,.08); }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text b { font-size: 15px; letter-spacing: 2px; }
.logo-text small { color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: 3px; margin-top: 3px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent;
  color: var(--text); cursor: pointer; font-size: 19px; }
.icon-btn:hover { background: var(--panel2); }
.icon-btn.lang-btn { width: auto; padding: 0 10px; font-size: 13px; font-weight: 700; white-space: nowrap; }

.card, .kpi, .sig, .cap, .day { background: var(--panel); border-color: var(--line); box-shadow: var(--card-shadow); }
.sig, .cap, .day { background: var(--panel2); box-shadow: none; }
.card { border-radius: var(--radius); }
.kpi { border-radius: 18px; }
.cap { background: var(--panel2); }

/* primary actions: sky-blue pills like the CRM */
.btn { border-radius: 999px; }
.btn.gold, .tab.active { background: var(--pri); color: #fff; box-shadow: 0 8px 22px rgba(74, 163, 230, .35); border-color: transparent; }
.btn.gold:hover { background: var(--pri2); filter: none; }
.btn.line { color: var(--pri2); border-color: color-mix(in srgb, var(--pri) 45%, transparent); }
.btn.ghost { color: var(--text); }
.tabs { background: var(--panel2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; display: inline-flex; }
.tab { border: 0; background: transparent; border-radius: 999px; }
.small-tabs { margin: 0; }
.gold-t { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pos { color: var(--green); } .neg { color: var(--red); }
.cta { background: linear-gradient(120deg, rgba(139,108,240,.18), rgba(74,163,230,.10) 50%, var(--panel)); border-color: var(--line); }
.banner.trial { background: rgba(74,163,230,.14); color: var(--pri2); }
.banner.vip { background: rgba(61,214,140,.12); color: var(--green); }
.banner.none { background: rgba(242,102,122,.12); color: var(--red); }
.input:focus, .field input:focus { border-color: var(--pri); box-shadow: 0 0 0 4px rgba(74,163,230,.15); }
.input, .field input { background: color-mix(in srgb, var(--bg) 70%, var(--panel)); border-color: var(--line); color: var(--text); }
.input.date { color-scheme: dark; }
:root[data-theme="light"] .input.date { color-scheme: light; }
.side.BUY { background: rgba(61,214,140,.14); }
.side.SELL { background: rgba(242,102,122,.14); }
.day.active { border-color: var(--pri); }
.tf-tabs { margin: 0; }
.tf-tabs .tab { padding: 6px 10px; min-width: 38px; }
.live-dot { background: var(--green); }

/* purple→blue progress bar under each stat card, like "Hook win" */
.bar { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--line) 70%, transparent); margin-top: 10px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; background: var(--grad); }

/* greeting row */
.hello { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 6px; flex-wrap: wrap; }
.hello h2 { margin: 0; font-size: 26px; font-weight: 800; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; background: var(--panel);
  border: 1px solid var(--line); font-weight: 600; font-size: 14px; }

/* login panel in CRM colours */
.auth { background: var(--panel); border-color: var(--line); }
.auth-side { background: radial-gradient(420px 260px at 0% 0%, rgba(139,108,240,.28), transparent 60%),
  radial-gradient(380px 300px at 100% 100%, rgba(32,140,160,.30), transparent 60%), var(--panel2); }
.auth-side::after { border-color: rgba(116,189,242,.25); }
.perks i { background: rgba(74,163,230,.12); border-color: rgba(74,163,230,.3); }
.trial-chip { color: var(--pri2); background: rgba(74,163,230,.12); border-color: rgba(74,163,230,.35); }
.seg { background: var(--panel2); border-color: var(--line); }
.seg-b.active { color: #fff; }
.seg-ind { background: var(--pri); box-shadow: 0 8px 22px rgba(74,163,230,.35); }
.field input:focus + label, .field input:not(:placeholder-shown) + label { color: var(--pri2); }
.auth .btn.full { box-shadow: 0 10px 24px rgba(74,163,230,.3); }
.dialog { background: var(--panel); border-color: var(--line); }

/* glass bottom bar on phones */
.bottom-nav { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 96px; }
  .bottom-nav { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: repeat(6, 1fr);
    padding: 6px; border-radius: 26px; border: 1px solid var(--line);
    background: color-mix(in srgb, var(--panel) 80%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 40px rgba(0,0,0,.35); }
  .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px;
    border-radius: 20px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
  .bottom-nav .ni { font-size: 20px; line-height: 1.1; }
  .bottom-nav .on { color: var(--pri); background: color-mix(in srgb, var(--pri) 14%, transparent); }
  .top-actions .btn.ghost, .top .btn.gold { display: none; }
  .hello h2 { font-size: 22px; }
}

/* splash, like the CRM loading orb */
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--glow), var(--bg); transition: opacity .4s; }
.splash.out { opacity: 0; pointer-events: none; }
.orb { position: relative; width: 150px; height: 90px; margin: 0 auto 22px; }
.orb::before { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d8f0ff, #4aa3e6 55%, #2a5da8); box-shadow: 0 0 40px rgba(74,163,230,.6); }
.orb::after { content: ""; position: absolute; inset: 18px 0; border-radius: 50%; border: 3px solid rgba(116,189,242,.8);
  border-left-color: transparent; transform: rotate(-12deg); animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(348deg); } }
.splash-t { text-align: center; font-weight: 800; letter-spacing: 8px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.splash-s { text-align: center; color: var(--muted); font-size: 14px; margin-top: 4px; }

@media (max-width: 640px) {
  .logo span.logo-text { display: flex; }
  .logo-text b { font-size: 13px; letter-spacing: 1.5px; }
}
.tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; }

/* taller chart + running setup drawn on it */
.tv { height: min(78vh, 720px); min-height: 520px; }
.chart-bar { display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.chart-bar .tabs { margin: 0; }
.chart-box { position: relative; }
.setup-legend { position: absolute; left: 12px; bottom: 40px; z-index: 3; display: flex; flex-direction: column; gap: 4px; max-width: calc(100% - 110px);
  padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--panel) 86%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(8px); font-size: 13px; pointer-events: none; }
.setup-legend b { font-size: 14px; }
.setup-legend .row2 { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); }
.setup-legend .e { color: var(--pri2); } .setup-legend .s { color: var(--red); } .setup-legend .t { color: var(--green); }
@media (max-width: 760px) { .tv { height: 70vh; min-height: 480px; } .chart-card { padding: 10px; } }
@media (max-width: 760px) { .setup-legend { font-size: 12px; padding: 8px 10px; gap: 2px; } .setup-legend .row2 { gap: 6px; } }
/* legend sits above the chart, never over the levels */
.chart-box { display: flex; flex-direction: column; }
.setup-legend { position: static; order: -1; max-width: none; margin-bottom: 10px; flex-direction: row; flex-wrap: wrap;
  align-items: center; gap: 6px 14px; box-shadow: none; pointer-events: auto; }
.setup-legend .row2 { gap: 6px 12px; }

/* ---------- signal cards v2 ---------- */
.sig-list { gap: 14px; }
.sc { position: relative; background: var(--panel2); border: 1px solid var(--line); border-radius: 20px; padding: 16px; overflow: hidden; }
.sc::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); opacity: .9; }
.sc.is-closed::before { opacity: .35; }
.sc-head { display: flex; align-items: center; gap: 12px; }
.sc-head .side { font-size: 13px; padding: 6px 10px; border-radius: 10px; }
.sc-title { display: flex; flex-direction: column; min-width: 0; }
.sc-title b { font-size: 17px; }
.sc-title b small { color: var(--muted); font-weight: 600; font-size: 12px; margin-left: 4px; }
.sc-title span { color: var(--muted); font-size: 12.5px; }
.pill2 { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px;
  font-weight: 700; white-space: nowrap; background: color-mix(in srgb, var(--muted) 15%, transparent); color: var(--muted); }
.pill2.run { background: rgba(61,214,140,.14); color: var(--green); }
.pill2.wait { background: rgba(74,163,230,.14); color: var(--pri2); }
.pill2.win { background: rgba(61,214,140,.14); color: var(--green); }
.pill2.loss { background: rgba(242,102,122,.14); color: var(--red); }
.blink { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
.sc-big { font-size: 30px; font-weight: 800; margin: 12px 0 2px; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 8px; }
.sc-big small { font-size: 13px; font-weight: 600; color: var(--muted); }
.sc-img { display: block; position: relative; width: 100%; margin: 12px 0 4px; padding: 0; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; background: #0b0e14; cursor: zoom-in; aspect-ratio: 16 / 9; }
.sc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-img span { position: absolute; right: 8px; bottom: 8px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: #fff; background: rgba(0,0,0,.55); }
.trk { margin: 16px 4px 4px; }
.trk-bar { position: relative; height: 8px; border-radius: 99px; background: var(--line); }
.trk-risk { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px 0 0 99px; background: rgba(242,102,122,.35); }
.trk-rew { position: absolute; top: 0; bottom: 0; border-radius: 0 99px 99px 0; background: rgba(61,214,140,.22); }
.trk-fill { position: absolute; top: 0; bottom: 0; }
.trk-fill.up { background: var(--green); } .trk-fill.dn { background: var(--red); }
.trk-now { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff;
  border: 3px solid var(--pri); box-shadow: 0 0 0 4px rgba(74,163,230,.25); }
.trk-ticks { position: relative; height: 18px; margin-top: 6px; font-size: 11px; font-weight: 700; }
.trk-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; color: var(--muted); }
.trk-ticks span:first-child { transform: none; }
.trk-ticks span:last-child { transform: translateX(-100%); }
.trk-ticks .s { color: var(--red); } .trk-ticks .e { color: var(--pri2); } .trk-ticks .t { color: var(--green); }
.trk-ticks .hit::after { content: " ✓"; }
.lvls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.lvl { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; padding: 10px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 70%, transparent); border: 1px solid var(--line); border-left: 4px solid var(--muted); }
.lvl span { grid-column: 1 / -1; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.lvl b { font-size: 16px; font-variant-numeric: tabular-nums; }
.lvl em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); align-self: center; justify-self: end; }
.lvl.e { border-left-color: var(--pri); } .lvl.s { border-left-color: var(--red); } .lvl.t { border-left-color: var(--green); }
.lvl.s em { color: var(--red); } .lvl.t em { color: var(--green); }
.lvl.hit { background: rgba(61,214,140,.10); }
.lvl.e { grid-column: 1 / -1; }
.sc-foot { margin-top: 10px; color: var(--muted); font-size: 13px; }
.sc-foot b { color: var(--text); }
.sc-lockbox { position: relative; margin-top: 12px; }
.sc-blur { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; filter: blur(7px); opacity: .7; user-select: none; }
.lock2 { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; font-size: 14px; }
.lb { position: relative; max-width: min(1200px, 96vw); }
.lb img { width: 100%; border-radius: 14px; display: block; }
.lb .x { color: #fff; right: -6px; top: -40px; }
/* SMC indicator layer on the gold chart */
#setupChart { position: relative; }
.smc-layer { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; }
.smc-tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 99px; font-weight: 600; font-size: 12px;
  background: rgba(74,163,230,.15); color: var(--pri, #4aa3e6); margin-right: 6px; }
.setup-legend .chips { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; margin-top: 4px; }
.setup-legend .chip { border: 1px solid var(--line, #22304f); background: transparent; color: var(--muted, #8e9ab8); border-radius: 99px;
  padding: 3px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.setup-legend .chip { opacity: .55; padding: 4px 11px; }
.setup-legend .chip.on { opacity: 1; background: rgba(74,163,230,.18); border-color: #4aa3e6; color: #4aa3e6; font-weight: 600; }
/* price ticker strip (TradingView ticker tape) */
.ticker { min-height: 46px; overflow: hidden; border-bottom: 1px solid var(--line, #22304f); background: var(--panel, #121a2e); }
.ticker .tradingview-widget-container { min-height: 46px; height: auto !important; }
.ticker iframe { display: block; min-height: 46px; } /* the widget sets its own height (taller on phones); never cut the prices */
/* macro panel: calendar, rates, reserves, news */
.macro .macro-next { margin: 4px 0 14px; padding: 10px 14px; border-radius: 12px; background: rgba(242,54,69,.10);
  border: 1px solid rgba(242,54,69,.35); font-size: 14px; }
.macro table.cal td:first-child { white-space: nowrap; }
.macro tr.hi td { font-weight: 600; }
.macro tr.past { opacity: .55; }
.macro .imp { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.macro .imp.High { background: rgba(242,54,69,.15); color: #f2667a; }
.macro .imp.Medium { background: rgba(230,184,74,.15); color: #e6b84a; }
.macro .tagk { font-size: 11px; padding: 1px 6px; border-radius: 6px; background: rgba(74,163,230,.15); color: #4aa3e6; margin-left: 4px; }
.macro .bars { display: grid; gap: 8px; margin: 8px 0 6px; }
.macro .bar-r { display: grid; grid-template-columns: minmax(120px, 170px) 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.macro .bb { height: 10px; border-radius: 99px; background: rgba(142,154,184,.15); overflow: hidden; }
.macro .bb i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #e6b84a, #f5d27a); }
.macro .news { display: grid; gap: 8px; margin-top: 6px; }
.macro .news-i { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; text-decoration: none;
  color: inherit; border: 1px solid var(--line, #22304f); background: rgba(255,255,255,.02); }
.macro .news-i:hover { border-color: #4aa3e6; }
.macro .news-i span { font-size: 12px; color: var(--muted, #8e9ab8); }
.macro #macroTabs { flex-wrap: wrap; }
@media (max-width: 760px) { .macro .bar-r { grid-template-columns: 110px 1fr auto; font-size: 12px; } .macro table.cal { font-size: 12px; } }
.macro tr.calday th.dayh { all: unset; display: table-cell; text-align: left; font-weight: 700; padding: 16px 8px 6px;
  color: var(--gold, #e6b84a); border-bottom: 1px solid rgba(142,154,184,.25); }
.macro tr.calday.today th.dayh { color: #4aa3e6; }
@media (max-width: 760px) { .macro #macroTabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; } }
.macro td.act.up { color: #089981; font-weight: 700; }
.macro td.act.down { color: #f23645; font-weight: 700; }
.macro .brief { line-height: 1.6; font-size: 14px; padding: 4px 2px; }
.macro .brief a { color: #4aa3e6; }
.macro table.cal.week { width: 100%; }
.tf-tabs { margin: 0; }
.tf-tabs .tab { padding: 6px 10px; min-width: 38px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #f23645; display: inline-block; margin-right: 6px;
  animation: livePulse 1.4s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.live-at { font-size: 12px; color: var(--muted, #8e9ab8); margin-left: 6px; }
.setup-legend .key { display:inline-block; width:10px; height:10px; border-radius:2px; margin:0 4px 0 8px; vertical-align:-1px; }
.setup-legend .key.sup { background: rgba(242,54,69,.55); } .setup-legend .key.dem { background: rgba(8,153,129,.6); }
.setup-legend .key.liq { background: rgba(230,184,74,.75); }
/* market analysis */
.analysis .ana { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.analysis .ana-img img { width: 100%; border-radius: 12px; display: block; }
.analysis .ana-text { line-height: 1.6; font-size: 14.5px; }
.analysis .ana-lock { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 16px; }
@media (max-width: 760px) { .analysis .ana { grid-template-columns: 1fr; } }
.sc-why { margin: 8px 12px 4px; font-size: 13.5px; }
.sc-why summary { cursor: pointer; font-weight: 600; color: var(--gold, #e6b84a); }
.sc-why ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.55; }
.sc-why li b { margin-right: 4px; }
/* scalping board */
.scalp .scalp-sum { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; font-size: 16px; }
.scalp .zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.scalp .zone { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); }
.scalp .zone.sell { background: rgba(240,70,90,.08); } .scalp .zone.buy { background: rgba(22,199,132,.08); }
.scalp .zone span { font-weight: 700; font-size: 15px; }
.bottom-nav a.hot { color: var(--gold); }
.bottom-nav a.hot .ni { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.18); } }

/* lock boxes that stand alone in a section (analysis, scalping) stay inside their section */
.lock2.ana-lock, .lock2.box-lock { position: static; inset: auto; padding: 22px 14px; border: 1px dashed var(--line, #2a3556);
  border-radius: 14px; background: rgba(230,184,74,.06); margin: 10px 0; }
#anaBody, #scalpBody { position: relative; }
.scalp .scalp-sum { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line, #2a3556); gap: 4px; }
.scalp .scalp-sum.none { background: rgba(142,154,184,.08); }
.scalp .scalp-sum.has { background: rgba(61,214,140,.10); border-color: rgba(61,214,140,.5); }
.scalp .scalp-sum .ok { color: var(--green, #3dd68c); font-size: 13px; font-weight: 600; }
.scalp .scalp-sum.flash { animation: sumflash 1.2s ease; }
@keyframes sumflash { 0% { box-shadow: 0 0 0 0 rgba(230,184,74,.8); } 100% { box-shadow: 0 0 0 14px rgba(230,184,74,0); } }
/* AI chart reading */
.aichart #aiBody { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.ai-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 120px; padding: 16px;
  border: 2px dashed var(--line, #2a3556); border-radius: 14px; cursor: pointer; text-align: center; color: var(--muted); }
.ai-drop.over, .ai-drop:hover { border-color: #e6b84a; color: var(--text); }
.ai-drop img { max-width: 100%; max-height: 260px; border-radius: 10px; }
.ai-note { padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line, #2a3556); background: transparent; color: var(--text); font: inherit; }
.ai-res { padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(230,184,74,.45); background: rgba(230,184,74,.06); line-height: 1.65; }
.ai-wait { padding: 12px; color: var(--muted); }
.ai-img { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; margin-bottom: 8px; }
.ai-img img { width: 100%; border-radius: 12px; display: block; border: 1px solid rgba(230,184,74,.4); }
.ai-img span { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 8px; }
#aiOut .btn.small { align-self: flex-start; margin: 0 0 10px; display: inline-block; }
/* Nến Thanh Khoản logo */
.logo-img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 1px rgba(230,184,74,.45), 0 4px 14px rgba(167,139,250,.25); flex: none; }
.splash-logo { display: block; width: 132px; height: 132px; margin: 0 auto 16px; border-radius: 28px; box-shadow: 0 0 40px rgba(167,139,250,.35); animation: logoPulse 1.6s ease-in-out infinite; }
@keyframes logoPulse { 50% { transform: scale(1.05); box-shadow: 0 0 60px rgba(230,184,74,.45); } }
.nav a, .logo-text b, .logo-text small { white-space: nowrap; }
@media (max-width: 1500px) { .nav { gap: 14px; } .nav a { font-size: 14px; } }
@media (max-width: 1280px) { .nav a[href="#thong-ke"], .nav a[href="#lich-su"] { display: none; } }
@media (max-width: 1120px) { .nav a[href="#vi-mo"], .nav a[href="#ai-chart"] { display: none; } }
/* header greeting: one line, short name on narrow desktops */
.user-chip { white-space: nowrap; }
.user-chip b { display: inline-block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
@media (max-width: 1380px) { .user-chip { display: none; } }
/* on-demand setup M5/M15 */
.scan5-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.scan5-out { margin: 4px 0 14px; }
.scan5-res { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start;
  border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--panel2); }
.scan5-res.has { border-color: color-mix(in srgb, var(--green) 55%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 14%, transparent); }
.scan5-img { width: 100%; border-radius: 12px; display: block; cursor: zoom-in; }
.scan5-txt { font-size: 14px; line-height: 1.65; }
.scan5-txt i { color: var(--muted); }
@media (max-width: 900px) { .scan5-res { grid-template-columns: 1fr; } }

/* intro video for visitors (Loom, vertical 9:16) */
.intro-video { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 28px; align-items: center; margin-bottom: 22px; }
.iv-frame { border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.iv-ratio { position: relative; padding-bottom: 177.78%; height: 0; }
.iv-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.iv-text h2 { font-size: 26px; margin: 10px 0 8px; line-height: 1.25; }
.iv-list { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 8px; }
.iv-btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) {
  .intro-video { grid-template-columns: 1fr; gap: 16px; }
  .iv-frame { max-width: 320px; width: 100%; margin: 0 auto; }
  .iv-text h2 { font-size: 21px; }
  .iv-btns .btn { flex: 1 1 100%; }
}

/* VIP form: capital and experience as tap-to-pick chips */
.pick { margin: 12px 0 4px; }
.pick-lbl { display: block; font-size: 14px; margin-bottom: 8px; }
.pick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-row label { margin: 0; cursor: pointer; }
.pick-row input { position: absolute; opacity: 0; pointer-events: none; }
.pick-row span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel2); font-weight: 600; font-size: 14px; transition: all .15s; }
.pick-row label:hover span { border-color: var(--pri, var(--gold)); }
.pick-row input:checked + span { background: var(--pri, var(--gold)); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(74,163,230,.3); }
.pick-row input:focus-visible + span { outline: 2px solid var(--pri, var(--gold)); outline-offset: 2px; }

/* header: long button labels shorten on smaller screens so nothing gets cut off */
.top-in .btn { white-space: nowrap; }
.top-in .l-full, .nav .nav-x { display: none; }
@media (min-width: 1800px) { .top .wrap { max-width: 1760px; } .top-in .l-full { display: inline; } .top-in .l-short { display: none; } }
@media (min-width: 2100px) { .nav .nav-x { display: inline; } }
@media (max-width: 1799px) { .nav a:nth-child(n+4) { display: none; } }
@media (max-width: 1240px) { .nav a:nth-child(n+3) { display: none; } }
@media (max-width: 1140px) { .nav { display: none; } }

/* computer: landscape intro video, larger */
.intro-video.iv-wide { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); }
.intro-video.iv-wide .iv-ratio { padding-bottom: 56.25%; }

/* running signals: count summary + compact rows */
.open-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; margin-left: 6px; border-radius: 999px;
  background: var(--red, #f2667a); color: #fff; font-size: 14px; font-weight: 800; vertical-align: middle; }
.live-sum { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--panel2);
  border: 1px solid var(--line); }
.ls-n { display: flex; align-items: center; gap: 10px; }
.ls-n b { font-size: 40px; line-height: 1; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ls-n span { font-size: 13px; color: var(--muted); line-height: 1.25; font-weight: 600; white-space: nowrap; }
.ls-n { flex: none; }
.ls-chips { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.ls-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: rgba(140,150,170,.14); }
.ls-chip.run { background: rgba(61,214,140,.14); color: var(--green); }
.ls-chip.wait { background: rgba(74,163,230,.14); color: var(--pri2, #4aa3e6); }
.ls-chip.pos { color: var(--green); } .ls-chip.neg { color: var(--red); }
.ls-per { width: 100%; font-size: 12.5px; color: var(--muted); }
.sr { border: 1px solid var(--line); border-radius: 16px; background: var(--panel2); overflow: hidden; }
.sr.run { border-left: 4px solid var(--green); }
.sr.wait { border-left: 4px solid var(--pri2, #4aa3e6); }
.sr > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; }
.sr > summary::-webkit-details-marker { display: none; }
.sr > summary:hover { background: rgba(255,255,255,.03); }
.sr .side { font-size: 13px; padding: 6px 9px; border-radius: 10px; }
.sr-t { display: flex; flex-direction: column; min-width: 0; }
.sr-t b { font-size: 16px; white-space: nowrap; } .sr-t small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.sr .pill2 { margin-left: auto; font-size: 12px; padding: 4px 9px; white-space: nowrap; }
.sr-r { min-width: 92px; text-align: right; font-size: 13px; color: var(--muted); }
.sr-pips { font-size: 17px; font-variant-numeric: tabular-nums; }
.sr-pips.pos { color: var(--green); } .sr-pips.neg { color: var(--red); }
.sr-caret { color: var(--muted); transition: transform .2s; }
.sr[open] .sr-caret { transform: rotate(180deg); }
.sr-body { padding: 0 10px 10px; }
.sr-body .sc { border-radius: 14px; }
.sr-body .sc-head { display: none; }
@media (max-width: 520px) {
  .sr > summary { gap: 8px; padding: 12px 10px; }
  .sr-gap { font-size: 12px; }
  .sr .pill2 { margin-left: auto; }
  .sr-caret { display: none; }
}
.sr-gap, .sr-lock { white-space: nowrap; }
.sr-t { flex: 1 1 auto; min-width: 0; }
.sr-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.sr-r .pill2 { margin: 0; }

/* connect Telegram bot card (logged-in customers) */
.tg-link { margin-bottom: 22px; border: 1px solid rgba(74,163,230,.35); background: linear-gradient(135deg, rgba(42,171,238,.12), rgba(124,92,255,.08)), var(--panel); }
.tg-link.linked { border-color: rgba(61,214,140,.35); background: linear-gradient(135deg, rgba(61,214,140,.10), transparent), var(--panel); padding: 14px 18px; }
.tg-head { display: flex; gap: 14px; align-items: flex-start; }
.tg-head h2 { margin: 0 0 4px; font-size: 20px; }
.tg-ico { font-size: 30px; line-height: 1; }
.tg-wait { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px;
  font-weight: 700; background: rgba(242,170,60,.15); color: #f2aa3c; white-space: nowrap; }
.tg-wait .blink { background: #f2aa3c; }
.tg-steps { margin: 16px 0; padding-left: 22px; display: grid; gap: 8px; }
.tg-steps li { padding-left: 4px; }
.tg-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tg-ok { display: flex; align-items: center; gap: 12px; }
.tg-ok > div { display: flex; flex-direction: column; gap: 2px; flex: 1; }
@media (max-width: 640px) {
  .tg-head { flex-wrap: wrap; } .tg-wait { margin-left: 0; order: -1; }
  .tg-btns .btn { width: 100%; text-align: center; }
  .tg-ok { flex-wrap: wrap; } .tg-ok .btn { width: 100%; text-align: center; }
}

/* ---------- personal page: plan, buy VIP by the month, orders */
.me-page { position: fixed; inset: 0; z-index: 45; overflow-y: auto; background: var(--bg); padding: 18px 0 110px; }
.me-in { display: grid; gap: 16px; }
.me-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.me-top h1 { margin: 0; font-size: 24px; }
.me-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; }
.me-card { padding: 18px; }
.me-card h2 { margin: 0 0 10px; font-size: 18px; }
.me-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.me-row:last-child { border-bottom: 0; }
.me-row span:first-child { color: var(--muted); }
.me-plan { font-size: 20px; font-weight: 800; margin: 4px 0 2px; }
.me-plan.vip { color: var(--gold2); } .me-plan.trial { color: #5aa9ff; } .me-plan.none { color: var(--red); }
.me-packs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.me-pack { border: 1px solid var(--line); background: var(--panel2); color: var(--text); border-radius: 12px; padding: 10px 14px;
  font: inherit; cursor: pointer; min-width: 92px; text-align: center; }
.me-pack b { display: block; font-size: 16px; } .me-pack small { color: var(--muted); }
.me-pack.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.me-step { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; }
.me-step button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-size: 20px; cursor: pointer; }
.me-step input { width: 70px; text-align: center; }
.me-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: var(--panel2); border: 1px solid var(--line); margin: 8px 0 12px; }
.me-total b { font-size: 26px; color: var(--gold2); }
.me-methods { display: flex; gap: 8px; margin: 8px 0 14px; flex-wrap: wrap; }
.me-pay { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: start; }
.me-pay img { width: 100%; border-radius: 12px; background: #fff; }
.me-copy { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.me-copy code { font-size: 15px; font-weight: 700; color: var(--text); word-break: break-all; }
.me-copy button { flex: none; }
.me-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.me-tbl th, .me-tbl td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.me-tbl th { color: var(--muted); font-weight: 600; font-size: 12px; }
.me-st { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.me-st.pending { background: rgba(255,152,0,.16); color: var(--orange); } .me-st.paid { background: rgba(22,199,132,.16); color: var(--green); }
.me-st.cancelled { background: rgba(138,145,163,.18); color: var(--muted); }
@media (max-width: 760px) {
  .me-grid, .me-pay { grid-template-columns: 1fr; }
  .me-pay img { max-width: 260px; margin: 0 auto; display: block; }
  .me-top h1 { font-size: 20px; }
}
.me-in > *, .me-grid > *, .me-pay > *, .me-copy > div { min-width: 0; }
.me-warn { margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; background: rgba(255,152,0,.12); color: var(--orange); font-size: 13px; }

/* consultation form: the admin's Telegram, so visitors can write first */
.join-admin { margin: 4px 0 12px; padding: 10px 12px; border-radius: 12px; background: rgba(74,163,230,.12); border: 1px solid rgba(74,163,230,.35); font-size: 14px; line-height: 1.45; }
.join-admin a { font-weight: 700; color: #4aa3e6; white-space: nowrap; }
.me-claimed { margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: rgba(38,166,154,.14); border: 1px solid rgba(38,166,154,.4); font-size: 14px; }

/* AI StarX chat (web like Telegram) */
.aichart #aiBody.over { outline: 2px dashed #e6b84a; outline-offset: 4px; border-radius: 12px; }
.ai-chat { display: flex; flex-direction: column; gap: 10px; max-height: min(1400px, 90vh); min-height: 420px; overflow-y: auto; padding: 12px;
  border: 1px solid var(--line, #2a3556); border-radius: 14px; background: rgba(0,0,0,.18); overscroll-behavior: contain; }
.ai-chat.full { max-height: none; }
.ai-msg { max-width: min(96%, 900px); padding: 10px 13px; border-radius: 14px; line-height: 1.55; word-wrap: break-word; overflow-wrap: anywhere; }
.ai-msg.me { align-self: flex-end; background: rgba(230,184,74,.16); border: 1px solid rgba(230,184,74,.45); border-bottom-right-radius: 4px; }
.ai-msg.ai, .ai-msg.team { align-self: flex-start; background: var(--card2, rgba(255,255,255,.05)); border: 1px solid var(--line, #2a3556); border-bottom-left-radius: 4px; }
.ai-msg.team { border-color: rgba(90,170,255,.55); }
.ai-msg .ai-res { margin-top: 6px; }
.ai-who { font-size: 12px; font-weight: 700; color: #e6b84a; margin-bottom: 4px; }
.ai-msg.team .ai-who { color: #5aaaff; }
.ai-at { font-size: 11px; opacity: .55; text-align: right; margin-top: 4px; }
.ai-sent { max-width: 100%; max-height: 260px; border-radius: 10px; display: block; margin-bottom: 6px; }
.ai-attach { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px dashed rgba(230,184,74,.6); border-radius: 12px; }
.ai-attach img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.ai-attach span { flex: 1; }
.ai-bar { display: flex; align-items: flex-end; gap: 8px; }
.ai-bar textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; line-height: 1.4; }
.ai-clip { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: 10px;
  border: 1px solid var(--line, #2a3556); cursor: pointer; font-size: 20px; }
.ai-clip:hover { border-color: #e6b84a; }
.ai-bar .btn { height: 44px; flex: none; }
.ai-buyline { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* computer: running-signals panel exactly as tall as the chart card next to it */
@media (min-width: 981px) {
  .grid-main { align-items: stretch; }
  .grid-main > .signals-card { max-height: none; height: 0; min-height: calc(100% - 18px); overflow-y: auto; }
}

/* signal card: big number + state + source (owner 2026-11-02) */
.sc-status { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin: -2px 0 10px; border-radius: 14px;
  background: rgba(140,150,170,.12); font-weight: 800; letter-spacing: .3px; }
.sc-status .sc-no { font-size: 26px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sc-status .sc-st { font-size: 20px; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sc-status .pos { color: var(--green); } .sc-status .neg { color: var(--red); }
.sc-status.wait { background: rgba(74,163,230,.16); color: var(--pri2, #4aa3e6); border: 1px solid rgba(74,163,230,.35); }
.sc-status.run { background: rgba(61,214,140,.14); color: var(--green); border: 1px solid rgba(61,214,140,.35); }
.sc-status.win { background: rgba(61,214,140,.10); color: var(--green); }
.sc-status.loss { background: rgba(242,102,122,.12); color: var(--red); }
.sc-src { display: inline-block; margin: 0 0 10px; padding: 5px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700; }
.sc-src.vip { background: rgba(240,185,11,.14); color: var(--gold, #f0b90b); }
.sc-src.plan { background: rgba(160,120,255,.16); color: #b99bff; }
.sr-no { font-size: 18px; font-weight: 800; color: var(--gold, #f0b90b); min-width: 30px; }
.sr-body .sc-status { display: none; }
@media (max-width: 520px) { .sc-status .sc-no { font-size: 22px; } .sc-status .sc-st { font-size: 17px; } }
.ana-sig-h { margin-top: 22px; color: #b99bff; font-size: 16px; }
.ana-sigs { margin-top: 6px; }
.ana-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #8b6cf0; color: #fff; font-size: 12px; margin-left: 4px; }
/* finished signals: compact rows, tap to open (owner 2026-11-02) */
.sr.done { opacity: .85; border-left: 4px solid rgba(140,150,170,.5); }
.sr.done > summary { padding: 9px 14px; }
.sr.done .sr-t b { font-size: 14.5px; }
.sr.done .sr-pips { font-size: 15px; }
.pill2.flat { background: rgba(140,150,170,.14); color: var(--muted); }
.pill2.loss { background: rgba(242,102,122,.14); color: var(--red); }

/* ===== AI STARX TRADING: own look + own page /vi/ai (owner 2026-11-02) ===== */
.ai-ava { display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; font-weight: 900; font-size: 15px;
  letter-spacing: .5px; color: #fff; background: linear-gradient(135deg, #8b6cf0, #4aa3e6); box-shadow: 0 6px 20px rgba(139,108,240,.45); }
.ai-ava.big { width: 54px; height: 54px; font-size: 17px; border-radius: 16px; }
.ai-promo { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 18px; border-radius: var(--radius, 18px);
  color: inherit; text-decoration: none; border: 2px solid transparent;
  background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(120deg, #8b6cf0, #4aa3e6, #e6b84a) border-box; }
.ai-promo:hover { box-shadow: 0 0 0 4px rgba(139,108,240,.18); }
.ai-promo-t { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.ai-promo-t b { font-size: 18px; letter-spacing: .4px; background: linear-gradient(90deg, #b99bff, #74bdf2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-promo-t small { color: var(--muted); font-size: 13.5px; }
.ai-go { flex: none; color: #fff; background: linear-gradient(135deg, #8b6cf0, #4aa3e6); border: 0; }
.aichart { position: relative; border: 2px solid transparent;
  background: radial-gradient(1200px 300px at 0 0, rgba(139,108,240,.12), transparent 60%) padding-box,
    linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(120deg, #8b6cf0, #4aa3e6 55%, #e6b84a) border-box;
  box-shadow: 0 0 40px rgba(139,108,240,.15); }
.ai-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.ai-head-t { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 180px; }
.ai-head-t h2 { margin: 0; font-size: 22px; letter-spacing: .6px; background: linear-gradient(90deg, #b99bff, #74bdf2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-head-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ai-quota:not(:empty) { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #b99bff; background: rgba(139,108,240,.16); border: 1px solid rgba(139,108,240,.4); }
.ai-feats { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 6px; }
.ai-feats span { padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(74,163,230,.10); border: 1px solid rgba(74,163,230,.28); }
.aichart .ai-chat { border: 1px solid rgba(139,108,240,.35); background: rgba(10,12,30,.35); }
.aichart .ai-msg.ai { border: 1px solid rgba(139,108,240,.45); border-left: 4px solid #8b6cf0; background: rgba(139,108,240,.08); }
.aichart .ai-msg.ai .ai-who { color: #b99bff; }
.aichart .ai-msg.ai .ai-who::before { content: "AI"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 6px;
  font-size: 10px; color: #fff; background: linear-gradient(135deg, #8b6cf0, #4aa3e6); vertical-align: middle; }
.aichart .ai-bar .btn.gold { background: linear-gradient(135deg, #8b6cf0, #4aa3e6); color: #fff; }
.aichart .ai-bar textarea:focus { border-color: #8b6cf0; box-shadow: 0 0 0 3px rgba(139,108,240,.2); }
.nav a.nav-ai { color: #b99bff; font-weight: 700; }
/* home page: AI only as the promo card */
body:not(.page-ai) #ai-chart { display: none; }
/* AI page: only the AI frame */
.page-ai #ai-promo, .page-ai .hero, .page-ai #gioi-thieu, .page-ai #ket-noi-bot, .page-ai #tin-hieu, .page-ai #scalping, .page-ai #phan-tich,
.page-ai #vi-mo, .page-ai #thong-ke, .page-ai #lich-su, .page-ai .cta, .page-ai .ticker { display: none !important; }
.page-ai .ai-chat { max-height: max(420px, calc(100vh - 360px)); min-height: 55vh; }
.page-ai .ai-chat.full { max-height: none; }
.page-ai .nav a.nav-ai, .page-ai .bottom-nav a.nav-ai.on { color: #fff; background: linear-gradient(135deg, #8b6cf0, #4aa3e6); border-radius: 10px; }
@media (max-width: 760px) {
  .ai-promo { flex-wrap: wrap; } .ai-go { width: 100%; text-align: center; }
  .ai-head-t h2 { font-size: 19px; } .ai-ava.big { width: 46px; height: 46px; }
  .page-ai .ai-chat { min-height: 50vh; max-height: calc(100vh - 300px); }
}
/* archive by day: 5 KPIs incl. win rate, trades as collapsed rows (owner 2026-11-02) */
#dayDetail .kpi-row { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
/* AI StarX: saved scans of the day (owner 2026-11-02) */
.ai-hist { margin-top: 18px; padding-top: 14px; border-top: 1px dashed rgba(139,108,240,.4); }
.ai-hist-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ai-hist-head h3 { margin: 0; font-size: 17px; color: #b99bff; }
.ai-hist-day { margin-left: auto; padding: 7px 10px; border-radius: 10px; background: var(--panel2); color: var(--text); border: 1px solid var(--line); font: inherit; }
.scan-list { display: flex; flex-direction: column; gap: 8px; }
.scan-row { border: 1px solid rgba(139,108,240,.3); border-radius: 14px; background: var(--panel2); overflow: hidden; }
.scan-row > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; }
.scan-row > summary::-webkit-details-marker { display: none; }
.scan-th { width: 56px; height: 40px; object-fit: cover; border-radius: 8px; flex: none; border: 1px solid var(--line); }
.scan-th.none { display: inline-grid; place-items: center; }
.scan-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.scan-t small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scan-row[open] .sr-caret { transform: rotate(180deg); }
.scan-body { padding: 0 12px 12px; }
.scan-imgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-bottom: 10px; }
.scan-imgs figure { margin: 0; }
.scan-imgs figcaption { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.scan-imgs .ai-img img { width: 100%; border-radius: 10px; display: block; }
.vip-join { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-color: rgba(230,184,74,.5); }
.vip-join .vj-ico { font-size: 28px; }
.vip-join .vj-t { display: flex; flex-direction: column; flex: 1; min-width: 180px; }
.vip-join .vj-t b { font-size: 17px; color: var(--gold); }
.vip-join .vj-t small { color: var(--muted); }
.page-ai #vip-join { display: none !important; }

/* phones: the day archive and signal rows stay inside their card (owner 2026-11-02, long English texts pushed them out) */
.hist > *, .grid-main > *, .sig-list, .sr, .sr > summary { min-width: 0; }
.sr-t { flex: 1 1 auto; overflow: hidden; }
.sr-t b, .sr-t small { overflow: hidden; text-overflow: ellipsis; }
.sr-r { flex: 0 1 auto; min-width: 0; }
.sr-gap { display: block; white-space: normal; line-height: 1.25; }
#dayDetail .kpi .k-val { overflow-wrap: anywhere; }
@media (max-width: 980px) { .hist { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  #dayDetail .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #dayDetail .kpi .k-val { font-size: 20px; }
  .sr > summary { gap: 8px; padding: 10px 10px; }
  .sr .side { padding: 5px 7px; font-size: 12px; }
  .sr-no { font-size: 15px; }
  .sr-r { max-width: 46%; }
  .sr .pill2 { font-size: 11px; padding: 3px 7px; }
  .sr-t small { white-space: normal; text-overflow: clip; line-height: 1.3; }
}
.sc-post { padding: 6px 4px 2px; line-height: 1.55; font-size: 14px; }
