:root {
  --bg: #0c0909; --panel: #151212; --panel2: #1b1818; --line: #272424;
  --text: #efecec; --muted: #969393; --brand: #e81c00; --brand2: #b8b4b4; --brand3: #d8d8d8; --on-brand: #ffffff; --brand-text: #ff4a2b;
  --pos: #22e39a; --neg: #ff5470; --r: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 Inter, system-ui, sans-serif; display: grid; grid-template-columns: 240px 1fr; }
a { color: var(--brand-text); text-decoration: none; }
em { font-style: normal; color: var(--brand-text); }
h1, h2, h3, h4 { margin: 0 0 6px; line-height: 1.2; }
h1.page { font-size: 26px; margin-bottom: 18px; }
.muted { color: var(--muted); } .sm { font-size: 12px; }
.pos { color: var(--pos) !important; } .neg { color: var(--neg) !important; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 700; color: var(--brand-text); margin: 0 0 6px; }

/* sidebar */
.side { background: #0f0c0c; border-right: 1px solid var(--line); padding: 18px 14px; height: 100vh; overflow-y: auto; position: sticky; top: 0; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 800; font-size: 16px; }
.logo { display: inline-grid; place-items: center; width: 30px; height: 30px; clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); background: var(--brand); color: var(--on-brand); font-weight: 900; font-size: 13px; }
.me { text-align: center; margin: 24px 0 18px; display: grid; justify-items: center; gap: 2px; }
.me small { color: var(--muted); font-size: 11px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 20px; margin-bottom: 6px; box-shadow: 0 0 18px #e81c0044; }
.nav { display: grid; gap: 2px; }
.nav p { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #666363; margin: 14px 10px 4px; font-weight: 700; }
.nav a { color: #cdcaca; padding: 8px 10px; border-radius: 9px; }
.nav a:hover { background: var(--panel2); }
.nav a.on { background: #e81c0018; color: var(--brand); font-weight: 600; }
.topbar { display: none; }

.view { padding: 28px 32px 60px; overflow-y: auto; height: 100vh; max-width: 1180px; width: 100%; }
body.wide .view { max-width: none; }

/* componentes */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card.hl { border-color: #e81c0055; background: linear-gradient(160deg, #e81c0012, var(--panel) 60%); }
.card-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.list { display: grid; gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--brand); color: var(--on-brand); border: 0; border-radius: 10px; padding: 10px 16px; font: 700 13px Inter, sans-serif; cursor: pointer; margin-top: 10px; }
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid #e81c0055; }
.btn.sm { padding: 6px 10px; font-size: 12px; margin: 0; }
.btn[disabled] { opacity: .6; cursor: default; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #e81c001a; color: var(--brand); border: 1px solid #e81c0040; margin: 0 0 6px; }
.pill.ok { background: #22e39a1a; color: var(--pos); border-color: #22e39a55; }
.tag { font-size: 10px; background: var(--panel2); border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; margin-right: 4px; color: #c3c0c0; }
.big { font-size: 30px; font-weight: 800; margin: 4px 0; font-variant-numeric: tabular-nums; }
.x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; }
input, select { background: #100d0d; border: 1px solid var(--line); color: var(--text); border-radius: 9px; padding: 9px 11px; font: inherit; min-width: 0; }
input.err { border-color: var(--neg); }
.inline { display: flex; gap: 8px; align-items: center; } .inline .btn { margin: 0; }
.inline.wrap { flex-wrap: wrap; }
.form { display: grid; gap: 12px; max-width: 520px; margin-bottom: 16px; }
.form label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.form.card:has(.inline) { max-width: none; }
.seg { display: inline-flex; background: #100d0d; border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; margin: 6px 0 14px; }
.seg a, .seg button { color: var(--muted); background: none; border: 0; border-radius: 8px; padding: 6px 14px; font: 600 13px Inter, sans-serif; cursor: pointer; }
.seg .on { background: var(--brand); color: var(--on-brand); }
.seg.sm a, .seg.sm button { padding: 4px 10px; font-size: 12px; }
.seg.center { display: flex; width: max-content; margin: 0 auto 8px; }
.disclaimer { text-align: center; color: var(--muted); font-size: 12px; margin: 0 0 16px; }

/* início */
.hero { display: flex; align-items: center; gap: 22px; padding: 30px; border-radius: 18px; margin-bottom: 16px; border: 1px solid var(--line);
  background: radial-gradient(circle at 85% 20%, #b8b4b433, transparent 45%), radial-gradient(circle at 10% 90%, #e81c0022, transparent 40%), var(--panel); }
.hero h1 { font-size: 40px; font-weight: 900; }
.hero-logo span { display: grid; place-items: center; width: 92px; height: 92px; clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); background: linear-gradient(135deg, var(--brand), var(--brand2)); color: var(--on-brand); font-weight: 900; font-size: 36px; }
.banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid #e81c0040; border-radius: var(--r); background: #e81c000d; margin-bottom: 16px; }
.banner p { margin: 2px 0 0; color: var(--muted); font-size: 13px; } .banner .btn { margin: 0; white-space: nowrap; }
.row-item { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 10px; background: #100d0d; }
.row-item small { color: var(--muted); } .row-item .pill { margin: 0 0 0 auto; }
.mk { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mk small { color: var(--muted); font-size: 11px; }
.open::before, .closed::before { content: '● '; } .open { color: var(--pos); } .closed { color: var(--neg); }
.chips { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.chip { font-size: 11px; border: 1px solid var(--line); padding: 3px 9px; border-radius: 99px; color: var(--muted); }
.chip.on { color: var(--pos); border-color: #22e39a66; }
.mini-agents { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.mini-agents span { width: 14px; height: 14px; border-radius: 4px; background: var(--c); box-shadow: 0 0 8px var(--c); }
.news { margin-top: 0; }

/* vídeos / faq */
details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
details summary::-webkit-details-marker { display: none; }
.lessons { margin: 14px 0 0; padding-left: 18px; display: grid; gap: 8px; }
.lessons li.locked { color: var(--muted); }
.faq summary { font-weight: 600; }
.steps { padding-left: 18px; display: grid; gap: 6px; color: #cdcaca; }
.sub { margin: 10px 0 12px; }

/* seletor */
.quiz-hero, .quiz { max-width: 720px; margin: 40px auto; text-align: center; }
.quiz-hero h1, .quiz h1 { font-size: 48px; font-weight: 900; margin: 10px 0 14px; }
.quiz h2 { font-size: 28px; margin: 10px 0 24px; }
.progress { height: 6px; background: var(--panel2); border-radius: 9px; overflow: hidden; margin-bottom: 10px; }
.progress span { display: block; height: 100%; background: var(--brand); transition: width .3s; }
.opts { display: grid; gap: 10px; margin: 20px 0; }
.opt { background: var(--panel); border: 1px solid var(--line); color: var(--text); padding: 16px; border-radius: 12px; font: 600 15px Inter, sans-serif; cursor: pointer; text-align: left; }
.opt:hover { border-color: var(--brand); }
.opt.static { display: flex; justify-content: space-between; cursor: default; }

/* robôs */
.group { margin-bottom: 18px; }
.group-h { margin-bottom: 14px; }
.robot { border-top: 3px solid var(--c); background: var(--panel2); }
.robot .inline input { flex: 1; }
.lock { color: var(--muted); font-size: 13px; }
.ok-t { color: var(--pos); font-size: 13px; }

/* estatísticas */
.stat h3 { display: inline; margin-right: 10px; }
canvas.chart { width: 100%; height: 220px; display: block; margin: 8px 0 14px; }
canvas.chart.sm { height: 140px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.metrics > div { background: #100d0d; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; }
.metrics small { color: var(--muted); font-size: 11px; }
.metrics b { font-size: 18px; font-variant-numeric: tabular-nums; }
.metrics em { color: var(--muted); font-size: 11px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
th, td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--muted); font-weight: 600; }

/* escritório */
.office-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.office-top .big { font-size: 34px; }
.office-top .seg { margin: 4px 0 0; }
.floors { display: flex; gap: 6px; background: #100d0d; border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.floors a, .floors button { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; color: var(--muted); padding: 6px 12px; border-radius: 9px; border: 1px solid transparent; }
.floors i { grid-row: span 2; font-style: normal; font-weight: 800; color: var(--brand); align-self: center; }
.floors b { color: var(--text); font-size: 12px; } .floors small { font-size: 10px; }
.floors .on { border-color: var(--brand); background: #e81c0012; box-shadow: 0 0 14px #e81c0033 inset; }
.office-wrap { position: relative; height: calc(100vh - 200px); min-height: 460px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #0b0808; }
.office { position: absolute; inset: 0; }
.office canvas { display: block; }
.office-labels { position: absolute; inset: 0; }
.office-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.office-tools { position: absolute; top: 12px; left: 12px; display: flex; gap: 8px; z-index: 3; }
.office-tools .btn { background: #0a0d12cc; backdrop-filter: blur(6px); }
.office-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: linear-gradient(transparent, #06080cee 40%); z-index: 3; pointer-events: none; }
.office-bar span { background: #100d0d; border: 1px solid var(--line); padding: 6px 12px; border-radius: 10px; font-size: 13px; white-space: nowrap; }
.office-bar b { color: var(--pos); }

.agent-label { display: flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; background: #0a0d12e6; border: 1px solid var(--c); border-radius: 99px; font: 700 11px Inter, sans-serif; color: #fff; white-space: nowrap; cursor: pointer; box-shadow: 0 0 10px color-mix(in srgb, var(--c) 40%, transparent); pointer-events: auto; user-select: none; }
.agent-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.agent-label .v { font-variant-numeric: tabular-nums; }
.agent-label.rest { opacity: .75; }
.agent-label.rest i { background: #777; box-shadow: none; }
.agent-label.sel { transform: scale(1.15); background: color-mix(in srgb, var(--c) 25%, #100d0d); }
.agent-label.lab { --c: #e81c00; flex-direction: column; gap: 0; border-radius: 10px; padding: 4px 10px; }
.agent-label.lab span { font-weight: 500; color: var(--muted); font-size: 10px; }

.agent-panel { position: absolute; top: 12px; right: 12px; bottom: 56px; width: 320px; overflow-y: auto; z-index: 4; background: #0c0f15f2; backdrop-filter: blur(10px); border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: 14px; padding: 16px; display: grid; align-content: start; gap: 8px; }
.agent-panel[hidden] { display: none; }
.agent-panel .btn { margin: 0; width: 100%; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kv > div, .kv3 > div { background: #100d0d; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; }
.kv small, .kv3 small { color: var(--muted); font-size: 11px; } .kv b { font-size: 16px; }
.kv3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }

.building { display: grid; gap: 12px; max-width: 900px; }
.floor-card { display: grid; grid-template-columns: 50px 1.2fr 1fr auto; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(90deg, #e81c0010, var(--panel) 40%); color: var(--text); }
.floor-card:hover { border-color: var(--brand); }
.floor-card i { font-style: normal; font-size: 26px; font-weight: 900; color: var(--brand); }
.floor-card small { display: block; color: var(--muted); font-size: 12px; }
.fa { display: flex; gap: 6px; flex-wrap: wrap; }
.fa span { width: 16px; height: 22px; border-radius: 4px 4px 2px 2px; background: var(--c); box-shadow: 0 0 8px var(--c); }
.fa span.rest { opacity: .3; box-shadow: none; }
.fv { text-align: right; } .fv b { font-size: 18px; }

/* tv */
.tv h2 { font-size: 22px; }
.kpi { background: #100d0d; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; }
.kpi small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.kpi b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.card.kpi { padding: 18px; }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 150px 1fr 140px; align-items: center; gap: 12px; font-size: 13px; }
.bar i { height: 8px; background: var(--panel2); border-radius: 9px; overflow: hidden; }
.bar i em { display: block; height: 100%; border-radius: 9px; background: currentColor; }
.bar b { text-align: right; font-variant-numeric: tabular-nums; }

/* mobile */
@media (max-width: 900px) {
  body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .side { position: fixed; z-index: 20; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; }
  body.menu-open .side { transform: none; box-shadow: 0 0 0 100vmax #0009; }
  .topbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #0f0c0c; }
  .topbar button { background: none; border: 0; color: var(--text); font-size: 20px; }
  .view { padding: 18px 16px 50px; height: calc(100vh - 53px); }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .hero { flex-direction: column; align-items: flex-start; padding: 20px; } .hero h1 { font-size: 30px; }
  .banner { flex-direction: column; align-items: flex-start; }
  .quiz-hero h1, .quiz h1 { font-size: 32px; }
  .floors { overflow-x: auto; width: 100%; }
  .floors a, .floors button { flex: 0 0 auto; }
  .office-wrap { height: 70vh; }
  .agent-panel { left: 12px; width: auto; top: auto; max-height: 60%; }
  .office-bar small { display: none; }
  .floor-card { grid-template-columns: 40px 1fr; } .fa, .fv { grid-column: 2; text-align: left; }
  .bar { grid-template-columns: 90px 1fr 100px; font-size: 12px; }
}

.floors button { background: none; cursor: pointer; font: inherit; text-align: left; }
.floors button:not(:has(i)) b { grid-column: span 2; }
.cam-pad { position: absolute; left: 12px; bottom: 52px; z-index: 3; display: grid; grid-template-columns: repeat(4, 34px); gap: 4px; }
.cam-pad button { height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #0a0d12cc; color: var(--brand); font-size: 14px; cursor: pointer; backdrop-filter: blur(6px); user-select: none; touch-action: none; }
.cam-pad button:hover { border-color: var(--brand); }
.cam-pad { grid-template-areas: ". up . ." "left down right ." "rotl zin zout rotr"; }
.cam-pad [data-a="up"] { grid-area: up; } .cam-pad [data-a="left"] { grid-area: left; } .cam-pad [data-a="down"] { grid-area: down; } .cam-pad [data-a="right"] { grid-area: right; }
.cam-pad [data-a="rotl"] { grid-area: rotl; } .cam-pad [data-a="zin"] { grid-area: zin; } .cam-pad [data-a="zout"] { grid-area: zout; } .cam-pad [data-a="rotr"] { grid-area: rotr; }
.office-bar em { color: #fbbf24; font-style: normal; font-weight: 700; }
@media (max-width: 900px) { .cam-pad { bottom: 12px; } }

.logo-img { width: 36px; height: 36px; object-fit: contain; }
.hero-logo img { width: 112px; height: 112px; object-fit: contain; filter: drop-shadow(0 0 18px #e81c0055); }

.sup-panel { width: 400px; border-top-color: #e81c00; }
.goal-box { background: #100d0d; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
.goal-box label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.goal-box input { width: 120px; padding: 6px 8px; }
.gbar { height: 8px; background: var(--panel2); border-radius: 9px; overflow: hidden; }
.gbar span { display: block; height: 100%; background: var(--pos); transition: width .4s; }
.gbar span.hit { background: #facc15; }
.sup-list { display: grid; gap: 8px; }
.sup-row { background: #100d0d; border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 10px; padding: 8px 10px; display: grid; gap: 6px; }
.sr-h { display: flex; align-items: center; gap: 8px; }
.sr-h b { display: flex; align-items: center; gap: 6px; min-width: 74px; }
.sr-h b i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.sr-st { flex: 1; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sr-st.on { color: var(--pos); }
.sr-f { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sr-f label { display: grid; gap: 2px; font-size: 10px; color: var(--muted); }
.sr-f input { padding: 5px 6px; font-size: 12px; width: 100%; }
.agent-label .t { font: 600 10px "JetBrains Mono", monospace; color: #b2afaf; margin-left: 2px; }
.agent-label .t:empty, .agent-label .d:empty { display: none; }
.agent-label .d { font-style: normal; }
.agent-label.sup { --c: #e81c00; background: #1a0b0bee; }
.agent-label.sup .bub { display: none; font-weight: 600; color: #ffe2e0; max-width: 240px; white-space: normal; }
.agent-label.sup.talk .bub { display: inline; }
.agent-label.sup.talk { border-radius: 12px; box-shadow: 0 0 16px #e81c0088; }
@media (max-width: 900px) { .sup-panel { width: auto; } .sr-f { grid-template-columns: repeat(2, 1fr); } }
.office-tools #of-sup { background: #e81c00; color: #fff; border: 0; }
.office { isolation: isolate; }
.sr-h { flex-wrap: wrap; }
.sr-h .btn { margin-left: auto; }
.sr-st { flex-basis: 100%; order: 3; }

.sup-h { margin: 6px 0 0; font-size: 13px; }
.feed { display: grid; gap: 6px; }
.fi { background: #100d0d; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 10px; padding: 7px 10px; font-size: 12px; }
.fi > div { display: flex; justify-content: space-between; gap: 8px; }
.fi small { color: var(--muted); white-space: nowrap; }
.fi p { margin: 4px 0 0; color: #cdcaca; }
.fi.win, .fi.goal { border-left-color: var(--pos); }
.fi.loss { border-left-color: #fbbf24; }
.fi.pause, .fi.resume { border-left-color: #a3a0a0; }

.cal { background: #100d0d; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 6px 0 4px; }
.cal-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cal-h > b { min-width: 130px; text-align: center; font-size: 15px; }
.cal-h .x { font-size: 20px; padding: 0 6px; }
.cal-h .x[disabled] { opacity: .25; cursor: default; }
.cal-s { margin-left: auto; font-size: 12px; color: var(--muted); }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cw { font-size: 11px; color: var(--muted); text-align: center; padding-bottom: 2px; }
.cd { min-height: 58px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line); padding: 4px 6px; display: grid; align-content: start; gap: 1px; font-variant-numeric: tabular-nums; }
.cd span { font-size: 11px; color: var(--muted); }
.cd b { font-size: 13px; }
.cd small { font-size: 10px; color: var(--muted); }
.cd.up { background: #22e39a1a; border-color: #22e39a55; } .cd.up b { color: var(--pos); }
.cd.down { background: #ff54701a; border-color: #ff547055; } .cd.down b { color: var(--neg); }
.cd.wk { opacity: .45; } .cd.empty { background: none; border: 0; }
@media (max-width: 900px) { .cd { min-height: 46px; padding: 3px; } .cd b { font-size: 11px; } .cd small { display: none; } .cal-s { margin-left: 0; } }

/* paleta da logo: vermelho em destaques, cinzas nos detalhes */
.btn.ghost { color: var(--brand3); border-color: #e81c0066; }
.btn.ghost:hover { border-color: var(--brand); color: #fff; }
.pill { color: var(--brand-text); }
.avatar { border-color: var(--brand); box-shadow: 0 0 18px #e81c0044; }
.nav a.on { color: #fff; background: #e81c0026; box-shadow: inset 3px 0 0 var(--brand); }
.floors i { color: var(--brand-text); }
.cam-pad button { color: var(--brand3); }
.hero { background: radial-gradient(circle at 85% 20%, #b8b4b41f, transparent 45%), radial-gradient(circle at 10% 90%, #e81c0026, transparent 40%), var(--panel); }

/* tela de login */
body.auth { grid-template-columns: 1fr; }
body.auth .side, body.auth .topbar { display: none; }
body.auth .view { max-width: none; display: grid; place-items: center; background: radial-gradient(circle at 50% 0%, #e81c0022, transparent 55%), var(--bg); }
.login { width: min(400px, 100%); text-align: center; display: grid; gap: 10px; padding: 24px 0; }
.login-logo { width: 96px; height: 96px; margin: 0 auto; object-fit: contain; filter: drop-shadow(0 0 18px #e81c0055); }
.login h1 { font-size: 30px; font-weight: 900; margin: 0; }
.login .form { text-align: left; max-width: none; margin: 0; }
.login .form .btn { width: 100%; margin-top: 4px; }
.g-btn { display: flex; justify-content: center; min-height: 0; }
.g-btn:empty { display: none; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.form-msg { font-size: 13px; min-height: 1em; margin: 0; }
img.avatar { object-fit: cover; padding: 0; }

/* assinatura de membro */
.plans-buy { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-top: 12px; }
.plans-buy p { grid-column: 1 / -1; margin: 2px 0 0; }
.plan-btn { display: grid; gap: 2px; text-align: left; background: #100d0d; border: 1px solid var(--line); border-radius: 12px; padding: 12px; color: var(--text); cursor: pointer; font: inherit; }
.plan-btn:hover { border-color: var(--brand); }
.plan-btn span { font-size: 12px; color: var(--muted); } .plan-btn b { font-size: 18px; } .plan-btn small { color: var(--muted); font-size: 11px; }
.plan-btn[disabled] { opacity: .5; cursor: wait; }
.key-box { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #100d0d; border: 1px dashed var(--brand); border-radius: 10px; padding: 8px 10px; margin: 6px 0; }
.key-box code { font: 700 16px "JetBrains Mono", monospace; letter-spacing: .04em; user-select: all; flex: 1; }
.key-box .btn { margin: 0; }
.member-key { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.form { align-content: start; }

.g-fallback { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 300px; max-width: 100%; height: 42px; border-radius: 99px;
  background: #131314; border: 1px solid #8e918f; color: #e3e3e3; font: 500 14px Roboto, Inter, sans-serif; cursor: pointer; }
.g-fallback:hover { background: #1f1f1f; }
.login .legal { margin-top: 4px; }

/* curso */
.card.course { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 16px;
  border-color: #e81c0066; background: linear-gradient(120deg, #e81c001f, var(--panel) 55%); }
.card.course > div { flex: 1; min-width: 240px; } .card.course h3 { font-size: 22px; } .card.course .btn { margin: 0; }

/* canal */
.chat-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; cursor: pointer; }
.chat-pins { display: grid; gap: 6px; margin-bottom: 10px; }
.pin { background: #e81c0014; border: 1px solid #e81c0055; border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.chat { display: grid; grid-template-rows: 1fr auto auto; height: calc(100vh - 230px); min-height: 420px; padding: 0; overflow: hidden; }
.chat-list { overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; gap: 10px; align-items: flex-start; }
.msg-av { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px; display: grid; place-items: center; background: var(--panel2); border: 1px solid var(--line); font-weight: 800; object-fit: cover; }
.msg-b { background: #0d0c0c; border: 1px solid var(--line); border-radius: 4px 12px 12px 12px; padding: 7px 11px; max-width: min(720px, 100%); }
.msg.mine .msg-b { border-color: #e81c0055; }
.msg.mod .msg-b { background: #e81c0012; border-color: #e81c0080; }
.msg-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.msg-h .pill { margin: 0; font-size: 10px; padding: 1px 6px; }
.msg-h small { color: var(--muted); }
.msg-b p { margin: 3px 0 0; white-space: normal; word-break: break-word; }
.msg-act { margin-left: auto; display: none; gap: 2px; }
.msg:hover .msg-act { display: inline-flex; }
.msg-act button { background: none; border: 0; cursor: pointer; font-size: 13px; opacity: .75; }
.msg-act button:hover { opacity: 1; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; resize: none; min-height: 42px; max-height: 120px; }
.chat-form .btn { margin: 0; }
.chat .form-msg { padding: 0 12px 8px; }
.lock-card { max-width: 620px; }
@media (max-width: 900px) { .msg-act { display: inline-flex; } .chat { height: calc(100vh - 200px); } }

/* notícias */
.news-cats { flex-wrap: wrap; }
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-bottom: 14px; }
.news-item { display: flex; gap: 12px; color: var(--text); padding: 12px; align-items: flex-start; transition: border-color .15s; }
.news-item:hover { border-color: var(--brand); }
.news-item img, .news-noimg { width: 110px; height: 74px; object-fit: cover; border-radius: 8px; flex: 0 0 110px; background: var(--panel2); display: grid; place-items: center; font-size: 24px; }
.news-item h3 { font-size: 14px; line-height: 1.35; margin: 0 0 6px; }
.news-item small { color: var(--muted); }
textarea { background: #0d0c0c; border: 1px solid var(--line); color: var(--text); border-radius: 9px; padding: 9px 11px; font: inherit; }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--brand); }
