/* StockVala V9 Demo client portal — design system taken from the V9 user panel screens. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --nav: #041124;
  --nav-hover: #0D1F3A;
  --nav-text: #D4DCEA;
  --nav-muted: #7D8CA6;
  --nav-line: #122540;

  --brand: #0F4AEB;
  --brand-dark: #0B3BC4;
  --brand-soft: #EDF3FF;
  --brand-ring: rgba(15, 74, 235, .14);

  --bg: #F5F6FA;
  --surface: #FFFFFF;
  --surface-2: #F5F6F9;
  --line: #E6EAF1;
  --line-strong: #D5DCE6;

  --text: #0B1B33;
  --text-2: #5A6782;
  --text-3: #8E99AC;

  --green: #15803D;  --green-bg: #DCFCE7;
  --amber: #AB7E2A;  --amber-bg: #FEF3C6;  --amber-soft: #FFF8E7;
  --red: #C0352B;    --red-bg: #FDE8E6;
  --blue: #0F4AEB;   --blue-bg: #EDF3FF;
  --gray-bg: #EFF1F5;

  --r: 12px; --r-lg: 14px; --r-xl: 18px;
  --shadow: 0 1px 2px rgba(11,27,51,.04), 0 1px 3px rgba(11,27,51,.05);
  --shadow-lg: 0 18px 46px rgba(11,27,51,.16);
  --sidebar-w: 218px;
  --sidebar-w-collapsed: 74px;
  --topbar-h: 66px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }
::selection { background: var(--brand-ring); }

/* ================================================================ layout */
.shell { display: flex; min-height: 100vh; }

.side {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w); background: var(--nav);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
  transition: width .18s ease, flex-basis .18s ease;
}
.shell.collapsed .side { width: var(--sidebar-w-collapsed); flex-basis: var(--sidebar-w-collapsed); }

.side-logo { height: var(--topbar-h); display: flex; align-items: center; padding: 0 18px;
  flex: 0 0 auto; }
.brandmark { display: flex; align-items: center; gap: 8px; }
.brandmark .glyph { width: 28px; height: auto; flex: 0 0 28px; }
.brandmark .word { font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: #3B9BFF;
  white-space: nowrap; }
.brandmark .word i { font-style: normal; color: #A06BFF; }
.brandmark .tm { font-size: 9px; color: #6E8AB8; vertical-align: super; font-weight: 700; }
.shell.collapsed .brandmark .word, .shell.collapsed .brandmark .tm { display: none; }

.side-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 6px 10px 18px; }
.side-nav::-webkit-scrollbar { width: 5px; }
.side-nav::-webkit-scrollbar-thumb { background: #16294a; border-radius: 3px; }

.nav-group { margin-top: 14px; }
.nav-group:first-child { margin-top: 4px; }
.nav-head {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: none; cursor: pointer; padding: 6px 12px 7px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--nav-muted);
}
.nav-head .chev { transition: transform .16s; opacity: .7; }
.nav-group.closed .nav-head .chev { transform: rotate(-90deg); }
.nav-group.closed .nav-items { display: none; }
.shell.collapsed .nav-head { justify-content: center; padding: 8px 0 6px; }
.shell.collapsed .nav-head span.t, .shell.collapsed .nav-head .chev { display: none; }
.shell.collapsed .nav-head::after { content: ''; display: block; width: 18px; height: 1px;
  background: var(--nav-line); }

.nav-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px;
  border: none; background: none; border-radius: 10px; cursor: pointer; color: var(--nav-text);
  font-size: 13.5px; font-weight: 500; text-align: left; margin-bottom: 2px;
  position: relative;
}
.nav-item:hover { background: var(--nav-hover); color: #fff; }
.nav-item .ico { flex: 0 0 18px; opacity: .85; }
.nav-item .lbl { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-item.on { background: var(--brand); color: #fff; font-weight: 600; }
.nav-item.on .ico { opacity: 1; }
.nav-item .dot { width: 7px; height: 7px; border-radius: 50%; background: #F5A524; flex: 0 0 7px; }
.shell.collapsed .nav-item { justify-content: center; padding: 11px 0; }
.shell.collapsed .nav-item .lbl, .shell.collapsed .nav-item .dot { display: none; }

.side-foot { border-top: 1px solid var(--nav-line); padding: 12px 10px; }
.side-foot .nav-item { color: var(--nav-text); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: var(--topbar-h); background: var(--surface); display: flex; align-items: center;
  gap: 14px; padding: 0 22px; position: sticky; top: 0; z-index: 40;
}
.searchbox {
  display: flex; align-items: center; gap: 10px; background: var(--surface-2);
  border: 1px solid transparent; border-radius: 10px; padding: 9px 12px; width: 330px;
  color: var(--text-3);
}
.searchbox:focus-within { background: #fff; border-color: var(--line-strong); }
.searchbox input { border: none; background: none; outline: none; flex: 1; font-size: 13.5px;
  color: var(--text); min-width: 0; }
.searchbox kbd { font: 600 10.5px var(--font); color: var(--text-3); background: #fff;
  border: 1px solid var(--line); border-radius: 5px; padding: 2px 5px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.chip {
  display: flex; align-items: center; gap: 9px; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 13px; background: #fff; cursor: pointer;
  font-size: 13.5px; white-space: nowrap;
}
.chip:hover { border-color: var(--line-strong); }
.chip .amt { font-weight: 700; }
.chip .cur { color: var(--text-3); font-size: 11.5px; font-weight: 600; }
.iconbtn { width: 36px; height: 36px; border: none; background: none; border-radius: 9px;
  display: grid; place-items: center; color: var(--text-2); cursor: pointer; position: relative; }
.iconbtn:hover { background: var(--surface-2); }
.iconbtn .badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px;
  background: #E5484D; color: #fff; border-radius: 999px; font-size: 9.5px; font-weight: 700;
  display: grid; place-items: center; padding: 0 4px; }
.userchip { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line);
  border-radius: 10px; padding: 6px 11px 6px 7px; background: #fff; cursor: pointer; }
.userchip:hover { border-color: var(--line-strong); }
.userchip .av { width: 30px; height: 30px; border-radius: 50%; background: #DCE4F2;
  display: grid; place-items: center; color: #46587A; font-weight: 700; font-size: 11.5px;
  flex: 0 0 30px; }
.userchip .nm { font-size: 13px; font-weight: 700; line-height: 1.2; }
.userchip .rf { font-size: 11px; color: var(--text-3); line-height: 1.2; }

.content { flex: 1; padding: 26px 24px 54px; max-width: 100%; }

/* ================================================================ page head */
.page-head { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap;
  margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: 29px; font-weight: 800; letter-spacing: -.025em;
  line-height: 1.18; }
.page-head p { margin: 5px 0 0; color: var(--text-2); font-size: 14px; }
.page-head .grow { flex: 1; }

/* ================================================================ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 18px; border-radius: 10px; font-size: 13.5px; font-weight: 700;
  cursor: pointer; border: 1px solid transparent; background: #fff; color: var(--text);
  white-space: nowrap;
}
.btn:hover { background: #F8FAFC; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.outline { border-color: var(--line-strong); }
.btn.outline:hover { border-color: #BFC9D8; }
.btn.ghost { background: none; color: var(--brand); padding-left: 10px; padding-right: 10px; }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.danger { background: #FEF2F2; color: var(--red); border-color: #F7CFCB; }
.btn.dark { background: var(--nav); color: #fff; }
.btn.sm { padding: 8px 13px; font-size: 12.5px; border-radius: 9px; }
.btn.lg { padding: 13px 22px; font-size: 14.5px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ================================================================ cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  margin-bottom: 18px; }
.card.flat { box-shadow: none; }
.card.soft { background: var(--surface-2); border-color: transparent; }
.card-pad { padding: 22px 24px; }
.card-head { padding: 20px 24px; display: flex; align-items: flex-start; gap: 16px;
  flex-wrap: wrap; }
.card-head h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.card-head h3 { margin: 0; font-size: 15.5px; font-weight: 700; }
.card-head p { margin: 4px 0 0; color: var(--text-2); font-size: 13px; }
.card-head .grow { flex: 1; }
.card-sep { border-top: 1px solid var(--line); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px; margin-bottom: 20px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px 20px; display: flex; align-items: center; gap: 15px;
}
.stat .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); flex: 0 0 42px; }
.stat .lbl { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.stat .val { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 1px; }
.stat .sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.stat.stack { flex-direction: column; align-items: flex-start; gap: 10px; }
.stat .ico.green { background: var(--green-bg); color: var(--green); }
.stat .ico.amber { background: var(--amber-bg); color: var(--amber); }
.stat .ico.red { background: var(--red-bg); color: var(--red); }
.stat .ico.violet { background: #F1EDFE; color: #6D4AD6; }

/* ================================================================ banners */
.banner { border-radius: var(--r); padding: 15px 18px; display: flex; gap: 13px;
  align-items: center; margin-bottom: 20px; font-size: 13.5px; }
.banner .txt { flex: 1; }
.banner .t { font-weight: 700; }
.banner.warn { background: var(--amber-bg); color: #7C5A12; }
.banner.warn .t { color: #8A5A07; }
.banner.info { background: var(--brand-soft); color: #1B3C8F; }
.banner.ok { background: var(--green-bg); color: #14532D; }
.banner.err { background: var(--red-bg); color: #8E2019; }
.notice { border-radius: var(--r); padding: 16px 18px; font-size: 13px; line-height: 1.6;
  background: var(--amber-soft); border-left: 4px solid var(--amber); color: #6B5214; }
.notice .t { font-weight: 700; color: #5C4610; margin-bottom: 4px; }
.notice.blue { background: var(--brand-soft); border-left-color: var(--brand); color: #1B3C8F; }
.notice.blue .t { color: #10328C; }

/* ================================================================ tabs */
.pilltabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.pilltab {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 700;
  color: var(--text-2); cursor: pointer; white-space: nowrap;
}
.pilltab:hover { border-color: var(--line-strong); color: var(--text); }
.pilltab.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pilltab .n { background: rgba(11,27,51,.07); border-radius: 999px; min-width: 22px;
  height: 20px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.5px; padding: 0 6px; }
.pilltab.on .n { background: rgba(255,255,255,.22); }

.linetabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); padding: 0 24px; }
.linetab { border: none; background: none; padding: 14px 0 13px; font-size: 13.5px;
  font-weight: 700; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; }
.linetab.on { color: var(--brand); border-bottom-color: var(--brand); }

/* ================================================================ forms */
.filters { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap;
  padding: 18px 20px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.grow { flex: 1; min-width: 180px; }
.field > label { font-size: 12.5px; color: var(--text-2); font-weight: 600;
  display: flex; align-items: center; gap: 8px; }
.req { font-size: 9.5px; font-weight: 800; letter-spacing: .06em; color: var(--brand);
  background: var(--brand-soft); border-radius: 4px; padding: 2px 5px; }
.req.opt { color: var(--text-3); background: var(--gray-bg); }
.hint { font-size: 12px; color: var(--text-3); }
.inp, .sel, textarea.inp {
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 13px;
  font-size: 13.5px; background: #fff; outline: none; width: 100%; min-width: 0;
  color: var(--text);
}
.inp::placeholder { color: #A9B3C2; }
.inp:focus, .sel:focus, textarea.inp:focus { border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring); }
.inp:disabled, .sel:disabled { background: var(--surface-2); color: var(--text-2); }
.sel { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238E99AC' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; padding-right: 34px; }
textarea.inp { min-height: 96px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr));
  gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.switch { position: relative; width: 40px; height: 22px; flex: 0 0 40px; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #CBD5E1; border-radius: 999px;
  cursor: pointer; transition: .18s; }
.switch span::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px;
  top: 3px; background: #fff; border-radius: 50%; transition: .18s; }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::before { transform: translateX(18px); }
.switch-row { display: flex; align-items: center; gap: 11px; font-size: 13.5px; }
.checkbox { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; }

/* ================================================================ tables */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .05em;
  color: var(--text-3); text-transform: uppercase; padding: 13px 16px;
  border-bottom: 1px solid var(--line); white-space: nowrap; background: #fff; }
table.tbl td { padding: 14px 16px; border-bottom: 1px solid #F1F3F7; vertical-align: middle; }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl tbody tr:hover { background: #FBFCFE; }
table.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px;
  border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.amber { background: var(--amber-bg); color: var(--amber); }
.pill.red { background: var(--red-bg); color: var(--red); }
.pill.blue { background: var(--blue-bg); color: var(--blue); }
.pill.gray { background: var(--gray-bg); color: var(--text-2); }
.pill.outline { background: #fff; border: 1px solid var(--line-strong); color: var(--text-2);
  font-weight: 600; }
.mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--text-3); font-size: 12px; }
.pos { color: var(--green); font-weight: 700; }
.neg { color: var(--red); font-weight: 700; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pgbtn { border: 1px solid var(--line-strong); background: #fff; border-radius: 9px;
  padding: 8px 15px; font-size: 13px; font-weight: 600; color: var(--brand); cursor: pointer; }
.pgbtn:disabled { color: var(--text-3); cursor: not-allowed; }
.pgbtn:hover:not(:disabled) { background: var(--brand-soft); }

/* ================================================================ empty */
.empty { padding: 56px 24px; text-align: center; }
.empty .ring { width: 54px; height: 54px; border-radius: 50%; background: var(--brand-soft);
  color: var(--brand); display: grid; place-items: center; margin: 0 auto 16px; }
.empty .ring.plain { background: transparent; color: #C3CBD8; }
.empty h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.empty p { margin: 0 auto 18px; color: var(--text-2); font-size: 13.5px; max-width: 420px; }
.empty-row { display: flex; align-items: center; gap: 18px; padding: 26px 24px; }
.empty-row .ring { width: 54px; height: 54px; border-radius: 12px; background: var(--brand-soft);
  color: var(--brand); display: grid; place-items: center; flex: 0 0 54px; }
.empty-row .t { font-size: 16px; font-weight: 700; }
.empty-row .s { color: var(--text-2); font-size: 13.5px; margin-top: 2px; }

.loading { padding: 54px; text-align: center; color: var(--text-3); font-size: 13.5px; }
.skel { height: 14px; border-radius: 6px;
  background: linear-gradient(90deg,#EEF1F5,#F8FAFC,#EEF1F5); background-size: 200% 100%;
  animation: sh 1.2s infinite; }
@keyframes sh { from { background-position: 200% 0 } to { background-position: -200% 0 } }

/* ================================================================ grids */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.split { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 18px; }
.split-wide { display: grid; grid-template-columns: minmax(0,1fr) 400px; gap: 18px; }
@media (max-width: 1180px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .split, .split-wide { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 90; transform: translateX(-100%); }
  .shell.navopen .side { transform: none; } }

/* ================================================================ account cards */
.acct {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.acct .top { display: flex; align-items: flex-start; gap: 12px; }
.acct .login { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.acct .grp { font-size: 11.5px; color: var(--text-3); font-family: var(--mono); }
.acct .nums { display: flex; gap: 26px; flex-wrap: wrap; }
.acct .nums .k { font-size: 11.5px; color: var(--text-3); }
.acct .nums .v { font-size: 16px; font-weight: 700; margin-top: 1px; }
.acct .acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* ================================================================ terminal */
.terminal { position: fixed; inset: 0; background: var(--bg); z-index: 120; display: flex;
  flex-direction: column; }
.terminal-bar { height: 60px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; padding: 0 20px; }
.terminal-bar .status { display: flex; align-items: center; gap: 8px; font-size: 13.5px;
  color: var(--text-2); font-weight: 600; }
.terminal-bar .status .d { width: 8px; height: 8px; border-radius: 50%; background: #E5484D; }
.terminal-bar .status.live .d { background: #22C55E; }
.terminal-bar .acts { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.tbtn { display: inline-flex; align-items: center; gap: 8px; border: none; background: none;
  padding: 9px 13px; border-radius: 9px; font-size: 13px; font-weight: 600;
  color: var(--text-3); cursor: pointer; }
.tbtn:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.tbtn:disabled { opacity: .55; cursor: not-allowed; }
.tbtn.bordered { border: 1px solid var(--line-strong); color: var(--text); }
.terminal-body { flex: 1; display: grid; place-items: center; padding: 24px; overflow: auto; }
.term-card { background: #0B1B33; border-radius: var(--r-xl); padding: 34px 38px;
  width: min(500px, 100%); text-align: center; color: #fff; }
.term-card .ring { width: 48px; height: 48px; border-radius: 12px; background: #16294A;
  display: grid; place-items: center; margin: 0 auto 18px; color: #93A7C6; }
.term-card h3 { margin: 0 0 10px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.term-card p { margin: 0 0 24px; color: #9FB0CA; font-size: 13.5px; line-height: 1.6; }
.term-card .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.term-card .btn.ghost { color: #C9D6EA; }
.term-card .btn.ghost:hover { background: #16294A; }
.term-live { width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr;
  gap: 16px; }

/* ================================================================ hero */
.hero { background: linear-gradient(135deg,#071530 0%, #0B1F3F 55%, #102A52 100%);
  background-color: #071530; border-radius: var(--r-xl); padding: 34px 38px; color: #fff;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 30px;
  align-items: center; margin-bottom: 26px; overflow: hidden; }
@media (max-width: 980px) { .hero { grid-template-columns: 1fr; } }
.hero .eyebrow { display: inline-block; background: rgba(47,123,255,.16); color: #7FB0FF;
  border-radius: 999px; padding: 6px 14px; font-size: 11px; font-weight: 800;
  letter-spacing: .1em; margin-bottom: 18px; }
.hero h2 { margin: 0 0 14px; font-size: 38px; font-weight: 800; letter-spacing: -.03em;
  line-height: 1.1; }
.hero h2 i { font-style: normal; color: #2F7BFF; }
.hero p { margin: 0 0 24px; color: #A9BBD6; font-size: 14.5px; max-width: 420px; }
.hero .feats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.hero .feat { display: flex; align-items: center; gap: 11px; font-size: 13.5px; color: #D6E1F2; }
.hero .feat .b { width: 32px; height: 32px; border-radius: 9px; background: rgba(47,123,255,.15);
  color: #6BA3FF; display: grid; place-items: center; flex: 0 0 32px; }
.hero .art { border-radius: var(--r-lg); background: #050F23; border: 1px solid #16294A;
  min-height: 230px; display: grid; place-items: center; overflow: hidden; position: relative; }

.platform-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.platform-card .hd { display: flex; align-items: center; gap: 11px; }
.platform-card .hd .b { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-soft);
  color: var(--brand); display: grid; place-items: center; flex: 0 0 34px; }
.platform-card h3 { margin: 0; font-size: 15.5px; font-weight: 700; }
.platform-card p { margin: 0; color: var(--text-2); font-size: 13px; min-height: 38px; }
.platform-card .shot { border-radius: 10px; background: #071530; min-height: 128px;
  display: grid; place-items: center; overflow: hidden; }
.store-btn { display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--brand); color: #fff; border: none; border-radius: 10px; padding: 11px 14px;
  cursor: pointer; font-weight: 700; font-size: 13.5px; }
.store-btn:hover { background: var(--brand-dark); }
.store-btn .two { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.store-btn .two small { font-size: 9px; font-weight: 700; letter-spacing: .08em; opacity: .85; }

/* ================================================================ support */
.support-layout { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
  overflow: hidden; min-height: 560px; }
@media (max-width: 980px) { .support-layout { grid-template-columns: 1fr; } }
.support-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.support-list .tools { padding: 16px; display: flex; gap: 10px; }
.ticket-row { padding: 14px 16px; border-bottom: 1px solid #F1F3F7; cursor: pointer; }
.ticket-row:hover { background: #FBFCFE; }
.ticket-row.on { background: var(--brand-soft); }
.ticket-row .sub { font-weight: 700; font-size: 13.5px; }
.ticket-row .meta { font-size: 11.5px; color: var(--text-3); margin-top: 3px;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.support-pane { display: flex; flex-direction: column; }
.thread { flex: 1; padding: 22px; display: flex; flex-direction: column; gap: 14px;
  overflow-y: auto; max-height: 520px; }
.bubble { max-width: 74%; border-radius: 14px; padding: 13px 16px; font-size: 13.5px;
  line-height: 1.55; }
.bubble .who { font-size: 11.5px; font-weight: 700; margin-bottom: 4px; }
.bubble .when { font-size: 11px; opacity: .65; margin-top: 6px; }
.bubble.me { align-self: flex-end; background: var(--brand); color: #fff; }
.bubble.them { align-self: flex-start; background: var(--surface-2); }
.replybox { border-top: 1px solid var(--line); padding: 16px 20px; display: flex;
  flex-direction: column; gap: 10px; }

/* ================================================================ modal */
.modal-bg { position: fixed; inset: 0; background: rgba(4,17,36,.5); z-index: 200;
  display: grid; place-items: center; padding: 22px; backdrop-filter: blur(2px); }
.modal { background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  width: min(560px, 100%); max-height: 88vh; display: flex; flex-direction: column; }
.modal.wide { width: min(880px, 100%); }
.modal-head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex;
  align-items: center; justify-content: space-between; gap: 16px; }
.modal-head h3 { margin: 0; font-size: 17.5px; font-weight: 800; letter-spacing: -.01em; }
.modal-head p { margin: 3px 0 0; font-size: 13px; color: var(--text-2); }
.modal-body { padding: 22px 24px; overflow-y: auto; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex;
  justify-content: flex-end; gap: 10px; }

#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex;
  flex-direction: column; gap: 10px; }
.toast { background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); padding: 14px 18px;
  font-size: 13.5px; min-width: 260px; max-width: 420px; border-left: 4px solid var(--brand);
  animation: slidein .18s ease; }
.toast.ok { border-left-color: #16A34A; }
.toast.err { border-left-color: #DC2626; }
@keyframes slidein { from { opacity: 0; transform: translateY(10px); } }

/* ================================================================ search panel */
.searchpanel { position: absolute; top: calc(var(--topbar-h) - 8px); left: 22px; width: 420px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); z-index: 60; overflow: hidden; max-height: 460px;
  overflow-y: auto; }
.searchpanel .gl { font-size: 10.5px; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-3); padding: 13px 16px 6px; }
.searchpanel .it { padding: 10px 16px; cursor: pointer; }
.searchpanel .it:hover { background: var(--surface-2); }
.searchpanel .it .t { font-size: 13.5px; font-weight: 600; }
.searchpanel .it .s { font-size: 11.5px; color: var(--text-3); }

/* ================================================================ misc */
.kv { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 11px 20px;
  font-size: 13.5px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; font-weight: 600; }
.seclist { display: flex; flex-direction: column; gap: 18px; }
.seclist .row { display: flex; gap: 13px; align-items: flex-start; }
.seclist .row .b { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-soft);
  color: var(--brand); display: grid; place-items: center; flex: 0 0 34px; }
.seclist .row .t { font-weight: 700; font-size: 13.5px; }
.seclist .row .s { font-size: 12.5px; color: var(--text-2); margin-top: 2px; line-height: 1.5; }
.bar-track { height: 8px; background: #EEF1F6; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--brand); border-radius: 999px; }
.chart { width: 100%; }
.promo { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; }
.promo .b { width: 40px; height: 40px; border-radius: 11px; background: var(--brand-soft);
  color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.promo h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.promo p { margin: 0 0 12px; color: var(--text-2); font-size: 13px; }
.dropmenu { position: absolute; right: 22px; top: calc(var(--topbar-h) - 6px); width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); z-index: 70; overflow: hidden; }
.dropmenu .mi { display: flex; align-items: center; gap: 11px; padding: 12px 16px;
  cursor: pointer; font-size: 13.5px; font-weight: 600; border: none; background: none;
  width: 100%; text-align: left; color: var(--text); }
.dropmenu .mi:hover { background: var(--surface-2); }
.dropmenu .hd { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.dropmenu .hd .n { font-weight: 800; }
.dropmenu .hd .e { font-size: 12px; color: var(--text-3); }
.dropmenu .sep { border-top: 1px solid var(--line); }
