/* ============================================================================
   BUSÃO VR — Componentes de Interface, Cards, Botões, Popover e Modais
   ============================================================================ */

/* --- BOTÕES --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s, transform 0.08s;
}

.btn:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: #495A6C;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0D1014;
}

.btn-primary:hover:not(:disabled) {
  background: #FFC133;
  border-color: #FFC133;
}

.btn-good {
  background: rgba(57, 201, 126, 0.16);
  border-color: rgba(57, 201, 126, 0.48);
  color: var(--good);
}

.btn-good:hover:not(:disabled) {
  background: rgba(57, 201, 126, 0.25);
}

.btn-crit {
  background: rgba(242, 100, 87, 0.15);
  border-color: rgba(242, 100, 87, 0.48);
  color: var(--crit);
}

.btn-crit:hover:not(:disabled) {
  background: rgba(242, 100, 87, 0.25);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-dim);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-xs {
  padding: 3px 8px;
  font-size: 11.5px;
}

.btn-block {
  width: 100%;
}

/* --- CARDS DE EMPRESA (TELA INICIAL) --- */
.continue-banner {
  background: linear-gradient(135deg, rgba(255, 176, 0, 0.13), rgba(20, 25, 31, 0.95));
  border: 1px solid rgba(255, 176, 0, 0.4);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.continue-info h3 {
  margin: 0 0 4px;
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--accent);
}

.continue-info p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 13px;
}

.company-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.18s, transform 0.16s, box-shadow 0.18s;
}

.company-card:hover {
  border-color: rgba(255, 176, 0, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.company-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.company-card h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 23px;
  line-height: 1.1;
}

.company-garage {
  font-size: 12px;
  color: var(--muted);
}

.diff-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  white-space: nowrap;
}

.diff-facil { background: rgba(57, 201, 126, 0.16); color: var(--good); }
.diff-dificil { background: rgba(242, 100, 87, 0.18); color: var(--crit); }
.diff-avancado { background: rgba(255, 176, 0, 0.16); color: var(--accent); }

.bus-svg-wrap {
  background: #0D1116;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.company-desc {
  margin: 0;
  font-size: 12.8px;
  color: var(--ink-dim);
  flex: 1;
}

.company-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}

.company-metrics div {
  display: flex;
  flex-direction: column;
}

.company-metrics span {
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
}

.company-metrics strong {
  font-family: var(--font-mono);
  font-size: 13px;
}

.lines-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.line-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-3);
  color: var(--ink-dim);
}

/* --- APPBAR --- */
.brand-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: #07090B;
  border: 1px solid #2A3138;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.brand-led {
  font-family: var(--font-led);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent);
}

.company-chip {
  display: flex;
  align-items: center;
  gap: 9px;
}

.company-sigla {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--mine);
  color: #081018;
}

.company-chip-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.company-chip-text strong {
  font-size: 13.5px;
}

.company-chip-text span {
  font-size: 11.5px;
  color: var(--muted);
}

.event-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-dim);
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clock-block {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px;
  background: #07090B;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.clock-day {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  line-height: 1.2;
}

.led-clock {
  font-family: var(--font-led);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255, 176, 0, 0.45);
  min-width: 68px;
  text-align: center;
}

.speed-controls {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.speed-btn {
  border: none;
  background: transparent;
  padding: 6px 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.speed-btn:hover {
  color: var(--ink);
  background: var(--surface-3);
}

.speed-btn.active {
  background: var(--accent);
  color: #0B0E11;
}

.hud-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}

.hud-stat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.6px;
}

.hud-stat-val {
  font-family: var(--font-mono);
  font-size: 14px;
}

/* --- CONTROLES FLUTUANTES DO MAPA --- */
.map-toolbar {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
}

.layers-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.layer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 21, 27, 0.88);
  backdrop-filter: blur(6px);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s;
}

.layer-pill.active {
  color: var(--ink);
  border-color: rgba(255, 176, 0, 0.55);
  background: rgba(26, 33, 42, 0.94);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.dot-amber { background: var(--accent); }
.dot-gold { background: #FFD166; }
.dot-red { background: var(--crit); }
.dot-green { background: var(--electric); }
.dot-slate { background: #94A3B8; }

.map-zoom-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.zoom-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(16, 21, 27, 0.9);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.zoom-btn:hover {
  background: var(--surface-3);
  border-color: var(--accent);
}

.map-legend {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(13, 17, 22, 0.88);
  border: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink-dim);
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.leg-box {
  display: inline-block;
  width: 11px;
  height: 6px;
  border-radius: 2px;
}

.leg-line {
  display: inline-block;
  width: 14px;
  height: 2.5px;
}

/* Popover interativo de rota no mapa */
.route-popover {
  position: absolute;
  bottom: 52px;
  left: 12px;
  z-index: 12;
  width: 310px;
  max-width: calc(100% - 24px);
  max-height: calc(100% - 76px);
  overflow-y: auto;
  background: rgba(20, 25, 31, 0.96);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 176, 0, 0.55);
  border-radius: var(--radius-md);
  padding: 13px;
  box-shadow: var(--shadow-lg);
}

.popover-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.popover-code {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.popover-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.popover-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 17px;
  cursor: pointer;
  padding: 0 4px;
}

.popover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 8px 0 10px;
}

.popover-stat {
  background: var(--surface-2);
  border-radius: 5px;
  padding: 6px 7px;
}

.popover-stat span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}

.popover-stat strong {
  font-family: var(--font-mono);
  font-size: 13px;
}

.popover-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* --- ABAS DA SIDEBAR --- */
.tab-btn {
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 11px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  position: relative;
}

.tab-btn:hover {
  color: var(--ink);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(255, 176, 0, 0.05);
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--crit);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  margin-left: 3px;
}

/* --- CARDS INTERNOS DA SIDEBAR --- */
.card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
}

.card-title {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.kpi-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
}

.kpi-box span {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
}

.kpi-box strong {
  font-family: var(--font-mono);
  font-size: 16px;
}

.pendencia-card {
  background: rgba(242, 100, 87, 0.08);
  border: 1px solid rgba(242, 100, 87, 0.42);
  border-radius: var(--radius-md);
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pendencia-card.is-blitz {
  background: rgba(240, 180, 41, 0.08);
  border-color: rgba(240, 180, 41, 0.45);
}

.timer-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.timer-fill {
  height: 100%;
  background: var(--crit);
  transition: width 0.25s linear;
}

/* Lista de linhas */
.search-input {
  width: 100%;
  padding: 8px 11px;
  background: #0D1116;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 13px;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
}

.line-row {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.14s;
}

.line-row:hover {
  border-color: var(--line-strong);
}

.line-row.selected {
  border-color: var(--accent);
  background: rgba(255, 176, 0, 0.06);
}

.line-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.line-code-badge {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
  min-width: 44px;
}

.line-name {
  flex: 1;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.pill-good { background: rgba(57, 201, 126, 0.18); color: var(--good); }
.pill-warn { background: rgba(240, 180, 41, 0.20); color: var(--warn); }
.pill-crit { background: rgba(242, 100, 87, 0.22); color: var(--crit); }
.pill-desvio { background: rgba(255, 152, 56, 0.22); color: #FF9838; }

.meter {
  height: 5px;
  background: #0D1116;
  border-radius: 99px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 99px;
}

.line-row-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--muted);
}

.mini-controls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Toggle Switch */
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.toggle-row:last-child {
  border-bottom: none;
}

/* Log feed */
.log-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
}

.log-item {
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 5px;
  background: rgba(11, 14, 17, 0.65);
  border-left: 3px solid var(--line-strong);
}

.log-item.good { border-left-color: var(--good); }
.log-item.warn { border-left-color: var(--warn); }
.log-item.crit { border-left-color: var(--crit); }

.log-hora {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-right: 6px;
}

/* --- MODAIS --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 8, 12, 0.78);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-box {
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent);
}

.modal-title {
  margin: 2px 0 0;
  font-family: var(--font-head);
  font-size: 26px;
  line-height: 1.1;
}

.choice-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.choice-btn {
  text-align: left;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color 0.14s, background 0.14s;
}

.choice-btn:hover {
  border-color: var(--accent);
  background: var(--surface-3);
}

.choice-btn strong {
  font-size: 13.8px;
  color: var(--ink);
}

.choice-btn span {
  font-size: 12px;
  color: var(--muted);
}

/* Jornal Manchete */
.newspaper-card {
  background: #ECE7DA;
  color: #1A1A1A;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  border: 2px solid #C8BFA8;
}

.newspaper-mast {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 2px solid #1A1A1A;
  padding-bottom: 4px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.newspaper-headline {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 8px;
}

/* Tabela DRE */
.dre-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.dre-table td {
  padding: 6px 2px;
  border-bottom: 1px solid var(--line);
}

.dre-table td:last-child {
  text-align: right;
  font-family: var(--font-mono);
}

.dre-table tr.dre-total td {
  border-top: 2px solid var(--line-strong);
  border-bottom: none;
  font-weight: 700;
  font-size: 14.5px;
  padding-top: 10px;
}

/* Oficina Noturna Checkboxes */
.night-bus-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}

.night-bus-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
}

.night-bus-item.selected {
  border-color: var(--accent);
  background: rgba(255, 176, 0, 0.1);
}

/* Toasts */
.toast-container {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: #141A21;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--accent);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.2s ease-out;
}

.toast.good { border-left-color: var(--good); }
.toast.crit { border-left-color: var(--crit); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- MODO FUNDAR EMPRESA & LEILÃO SUL FLUMINENSE --- */
.found-banner {
  background: linear-gradient(135deg, rgba(31, 209, 139, 0.11), rgba(20, 25, 31, 0.96) 55%, rgba(255, 176, 0, 0.10));
  border: 1px solid rgba(31, 209, 139, 0.38);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.found-banner-info {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.found-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--electric);
}

.found-banner h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 25px;
  line-height: 1.1;
}

.found-banner p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-dim);
  max-width: 680px;
}

.found-lots-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.swatch-btn {
  height: 34px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--line-strong);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.swatch-btn.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 176, 0, 0.35);
}

.garage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.garage-opt {
  text-align: left;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.garage-opt.active {
  border-color: var(--accent);
  background: rgba(255, 176, 0, 0.1);
}

.garage-opt strong {
  font-size: 12.5px;
}

.garage-opt span {
  font-size: 11px;
  color: var(--muted);
}

.lote-card {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.14s, background 0.14s;
}

.lote-card.disputando {
  border-color: var(--accent);
  background: rgba(255, 176, 0, 0.06);
}

.lote-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.lote-check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}

.lote-check-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.modal-wide {
  max-width: 680px !important;
}

.prep-banner {
  position: absolute;
  top: 56px;
  left: 12px;
  right: 54px;
  z-index: 12;
  background: rgba(16, 22, 29, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(31, 209, 139, 0.55);
  border-radius: var(--radius-md);
  padding: 12px 15px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.prep-banner strong {
  color: var(--electric);
  font-size: 13.5px;
}

.prep-banner span {
  font-size: 12px;
  color: var(--ink-dim);
}

/* --- FASE 3: ABA GESTÃO, CONFIGURADOR CARROCERIA×CHASSI & ESCALA --- */
.subtabs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.subtab-btn {
  padding: 6px 4px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
}

.subtab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0B0E11;
}

.mgr-card {
  background: rgba(11, 14, 17, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mgr-card.active {
  border-color: rgba(57, 201, 126, 0.48);
  background: rgba(57, 201, 126, 0.06);
}

.spec-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.spec-bar-item {
  background: #0D1116;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px 7px;
  font-size: 11px;
}

.spec-dots {
  display: flex;
  gap: 3px;
  margin-top: 3px;
}

.spec-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--surface-3);
}

.spec-dot.on { background: var(--accent); }
.spec-dot.on-good { background: var(--good); }

.chassis-opt {
  text-align: left;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #0E1318;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chassis-opt.active {
  border-color: var(--accent);
  background: rgba(255, 176, 0, 0.09);
}

.relevo-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}
.relevo-morro { background: rgba(242, 100, 87, 0.16); color: #FF877B; }
.relevo-misto { background: rgba(240, 180, 41, 0.14); color: var(--warn); }
.relevo-plano { background: rgba(57, 201, 126, 0.14); color: var(--good); }

/* --- SISTEMA DE AJUDA: TOOLTIPS (?) E GUIA DO JOGO --- */
.help-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
  margin-left: 4px;
  flex-shrink: 0;
  user-select: none;
  transition: background 0.14s, border-color 0.14s;
}

.help-tip:hover, .help-tip:focus {
  background: var(--accent);
  border-color: var(--accent);
  color: #0B0E11;
  outline: none;
}

.help-popover {
  position: fixed;
  z-index: 300;
  max-width: 280px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: #0F141A;
  border: 1px solid rgba(255, 176, 0, 0.55);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
}

.section-hint {
  font-size: 11.8px;
  color: var(--ink-dim);
  background: rgba(94, 155, 255, 0.07);
  border: 1px solid rgba(94, 155, 255, 0.24);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  line-height: 1.42;
}

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-item {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.guide-item strong {
  display: block;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 3px;
}

.guide-item p {
  margin: 0;
  font-size: 12.2px;
  color: var(--ink-dim);
  line-height: 1.45;
}

/* --- FASE 4: MERCADO DINÂMICO, DUE DILIGENCE & ANUÊNCIA STMU --- */
.market-op-card {
  background: rgba(11, 14, 17, 0.65);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.market-op-card.tipo-emergencial {
  border-color: rgba(240, 180, 41, 0.55);
  background: rgba(240, 180, 41, 0.06);
}

.market-op-card.tipo-aquisicao {
  border-color: rgba(31, 209, 139, 0.5);
  background: rgba(31, 209, 139, 0.06);
}

.dd-box {
  background: #0D1116;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dd-box.auditada {
  border-color: rgba(31, 209, 139, 0.5);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.check-row:last-child {
  border-bottom: none;
}

.check-icon {
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  flex-shrink: 0;
}




