/* ============================================================
   Trading 282 — base visual.
   Preto grafite com dourado da marca e prata nos títulos. O dourado
   é reservado para ação e destaque; verde e vermelho só para
   resultado financeiro, para nunca competirem com a marca.
   ============================================================ */

:root {
  --bg:        #09090b;
  --surface:   #111114;
  --surface-2: #17171b;
  --surface-3: #202026;
  --line:      #25252d;
  --line-soft: #1a1a20;

  --text:      #f3f3f5;
  --text-dim:  #a4a4ae;
  --text-mute: #6c6c78;

  --gold:      #f5b301;
  --gold-hi:   #ffd460;
  --gold-lo:   #c98a00;
  --gold-ink:  #1c1300;
  --gold-bg:   rgba(245, 179, 1, .12);
  --gold-line: rgba(245, 179, 1, .38);
  --grad-gold: linear-gradient(135deg, #ffe08a 0%, #f5b301 48%, #cf8f00 100%);
  --grad-silver: linear-gradient(180deg, #ffffff 0%, #d9d9e0 55%, #a9a9b4 100%);

  --accent:    var(--gold);
  --accent-dim: rgba(245, 179, 1, .16);
  --info:      #5ea4ff;
  --info-bg:   rgba(94, 164, 255, .13);
  --up:        #19c37d;
  --up-bg:     rgba(25, 195, 125, .12);
  --down:      #ff4d5e;
  --down-bg:   rgba(255, 77, 94, .12);
  --warn:      #ff9f1a;
  --warn-bg:   rgba(255, 159, 26, .13);

  --radius: 12px;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 32px rgba(0,0,0,.35);
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --sans: "Inter", "Segoe UI", -apple-system, system-ui, sans-serif;
  --display: "Saira", "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }

::selection { background: rgba(245, 179, 1, .35); color: #fff; }

.ic { flex: 0 0 auto; vertical-align: middle; }

.mono, .num, td.num, input[type="number"] {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.up    { color: var(--up); }
.down  { color: var(--down); }
.gold  { color: var(--gold); }
.dim   { color: var(--text-dim); }
.mute  { color: var(--text-mute); }
.right { text-align: right; }
.center{ text-align: center; }
.nowrap{ white-space: nowrap; }
.small { font-size: 12px; }

/* --------------------------------------------------------- marca */

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { display: block; height: 22px; width: auto; }
.brand-tag {
  font: 600 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); padding: 4px 7px; border: 1px solid var(--gold-line); border-radius: 6px;
}

/* ------------------------------------------ topo (área do cliente) */

.topbar {
  display: flex; align-items: center; gap: 16px;
  height: 60px; padding: 0 20px;
  background: rgba(12, 12, 15, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.topbar::after {
  /* filete dourado sob a barra: a assinatura da marca em toda tela */
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,179,1,.45) 30%, rgba(245,179,1,.45) 70%, transparent);
  pointer-events: none;
}

.nav { display: flex; gap: 2px; margin-left: 10px; }
.nav a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 9px;
  color: var(--text-dim); font-size: 13.5px; font-weight: 500;
}
.nav a .ic { opacity: .75; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.on { background: var(--gold-bg); color: var(--gold); }
.nav a.on .ic { opacity: 1; }

.topbar .spacer { flex: 1; }

.feed {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 11px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px;
  font-size: 11.5px; color: var(--text-dim); white-space: nowrap;
}
.feed .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-mute); }
.feed.live .dot { background: var(--up); box-shadow: 0 0 0 3px rgba(25,195,125,.18); animation: pulse 2.4s infinite; }
.feed.sim .dot  { background: var(--warn); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

.equity-chip {
  display: flex; flex-direction: column; align-items: flex-end;
  padding: 0 14px; border-left: 1px solid var(--line);
}
.equity-chip .label { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mute); }
.equity-chip .value { font-family: var(--mono); font-size: 15px; font-weight: 600; }

.avatar {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  background: var(--grad-gold); color: var(--gold-ink);
  display: grid; place-items: center;
  font-weight: 700; font-size: 12.5px; letter-spacing: .02em;
}
.avatar.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
.avatar.ghost { background: var(--surface-3); color: var(--text-dim); border: 1px solid var(--line); }

.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text-dim); cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--text-mute); }

/* Navegação inferior no celular (área do cliente) */
.mnav { display: none; }

/* ---------------------------------------------------- estrutura */

.layout { display: grid; grid-template-columns: 290px 1fr 320px; gap: 1px; background: var(--line-soft); min-height: calc(100vh - 60px); }
.col { background: var(--bg); min-width: 0; display: flex; flex-direction: column; }
.page { max-width: 1280px; margin: 0 auto; padding: 26px 24px 70px; width: 100%; }

.page-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumb { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--text-mute); margin-bottom: 8px; }
.crumb:hover { color: var(--gold); }

h1.page-title {
  font-family: var(--display); font-weight: 700;
  font-size: 26px; line-height: 1.15; margin: 0 0 4px; letter-spacing: -.01em;
}
p.page-sub { color: var(--text-dim); margin: 0; font-size: 13.5px; max-width: 70ch; }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 16px; }
.panel-head {
  display: flex; align-items: center; gap: 10px; min-height: 52px;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
}
.panel-head h2, .panel-head h3 {
  margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.005em;
  display: flex; align-items: center; gap: 8px;
}
.panel-head h2 .ic, .panel-head h3 .ic { color: var(--gold); }
.panel-head .aside { margin-left: auto; font-size: 12px; color: var(--text-mute); display: flex; gap: 8px; align-items: center; }
.panel-body { padding: 18px; }
.panel.flat { box-shadow: none; }
.panel.gold { border-color: var(--gold-line); background: linear-gradient(180deg, rgba(245,179,1,.06), transparent 60%), var(--surface); }

/* --------------------------------------------------- watchlist */

.wl-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 12px; border-bottom: 1px solid var(--line);
}
.wl-head .t { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-mute); font-weight: 600; }
.wl { overflow-y: auto; flex: 1; }

.wl-row {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px;
  padding: 11px 16px; border-bottom: 1px solid var(--line-soft);
  cursor: pointer; transition: background .12s;
}
.wl-row:hover { background: var(--surface); }
.wl-row.on { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--gold); }
.wl-row .sym { font-weight: 600; font-size: 13.5px; }
.wl-row .nm { font-size: 11px; color: var(--text-mute); grid-column: 1; }
.wl-row .px { font-family: var(--mono); font-size: 13.5px; text-align: right; }
.wl-row .ch { font-family: var(--mono); font-size: 11px; text-align: right; }

@keyframes flash-up   { from { background: var(--up-bg); }   to { background: transparent; } }
@keyframes flash-down { from { background: var(--down-bg); } to { background: transparent; } }
.tick-up   { animation: flash-up .6s ease-out; }
.tick-down { animation: flash-down .6s ease-out; }

/* ---------------------------------------------------- gráfico */

.chart-head {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 15px 20px; border-bottom: 1px solid var(--line);
}
.chart-sym { display: flex; align-items: baseline; gap: 10px; }
.chart-sym .s { font-family: var(--display); font-size: 21px; font-weight: 700; }
.chart-sym .n { font-size: 12px; color: var(--text-mute); }
.chart-price { font-family: var(--mono); font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.chart-chg { font-family: var(--mono); font-size: 13px; padding: 3px 8px; border-radius: 6px; }
.chart-chg.up { background: var(--up-bg); }
.chart-chg.down { background: var(--down-bg); }

.chart-stats { display: flex; gap: 20px; margin-left: auto; }
.chart-stats div { font-size: 11px; color: var(--text-mute); }
.chart-stats b { display: block; font-family: var(--mono); font-size: 13px; color: var(--text-dim); font-weight: 500; }

.intervals { display: flex; gap: 4px; padding: 10px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.intervals a {
  padding: 5px 12px; border-radius: 8px;
  font-size: 12px; font-family: var(--mono); color: var(--text-mute);
}
.intervals a:hover { background: var(--surface-2); color: var(--text); }
.intervals a.on { background: var(--gold-bg); color: var(--gold); }

.chart-wrap { position: relative; flex: 1; min-height: 360px; padding: 8px 8px 0; }
#chart { width: 100%; height: 100%; display: block; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-mute); font-size: 13px; }

/* ------------------------------------------------------ ordem */

.ticket { padding: 16px; border-bottom: 1px solid var(--line); }
.side-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 15px; }
.side-btn {
  padding: 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text-dim);
  font-weight: 600; font-size: 13.5px; cursor: pointer; font-family: var(--sans);
  transition: all .12s;
}
.side-btn:hover { border-color: var(--text-mute); color: var(--text); }
.side-btn.on[data-side="buy"]  { background: var(--up-bg);   border-color: var(--up);   color: var(--up); }
.side-btn.on[data-side="sell"] { background: var(--down-bg); border-color: var(--down); color: var(--down); }

.field { margin-bottom: 14px; }
.field label, .label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  font-size: 12px; color: var(--text-dim); margin-bottom: 6px; font-weight: 500;
}
.field label .hint { font-weight: 400; font-size: 11.5px; color: var(--text-mute); }

.input, select.input, textarea.input {
  width: 100%; padding: 10px 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 9px;
  color: var(--text); font-family: var(--sans); font-size: 14px;
  outline: none; transition: border-color .12s, box-shadow .12s;
}
input.input[type="number"], .input.mono { font-family: var(--mono); }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,179,1,.14); }
.input::placeholder { color: var(--text-mute); font-family: var(--sans); }
.input:disabled { opacity: .6; }
select.input { cursor: pointer; appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a4a4ae' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; }
textarea.input { resize: vertical; line-height: 1.5; }

.lev-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lev {
  padding: 8px 0; text-align: center; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--text-dim);
}
.lev:hover { border-color: var(--text-mute); }
.lev.on { background: var(--gold-bg); border-color: var(--gold); color: var(--gold); }
.lev.off { opacity: .3; cursor: not-allowed; }

.summary { padding: 12px 14px; background: var(--bg); border: 1px solid var(--line-soft); border-radius: 10px; margin-bottom: 14px; }
.summary div { display: flex; justify-content: space-between; font-size: 12px; padding: 3px 0; }
.summary div span:first-child { color: var(--text-mute); }
.summary div span:last-child { font-family: var(--mono); }

/* ---------------------------------------------------- botões */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px 16px;
  border: 1px solid transparent; border-radius: 10px; cursor: pointer;
  font-weight: 600; font-size: 14px; font-family: var(--sans); line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: filter .12s, background .12s, border-color .12s, color .12s, transform .08s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn-buy  { background: var(--up); color: #03140c; }
.btn-sell { background: var(--down); color: #1a0409; }
.btn-accent, .btn-gold {
  background: var(--grad-gold); color: var(--gold-ink);
  box-shadow: 0 6px 18px rgba(245,179,1,.18), 0 1px 0 rgba(255,255,255,.35) inset;
}
.btn-accent:hover, .btn-gold:hover { color: var(--gold-ink); }
.btn-ghost {
  background: var(--surface-2); color: var(--text-dim);
  border-color: var(--line); width: auto; padding: 8px 13px; font-size: 13px; font-weight: 500;
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-mute); filter: none; }
.btn-outline { background: transparent; color: var(--gold); border-color: var(--gold-line); width: auto; }
.btn-outline:hover { background: var(--gold-bg); color: var(--gold-hi); }
.btn-success { background: var(--up-bg); color: var(--up); border-color: rgba(25,195,125,.35); }
.btn-danger { background: var(--down-bg); color: var(--down); border-color: rgba(255,77,94,.35); }
.btn-sm { width: auto; padding: 7px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-xs { width: auto; padding: 4px 9px; font-size: 11.5px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn-auto { width: auto; }

/* ------------------------------------------------------ conta */

.acct { padding: 16px; }
.acct-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 12.5px; }
.acct-row span:first-child { color: var(--text-mute); }
.acct-row span:last-child { font-family: var(--mono); font-weight: 500; }
.acct-bar { height: 5px; background: var(--surface-3); border-radius: 3px; overflow: hidden; margin: 9px 0 4px; }
.acct-bar i { display: block; height: 100%; background: var(--grad-gold); transition: width .4s; }
.acct-bar i.hot { background: var(--warn); }
.acct-bar i.danger { background: var(--down); }

/* ---------------------------------------------------- tabelas */

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; padding: 10px 16px;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-mute); font-weight: 600;
  border-bottom: 1px solid var(--line); white-space: nowrap;
  background: rgba(255,255,255,.012);
}
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font-size: 13px; vertical-align: middle; }
tbody tr { transition: background .1s; }
tbody tr:hover { background: rgba(255,255,255,.018); }
tbody tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
tr.row-link { cursor: pointer; }
.cell-main { font-weight: 600; color: var(--text); }
.cell-sub { font-size: 11.5px; color: var(--text-mute); margin-top: 1px; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who > div { min-width: 0; }

.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  background: var(--surface-3); color: var(--text-dim);
}
.pill.buy, .pill.on, .pill.approved  { background: var(--up-bg); color: var(--up); }
.pill.sell, .pill.rejected           { background: var(--down-bg); color: var(--down); }
.pill.off  { background: var(--surface-3); color: var(--text-mute); }
.pill.liq, .pill.pending, .pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.lev  { background: var(--surface-3); color: var(--text-dim); font-family: var(--mono); border-radius: 6px; padding: 2px 6px; }
.pill.new, .pill.info { background: var(--info-bg); color: var(--info); }
.pill.gold { background: var(--gold-bg); color: var(--gold); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.empty { padding: 40px 20px; text-align: center; color: var(--text-mute); font-size: 13px; }
.empty .ic { display: block; margin: 0 auto 10px; color: var(--text-mute); opacity: .6; }
.empty strong { display: block; color: var(--text-dim); font-size: 14px; margin-bottom: 3px; }

/* ---------------------------------------------------- cartões */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow);
}
.stat .k { display: flex; align-items: center; gap: 7px; font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--text-mute); font-weight: 600; }
.stat .k .ic { color: var(--gold); opacity: .9; }
.stat .v { font-family: var(--mono); font-size: 23px; font-weight: 600; margin-top: 8px; letter-spacing: -.02em; }
.stat .s { font-size: 12px; color: var(--text-mute); margin-top: 3px; }
.stat.hero { border-color: var(--gold-line); background: linear-gradient(135deg, rgba(245,179,1,.10), transparent 55%), var(--surface); }
.stat.hero .v { color: var(--gold); }
a.stat { color: inherit; display: block; transition: border-color .15s, transform .15s; }
a.stat:hover { border-color: var(--gold-line); transform: translateY(-1px); color: inherit; }
.stat.alert { border-color: rgba(255,159,26,.4); }
.stat.alert .v { color: var(--warn); }

/* ------------------------------------------------------ avisos */

.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 15px; border-radius: 10px; margin-bottom: 16px; font-size: 13px; border: 1px solid; }
.flash.ok  { background: var(--up-bg); border-color: rgba(25,195,125,.3); color: var(--up); }
.flash.bad { background: var(--down-bg); border-color: rgba(255,77,94,.3); color: var(--down); }
.flash.warn{ background: var(--warn-bg); border-color: rgba(255,159,26,.3); color: var(--warn); }
.flash.gold{ background: var(--gold-bg); border-color: var(--gold-line); color: var(--gold-hi); }

/* ---------------------------------------------------- entrada */

.guest { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.guest-art {
  position: relative; overflow: hidden;
  background:
    radial-gradient(800px 480px at 10% 0%, rgba(245,179,1,.16), transparent 60%),
    radial-gradient(600px 460px at 100% 100%, rgba(255,255,255,.05), transparent 60%),
    var(--surface);
  border-right: 1px solid var(--line);
  padding: 52px 60px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.guest-art::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 30% 30%, #000 20%, transparent 70%);
}
.guest-art > * { position: relative; }
.guest-art .brand img { height: 30px; }
.guest-art h1 {
  font-family: var(--display); font-size: 44px; line-height: 1.05; letter-spacing: -.01em;
  margin: 40px 0 16px; max-width: 13ch;
}
.guest-art h1 em { font-style: normal; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.guest-art p { color: var(--text-dim); font-size: 15px; max-width: 44ch; margin: 0; line-height: 1.65; }
.guest-points { display: flex; flex-direction: column; gap: 14px; margin-top: 36px; }
.guest-points div { display: flex; gap: 12px; font-size: 13.5px; color: var(--text-dim); align-items: flex-start; }
.guest-points b { color: var(--text); font-weight: 600; }
.tick-mark {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 7px;
  display: inline-grid; place-items: center;
  background: var(--gold-bg); color: var(--gold); font-weight: 700; font-size: 12px;
}

.guest-form { display: grid; place-items: center; padding: 40px 24px; }
.guest-card { width: 100%; max-width: 380px; }
.guest-card .mobile-brand { display: none; margin-bottom: 30px; }
.guest-card .mobile-brand img { height: 26px; }
.guest-card h2 { font-family: var(--display); font-size: 28px; margin: 0 0 6px; }
.guest-card .sub { color: var(--text-dim); font-size: 13.5px; margin: 0 0 26px; }
.demo-box {
  margin-top: 22px; padding: 13px 15px;
  background: var(--surface); border: 1px dashed var(--line); border-radius: 10px;
  font-size: 12px; color: var(--text-mute); line-height: 1.8;
}
.demo-box b { color: var(--text-dim); font-weight: 600; }
.demo-box code { font-family: var(--mono); color: var(--gold); font-size: 11.5px; }

/* ------------------------------------------------------- erro */

.errpage { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.errpage img { height: 26px; margin-bottom: 34px; }
.errpage .code { font-family: var(--display); font-size: 84px; font-weight: 700; line-height: 1; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.errpage h1 { font-size: 20px; margin: 12px 0 10px; }
.errpage p { color: var(--text-dim); max-width: 46ch; margin: 0 auto 22px; font-size: 14px; }

/* ------------------------------------------------- responsivo */

@media (max-width: 1180px) {
  .layout { grid-template-columns: 250px 1fr; }
  .col-ticket { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .col-ticket .ticket { max-width: 640px; }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .col-watch { max-height: 300px; }
  .guest { grid-template-columns: 1fr; }
  .guest-art { display: none; }
  .guest-card .mobile-brand { display: block; }
  .topbar .nav, .topbar .feed { display: none; }
  .chart-stats { display: none; }
  .equity-chip { padding: 0 8px; border-left: 0; }
  .topbar { gap: 10px; padding: 0 14px; }
  .page { padding: 20px 16px 96px; }
  h1.page-title { font-size: 22px; }

  .mnav {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(12,12,15,.96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .mnav a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 2px; border-radius: 10px;
    font-size: 10.5px; color: var(--text-mute);
  }
  .mnav a.on { color: var(--gold); }
  body.has-mnav #toasts { bottom: 80px; }
}

/* Telas sem .page-head: o subtítulo ainda precisa de respiro antes do conteúdo */
.page > p.page-sub { margin-bottom: 22px; }
.stat .v .pill { font-family: var(--sans); font-size: 12px; letter-spacing: 0; }
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .topbar .brand img { height: 18px; }
  .equity-chip .value { font-size: 13px; }
}
