/* =========================================================
   Athlon Dyno & ECU Simulator - Split 2-Column Screen Layout
   Left Column: Fixed iPhone Athlon App with Internal Scroll
   Right Column: TFT Cockpit, Engine Controls & Dyno/Datalogger
   ========================================================= */

:root {
  --bg-primary: #0a0d14;
  --bg-card: rgba(16, 22, 36, 0.85);
  --border-color: rgba(64, 96, 144, 0.25);
  --border-glow: rgba(0, 210, 255, 0.4);

  --accent-cyan: #00e5ff;
  --accent-amber: #ffaa00;
  --accent-green: #00ff88;
  --accent-red: #ff3366;

  --athlon-blue: #2979ff;
  --athlon-blue-dark: #1565c0;
  --athlon-green: #00e676;

  --text-main: #f0f4fc;
  --text-muted: #8a9bb8;
  --text-bright: #ffffff;

  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Orbitron', 'Rajdhani', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 229, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(255, 170, 0, 0.04) 0%, transparent 40%),
    linear-gradient(180deg, #07090e 0%, #0d121c 100%);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  padding: 12px;
}

/* Header Superior Compacto */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 6px 14px;
  margin-bottom: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  flex-wrap: nowrap;
  gap: 10px;
  position: sticky;
  top: 6px;
  z-index: 1000;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-icon { font-size: 22px; }
.brand-title { font-family: var(--font-display); font-size: 15px; font-weight: 800; color: #fff; white-space: nowrap; }
.brand-subtitle { font-size: 9.5px; color: var(--accent-cyan); font-family: var(--font-mono); white-space: nowrap; }

/* Atalhos Rápidos dos Simuladores Fixos no Topo (Header Central) */
.header-sim-shortcuts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}

.header-sim-shortcuts::-webkit-scrollbar {
  display: none;
}

.header-sim-btn {
  background: #080d16;
  border: 1px solid #1e293b;
  border-radius: 8px !important;
  padding: 4px 6px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  user-select: none;
  min-width: 78px;
  max-width: 110px;
  flex: 1;
  flex-shrink: 0;
}

.header-sim-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  filter: brightness(1.2);
}

.header-sim-btn.active {
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
  filter: brightness(1.25);
}

.header-sim-btn .sim-card-icon {
  font-size: 15px !important;
  margin-bottom: 2px !important;
  line-height: 1;
}

.header-sim-btn .sim-card-title {
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #f8fafc;
  white-space: nowrap !important;
  line-height: 1.1 !important;
}

.header-sim-btn .sim-card-sub {
  font-size: 7.5px !important;
  color: #64748b;
  white-space: nowrap !important;
  margin-top: 1px !important;
  line-height: 1;
}

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.map-badge {
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--border-glow);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
}

/* =========================================================
   LAYOUT PRINCIPAL EM 2 COLUNAS LADO A LADO
   (EMULADOR ATHLON SEMPRE À ESQUERDA, TELAS SEMPRE À DIREITA)
   ========================================================= */
.workspace-layout {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 16px !important;
  width: 100% !important;
}

/* =========================================================
   COLUNA ESQUERDA: IPHONE MOCKUP FIXO COM SCROLL
   ========================================================= */
.left-sidebar-phone {
  width: 380px !important;
  min-width: 380px !important;
  max-width: 380px !important;
  flex-shrink: 0 !important;
  position: sticky !important;
  top: 10px !important;
  height: calc(100vh - 85px) !important;
  min-height: 620px !important;
  max-height: 860px !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 100;
}

.view-screens-container {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: calc(100% - 396px) !important;
}

.iphone-device-frame {
  width: 100%;
  height: 100%;
  background: #f1f5f9;
  color: #1a2332;
  border-radius: 36px;
  border: 8px solid #1e293b;
  box-shadow: 0 20px 50px rgba(0,0,0,0.7), 0 0 0 2px rgba(255,255,255,0.1);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Status Bar & Notch */
.iphone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px 2px 14px;
  background: #ffffff;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  flex-shrink: 0;
}

.iphone-notch {
  width: 100px;
  height: 16px;
  background: #1e293b;
  border-radius: 0 0 10px 10px;
  margin: -6px auto 0 auto;
}

/* Header Athlon iOS */
.athlon-ios-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.athlon-ios-header-btn {
  font-size: 16px;
  font-weight: 800;
  color: #3b82f6;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 32px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.athlon-ios-header-btn:hover {
  background: rgba(59, 130, 246, 0.08);
}

.athlon-ios-title {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
  text-align: center;
}

.athlon-ios-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

/* Drawer Menu Lateral do iPhone */
.athlon-drawer-menu {
  position: absolute;
  top: 36px;
  left: -260px;
  width: 250px;
  bottom: 0;
  background: #ffffff;
  box-shadow: 4px 0 20px rgba(0,0,0,0.25);
  z-index: 100;
  transition: left 0.25s ease;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e2e8f0;
}

.athlon-drawer-menu.open {
  left: 0;
}

.drawer-header {
  padding: 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 800;
  font-size: 13px;
  color: #1e3a8a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-item {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-item:hover, .drawer-item.active {
  background: #e0f2fe;
  color: #0284c7;
  font-weight: 700;
}

/* Scroll Interno do iPhone */
.iphone-screen-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

.iphone-screen-content::-webkit-scrollbar {
  width: 5px;
}
.iphone-screen-content::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 4px;
}

.ios-screen { display: none; }
.ios-screen.active { display: flex; flex-direction: column; flex: 1; }

/* Cards de Configuração Athlon */
.engine-cfg-scroll-container {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.athlon-cfg-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.athlon-cfg-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.athlon-cfg-video-link {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}

.athlon-cfg-row-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.athlon-cfg-row-option:last-child {
  border-bottom: none;
}

.athlon-cfg-row-option.selected {
  color: #0284c7;
  font-weight: 700;
}

.athlon-checkmark {
  color: #0284c7;
  font-weight: 900;
  font-size: 15px;
}

.athlon-round-checkbox {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.athlon-round-checkbox.checked {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
}

.athlon-cfg-field-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 6px;
}

.athlon-cfg-label {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
}

.athlon-cfg-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #60a5fa;
  border-radius: 6px;
  padding: 6px 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  outline: none;
}

.athlon-cfg-action-btn {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* Modal Pop-up de Ajuste Total do Mapa de Injeção */
#screenEngineCfg {
  position: relative;
  min-height: 100%;
}

.athlon-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  animation: athlonModalFade 0.15s ease-out;
}

@keyframes athlonModalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.athlon-modal-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 18px 20px 18px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
  animation: athlonModalPop 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes athlonModalPop {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.athlon-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 14px;
}

.athlon-modal-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.athlon-modal-label {
  font-size: 14px;
  font-weight: 800;
  color: #111827;
}

.athlon-modal-input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1.5px solid #4a80e8;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  outline: none;
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.athlon-modal-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(74, 128, 232, 0.25);
}

.athlon-modal-btn {
  width: 100%;
  background: #4a80e8;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 11px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.08s;
  box-shadow: 0 2px 8px rgba(74, 128, 232, 0.3);
}

.athlon-modal-btn:hover {
  background: #3b74e0;
}

.athlon-modal-btn:active {
  transform: scale(0.98);
}

.athlon-modal-subtitle {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
  margin-top: 18px;
  margin-bottom: 8px;
}

.athlon-modal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  font-size: 13.5px;
}

.athlon-modal-table th {
  text-align: left;
  font-weight: 800;
  color: #111827;
  padding: 4px 6px 6px 6px;
}

.athlon-modal-table td {
  padding: 6px 6px;
  color: #1e293b;
  font-weight: 500;
}

.athlon-fuel-row {
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.12s;
}

.athlon-fuel-row:hover {
  background: #f1f5f9;
}

.athlon-fuel-row.selected-fuel {
  background: #e0edff;
  font-weight: 700;
}

/* Opções de Corte e Two Step */
.athlon-rev-cut-option,
.athlon-two-step-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.athlon-rev-cut-option:last-of-type,
.athlon-two-step-option:last-of-type {
  border-bottom: none;
}

.athlon-rev-cut-option.selected,
.athlon-two-step-option.selected {
  color: #0284c7;
  font-weight: 700;
}

/* Slider de Corte Athlon com botões - e + */
.athlon-slider-btn {
  width: 32px;
  height: 32px;
  background: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
  user-select: none;
  flex-shrink: 0;
}

.athlon-slider-btn:active {
  transform: scale(0.95);
  background: #2563eb;
}

.athlon-slider-input {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: #bfdbfe;
  border-radius: 4px;
  outline: none;
}

.athlon-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Pílulas de Seleção de Perfil do Two Step */
.two-step-profile-pills {
  display: flex;
  gap: 6px;
  margin: 6px 0 10px 0;
}

.profile-pill-btn {
  flex: 1;
  background: #ffffff;
  border: 1.5px solid #3b82f6;
  color: #3b82f6;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  padding: 6px 0;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.profile-pill-btn.active {
  background: #3b82f6;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(59, 130, 246, 0.35);
}

/* =========================================================
   CARDS DO MENU "ACERTO" (IDÊNTICO AOS PRINTS DO ATHLON)
   ========================================================= */
.acerto-scroll-container {
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acerto-menu-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  min-height: 95px;
}

.acerto-menu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  border-color: #93c5fd;
}

.acerto-menu-card:active {
  transform: translateY(0);
}

.acerto-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #000000;
  margin-bottom: 8px;
}

.acerto-card-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.acerto-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #0f172a;
}

.acerto-card-icon svg {
  width: 100%;
  height: 100%;
}

.acerto-card-subtitle {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
}

.acerto-card-centered {
  min-height: 75px;
  padding: 22px 16px;
}

.acerto-card-centered .acerto-card-title {
  margin-bottom: 0;
  font-size: 16.5px;
}

/* =========================================================
   TELA: AJUSTE RÁPIDO (SIMULADOR DE CARBURADOR)
   ========================================================= */
.quick-tune-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}

.quick-tune-card-header {
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 10px;
}

.quick-tune-main-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #000000;
}

.quick-tune-idle-rpm-text {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2px;
}

.quick-tune-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  position: relative;
}

.quick-tune-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.quick-tune-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 6px;
  text-align: center;
}

.quick-tune-col:not(:last-child) {
  border-right: 1px solid #f1f5f9;
}

.quick-col-title {
  font-size: 12px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.3px;
}

.quick-col-subtitle {
  font-size: 10px;
  font-weight: 600;
  color: #475569;
  line-height: 1.25;
  margin: 2px 0 8px 0;
  min-height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-step-btn {
  width: 100%;
  max-width: 58px;
  height: 38px;
  background: #5b9bf8;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(91, 155, 248, 0.35);
  transition: all 0.1s ease;
  user-select: none;
}

.quick-step-btn:active {
  transform: scale(0.94);
  background: #3b82f6;
}

.quick-val-box {
  width: 100%;
  max-width: 58px;
  height: 36px;
  background: #ffffff;
  border: 1.5px solid #60a5fa;
  border-radius: 8px;
  margin: 6px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.quick-col-bottom-divider {
  width: 100%;
  height: 1px;
  background: #f1f5f9;
  margin: 10px 0 8px 0;
}

.quick-col-rpm-label {
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.quick-rpm-input {
  width: 100%;
  max-width: 58px;
  height: 34px;
  background: #ffffff;
  border: 1.5px solid #60a5fa;
  border-radius: 8px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
  outline: none;
}

.quick-action-full-btn {
  width: 100%;
  background: #5b9bf8;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(91, 155, 248, 0.35);
  margin-top: 4px;
}

.quick-action-full-btn:active {
  background: #3b82f6;
  transform: scale(0.98);
}

/* =========================================================
   TELA: INJEÇÃO COM CARGA (100% TPS) - CURVA 2D ATHLON
   ========================================================= */
.wot-curve-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
}

.wot-curve-legend-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  font-size: 11px;
  font-weight: 700;
}

.wot-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #334155;
}

.wot-legend-color-box {
  width: 28px;
  height: 12px;
  border-radius: 3px;
}

.wot-log-btn {
  background: #4299e1;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 3px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.wot-canvas-container,
.wot-chart-container {
  width: 100%;
  height: 210px;
  min-height: 210px;
  max-height: 210px;
  position: relative;
  background: #ffffff;
  overflow: hidden;
}

#injWotCurveCanvas,
#injIdleCurveCanvas,
#injAngleCurveCanvas,
#ignWotCurveCanvas,
#ignIdleCurveCanvas,
#ignTransCurveCanvas,
#compInjPctTempCanvas,
#compInjMsTempCanvas,
#compIgnTempCanvas,
#compInjAirTempCanvas,
#compIgnAirTempCanvas,
#compInjAltitudeCanvas,
#compIgnAltitudeCanvas,
#accelTempCanvas,
#crankInjTempCanvas,
#crankTpsCanvas,
#primeInjCanvas,
#iacvTempCanvas,
#iacvBaroCanvas,
#idleInjTempCanvas,
#injDeadtimeCurveCanvas {
  width: 100%;
  height: 210px;
  min-height: 210px;
  max-height: 210px;
  display: block;
  background: #ffffff;
  box-sizing: border-box;
}

.wot-keypad-grid {
  padding: 12px 14px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.9fr 0.9fr;
  gap: 10px;
  align-items: center;
}

.wot-key-btn-tall {
  height: 115px;
  background: #5b9bf8;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 26px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(91, 155, 248, 0.35);
  user-select: none;
  transition: all 0.1s ease;
}

.wot-key-btn-tall:active {
  background: #3b82f6;
  transform: scale(0.96);
}

.wot-key-col-dual {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wot-key-btn-square {
  height: 53px;
  background: #5b9bf8;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(91, 155, 248, 0.35);
  user-select: none;
  transition: all 0.1s ease;
  line-height: 1.15;
}

.wot-key-btn-square.symbol {
  font-size: 24px;
  font-weight: 800;
}

.wot-key-btn-square:active {
  background: #3b82f6;
  transform: scale(0.96);
}

/* =========================================================
   TELA: TRANSIÇÕES DE INJEÇÃO (MATRIZ 2D TPS X RPM)
   ========================================================= */
.matrix-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
}

.matrix-top-tabs-bar {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  gap: 8px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.matrix-tabs-container {
  flex: 1;
  display: flex;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 2px;
}

.matrix-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  border-radius: 6px;
  cursor: pointer;
}

.matrix-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.matrix-table-scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 8px;
  background: #ffffff;
}

.athlon-matrix-grid {
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 11px;
  text-align: center;
  user-select: none;
}

.athlon-matrix-grid th {
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  border: 1px solid #64748b;
  padding: 3px 6px;
  min-width: 44px;
}

.athlon-matrix-grid td {
  border: 1px solid #475569;
  padding: 3px 4px;
  font-weight: 700;
  color: #000000;
  cursor: pointer;
  transition: all 0.1s ease;
  min-width: 44px;
}

.athlon-matrix-grid td.tps-label-col {
  background: #ffffff;
  color: #000000;
  font-weight: 800;
  border: 1px solid #64748b;
  min-width: 38px;
}

.athlon-matrix-grid td.idle-row {
  background: #ffffff;
  color: #000000;
}

.athlon-matrix-grid td.selected-col {
  border-left: 2px solid #ef4444 !important;
  border-right: 2px solid #ef4444 !important;
}

.athlon-matrix-grid th.selected-col {
  border-left: 2px solid #ef4444 !important;
  border-right: 2px solid #ef4444 !important;
  border-top: 2px solid #ef4444 !important;
}

.athlon-matrix-grid tr:last-child td.selected-col {
  border-bottom: 2px solid #ef4444 !important;
}

.athlon-matrix-grid td.selected-cell {
  background: #fef08a !important;
  color: #000000 !important;
  font-weight: 900 !important;
  box-shadow: inset 0 0 0 2px #ef4444;
}

.matrix-btn-advanced {
  margin: 6px 14px 10px 14px;
  background: #5b9bf8;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(91, 155, 248, 0.35);
  align-self: flex-start;
}

.matrix-controls-panel {
  padding: 8px 14px 14px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #ffffff;
}

.matrix-dpad-grid {
  display: grid;
  grid-template-columns: 54px 54px 54px;
  grid-template-rows: 54px 54px 54px;
  gap: 6px;
}

.matrix-btn-round {
  width: 54px;
  height: 54px;
  background: #5b9bf8;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(91, 155, 248, 0.35);
  user-select: none;
  transition: all 0.1s ease;
  line-height: 1.15;
  text-align: center;
}

.matrix-btn-round.step-btn {
  font-size: 12px;
  font-weight: 800;
}

.matrix-btn-round:active {
  background: #3b82f6;
  transform: scale(0.95);
}

.matrix-actions-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.matrix-action-btn {
  width: 68px;
  height: 48px;
  background: #5b9bf8;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 24px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(91, 155, 248, 0.35);
  user-select: none;
  transition: all 0.1s ease;
}

.matrix-action-btn.all-btn {
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.matrix-action-btn:active {
  background: #3b82f6;
  transform: scale(0.95);
}

/* =========================================================
   COLUNA DIREITA: COCKPIT TFT + CONTROLES + ABAS
   ========================================================= */
.right-main-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Grid Cockpit + Controles */
.cockpit-controls-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
}

@media (max-width: 1400px) {
  .cockpit-controls-grid { grid-template-columns: 1fr; }
}

/* TFT Esportivo */
.tft-dashboard {
  background: radial-gradient(circle at 50% 30%, #121929 0%, #0a0e17 100%);
  border: 2px solid rgba(0, 229, 255, 0.3);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.12), inset 0 0 30px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  position: relative;
}

.tft-main-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  min-height: 140px;
}

.speed-gear-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.speed-display {
  font-family: var(--font-display);
  font-size: 70px;
  font-weight: 900;
  line-height: 1;
  color: var(--text-bright);
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
}

.speed-unit {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-cyan);
  letter-spacing: 2px;
}

.gear-indicator {
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--accent-amber);
  border-radius: 10px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--accent-amber);
}

.gear-indicator.neutral {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.tach-bar-container {
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 6px;
  border: 1px solid var(--border-color);
}

.tach-bar-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.rpm-val-live { font-size: 15px; font-weight: 800; color: #fff; }

.tach-progress-track {
  height: 14px;
  background: #111722;
  border-radius: 5px;
  overflow: hidden;
}

.tach-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-green) 60%, var(--accent-amber) 80%, var(--accent-red) 100%);
  transition: width 0.05s linear;
}

/* Computador de Bordo do Painel TFT (Consumo Instantâneo, Médio e Trip) */
.tft-trip-computer {
  display: grid;
  grid-template-columns: 1.15fr 1.05fr 0.9fr 0.9fr;
  gap: 6px;
  margin-top: 8px;
  background: rgba(6, 10, 18, 0.75);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 8px;
  padding: 6px 10px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.tft-trip-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 42px;
}

.tft-trip-label {
  font-size: 8px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.tft-trip-val {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-cyan);
  white-space: nowrap;
}

.tft-trip-val.highlight {
  color: var(--accent-green);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

.tft-trip-val .tft-unit {
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-left: 2px;
}

.tft-gauges-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.gauge-box {
  background: rgba(14, 20, 32, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px;
  text-align: center;
}

.gauge-label {
  font-size: 8px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
}

.gauge-value {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-bright);
}

.gauge-value.alert { color: var(--accent-red); }
.gauge-value.good { color: var(--accent-green); }

/* Bancada de Controles */
.control-station {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-cyan);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 4px;
}

.controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.btn {
  background: rgba(26, 36, 58, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  user-select: none;
}

.btn:hover {
  background: rgba(40, 56, 88, 0.95);
  border-color: var(--accent-cyan);
}

.btn-start {
  background: linear-gradient(135deg, #008855, #00cc66);
  border-color: #00ff88;
  color: #000;
  font-weight: 800;
}

.btn-kill {
  background: linear-gradient(135deg, #880022, #cc1133);
  border-color: #ff3366;
}

.btn-primary {
  background: linear-gradient(135deg, #0077aa, #00b4d8);
  border-color: var(--accent-cyan);
}

.btn-active {
  background: var(--accent-amber);
  color: #000;
  border-color: var(--accent-amber);
  font-weight: 800;
}

.control-group {
  flex: 1;
  min-width: 110px;
  background: rgba(12, 16, 26, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 8px;
}

.control-group-header {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 3px;
}

.slider-with-buttons {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
}

.slider-step-btn {
  background: rgba(30, 42, 68, 0.9);
  border: 1px solid var(--border-color);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.slider-input {
  flex: 1;
  -webkit-appearance: none;
  height: 4px;
  background: #192338;
  border-radius: 2px;
  outline: none;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
}

.diag-log-box {
  background: #060910;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  height: 80px;
  overflow-y: auto;
  color: #a0b4d0;
}

.diag-log-entry { margin-bottom: 2px; }
.diag-log-entry.warn { color: var(--accent-amber); }
.diag-log-entry.error { color: var(--accent-red); }
.diag-log-entry.success { color: var(--accent-green); }

/* Abas */
.tabs-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px;
  backdrop-filter: blur(12px);
}

.tabs-nav {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 5px;
  cursor: pointer;
}

.tab-btn.active {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.chart-canvas {
  width: 100%;
  height: 230px;
  background: #080b12;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  display: block;
}

.dyno-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.dyno-stat-card {
  background: rgba(12, 18, 30, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px;
  text-align: center;
}

.dyno-stat-val {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-amber);
}

/* Telas do iPhone (Matriz, LEDs e Teclado) */
.dash-metrics-list {
  background: #ffffff;
  border-radius: 10px;
  padding: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  color: #1e3a8a;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  border: 1px solid #e2e8f0;
}

.matrix-table {
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 9px;
  width: 100%;
}

.matrix-table th {
  background: #f1f5f9;
  color: #0284c7;
  padding: 3px 4px;
  border: 1px solid #cbd5e1;
  font-weight: 800;
  position: sticky;
  top: 0;
  z-index: 2;
}

.matrix-table td {
  padding: 3px 4px;
  text-align: center;
  border: 1px solid #cbd5e1;
  font-weight: 700;
  cursor: pointer;
}

.matrix-cell-heat-0 { background: #e8f5e9; color: #1b5e20; }
.matrix-cell-heat-1 { background: #c8e6c9; color: #1b5e20; }
.matrix-cell-heat-2 { background: #a5d6a7; color: #1b5e20; }
.matrix-cell-heat-3 { background: #81c784; color: #1b5e20; }
.matrix-cell-heat-4 { background: #66bb6a; color: #0d3b10; }
.matrix-cell-heat-5 { background: #4caf50; color: #ffffff; }

.matrix-table td.selected-cell {
  outline: 3px solid #ef4444;
  background: #ffffff !important;
  color: #ef4444 !important;
  font-weight: 900;
  z-index: 10;
  position: relative;
}

.ios-keypad-grid {
  padding: 8px;
  background: #eef4f8;
  display: grid;
  grid-template-columns: repeat(4, 1fr) 50px;
  gap: 5px;
}

.ios-key-btn {
  background: linear-gradient(180deg, #42a5f5 0%, #1e88e5 100%);
  border: none;
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 12px;
  height: 50px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(30, 136, 229, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.ios-action-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ios-action-btn {
  background: linear-gradient(180deg, #42a5f5 0%, #1976d2 100%);
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  height: 23px;
  border-radius: 5px;
  box-shadow: 0 2px 3px rgba(25, 118, 210, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* TELA DE MENU: COMPENSADORES POR TEMPERATURA */
.comp-menu-screen {
  padding: 16px 12px 28px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f8fafc;
  min-height: 100%;
}

.comp-simple-card {
  background: #f1f5f9;
  border-radius: 14px;
  padding: 26px 16px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.comp-simple-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.comp-complex-card {
  background: #f1f5f9;
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comp-complex-title {
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.comp-tps-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comp-tps-label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.comp-tps-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #60a5fa;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  outline: none;
}

.comp-inj-btn {
  width: 100%;
  background: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
  transition: background 0.15s ease;
}

.comp-inj-btn:hover {
  background: #2563eb;
}

/* ==========================================================================
   PAINEL DE GESTÃO INTERNA & SUPORTE TÉCNICO (MONGODB BACKOFFICE)
   ========================================================================== */

.mongo-mgmt-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 15, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 16px;
  animation: fadeInModal 0.2s ease-out;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.mongo-mgmt-card {
  width: 95vw;
  max-width: 1120px;
  max-height: 90vh;
  overflow-y: auto;
  background: #0b1120;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), 0 0 30px rgba(16, 185, 129, 0.18);
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text-bright);
}

.mongo-mgmt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 16px;
}

.mongo-mgmt-title {
  font-size: 19px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.3px;
}

.mongo-mgmt-subtitle {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.mongo-server-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #34d399;
}

.mongo-server-badge.offline {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #f87171;
}

.mongo-server-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 1.5s infinite;
}

.mongo-server-badge.offline .pulse-dot {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: none;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.mongo-mgmt-close {
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
  font-size: 16px;
  font-weight: 700;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.mongo-mgmt-close:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* Barra de Pesquisa */
.mongo-search-box {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 16px;
}

.mongo-search-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.mongo-input-group {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mongo-input-group label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.mongo-input {
  background: #1e293b;
  border: 1px solid #334155;
  color: #f8fafc;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font-mono);
  outline: none;
  transition: border-color 0.2s;
}

.mongo-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.mongo-search-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mongo-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #1e293b;
}

.mongo-chip {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid #334155;
  color: #93c5fd;
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.15s;
}

.mongo-chip:hover {
  background: #1e3a8a;
  border-color: #60a5fa;
  color: #ffffff;
}

/* Card do Cliente */
.mongo-customer-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.7));
  border: 1px solid #0284c7;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.customer-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.customer-stats-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.customer-stat-pill {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}

.customer-stat-pill .stat-label {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
}

.customer-stat-pill .stat-val {
  font-size: 16px;
  font-weight: 800;
  color: #38bdf8;
  font-family: var(--font-mono);
}

.customer-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
}

.customer-meta-row .meta-label {
  color: #94a3b8;
  font-weight: 700;
  margin-right: 6px;
}

.customer-meta-row .meta-val {
  color: #f8fafc;
  font-family: var(--font-mono);
}

/* Lista de Mapas */
.mongo-maps-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mongo-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-cyan);
  border-bottom: 1px solid #1e293b;
  padding-bottom: 6px;
}

.count-badge {
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid #0284c7;
  color: #38bdf8;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-family: var(--font-mono);
}

.mongo-maps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.mongo-map-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  transition: all 0.2s;
}

.mongo-map-card:hover {
  background: #141f36;
  border-color: #10b981;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.12);
}

.map-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 260px;
}

.map-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.map-filename {
  font-size: 14px;
  font-weight: 800;
  color: #f8fafc;
  font-family: var(--font-mono);
}

.map-badge-fuel {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid #10b981;
}

.map-badge-type {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid #3b82f6;
}

.map-card-notes {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.35;
  margin-top: 2px;
}

.map-card-meta {
  font-size: 11px;
  color: #64748b;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--font-mono);
}

.map-card-health-pills {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

.health-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.health-pill.ok {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.health-pill.warn {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.btn-load-sim {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  border: 1px solid #34d399;
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-load-sim:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.mongo-empty-state {
  padding: 32px 16px;
  text-align: center;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  border: 1px dashed #334155;
  border-radius: 10px;
}

.mongo-errors-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.mongo-errors-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}

.error-item-card {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  color: #fca5a5;
  font-family: var(--font-mono);
}

/* =========================================================
   TOP NAVIGATION BAR (GUIAS DO APP WEB EM 2 LINHAS)
   ========================================================= */
.main-nav-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  background: rgba(10, 16, 29, 0.95);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  overflow-x: hidden;
}

.main-nav-bar .nav-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.main-nav-bar .nav-row .main-nav-pill,
.main-nav-pill {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  background: #0d1527;
  border: 1px solid #1e293b;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  user-select: none;
  text-align: center;
}

.main-nav-pill:hover {
  background: #131d33;
  color: #fff;
  border-color: #334155;
  transform: translateY(-1px);
}

.main-nav-pill.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.3) 0%, rgba(14, 165, 233, 0.15) 100%);
  color: #38bdf8;
  border-color: #0284c7;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.35);
}

/* =========================================================
   SLIDING DRAWER MENU (IDÊNTICO AO DRAWERMENU.JS MOBILE)
   ========================================================= */
.app-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.app-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.app-drawer-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 85%;
  max-width: 360px;
  background: #0a101d;
  border-right: 1px solid #1e293b;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.7);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.app-drawer-menu.active {
  transform: translateX(0);
}

.app-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #1e293b;
}

.app-drawer-title {
  font-size: 14px;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: 1px;
}

.app-drawer-sub {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
}

.app-drawer-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 17px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.app-drawer-close-btn:hover {
  background: #334155;
}

.app-drawer-status-banner {
  background: #080d16;
  padding: 12px;
  margin: 12px 14px 6px 14px;
  border-radius: 8px;
  border: 1px solid #1e293b;
}

.app-drawer-bike-title {
  font-size: 12px;
  font-weight: 800;
  color: #f8fafc;
}

.app-drawer-map-status {
  font-size: 11px;
  color: #10b981;
  font-weight: 600;
  margin-top: 2px;
}

.app-drawer-hint {
  font-size: 9px;
  color: #64748b;
  margin-top: 4px;
  line-height: 13px;
}

.app-drawer-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px 20px 12px;
}

.app-drawer-heading {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  margin: 10px 0 8px 4px;
  letter-spacing: 0.5px;
}

.app-drawer-item {
  display: flex;
  align-items: center;
  background: #0d1527;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid #1e293b;
  border-left-width: 4px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.app-drawer-item:hover {
  background: #131d33;
  border-color: #334155;
  transform: translateX(3px);
}

.app-drawer-item.active {
  background: rgba(2, 132, 199, 0.15);
  border-color: #0284c7;
}

.app-drawer-item-icon {
  font-size: 22px;
  margin-right: 12px;
  line-height: 1;
}

.app-drawer-item-body {
  flex: 1;
}

.app-drawer-item-title {
  font-size: 12px;
  font-weight: 800;
  color: #f8fafc;
}

.app-drawer-item-desc {
  font-size: 9.5px;
  color: #94a3b8;
  margin-top: 2px;
  line-height: 13px;
}

.app-drawer-item-chevron {
  font-size: 18px;
  color: #64748b;
  font-weight: bold;
  margin-left: 6px;
}

.app-drawer-footer {
  padding: 12px;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 10px;
  color: #475569;
  font-weight: bold;
}

/* =========================================================
   VIEW SCREENS CONTAINER
   ========================================================= */
.view-screens-container {
  width: 100%;
}

.view-screen {
  animation: fadeInView 0.22s ease-out;
}

.view-screen:not(.active) {
  display: none !important;
}

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

/* =========================================================
   VIRTUAL GARAGE (VAGAS 1, 2, 3)
   ========================================================= */
.garage-container {
  background: #0a101d;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.garage-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.garage-title-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.garage-title {
  font-size: 13px;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.garage-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #34d399;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
}

.garage-slots-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.garage-slot-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0d1527;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.garage-slot-pill:hover {
  background: #131d33;
  border-color: #334155;
  transform: translateY(-1px);
}

.garage-slot-pill.active {
  background: rgba(2, 132, 199, 0.15);
  border-color: #0284c7;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.3);
}

.garage-slot-empty {
  border-style: dashed;
  border-color: #334155;
  opacity: 0.7;
}
.garage-slot-empty:hover {
  opacity: 1;
  border-color: #38bdf8;
}

.garage-slot-icon {
  font-size: 20px;
}

.garage-slot-name {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.garage-slot-sub {
  font-size: 10px;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.garage-slot-badge-active {
  background: #10b981;
  color: #000;
  font-size: 10px;
  font-weight: 900;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

/* =========================================================
   SIMULATOR SECTION (GRID DE CARDS NA HOME)
   ========================================================= */
.sim-section-card {
  background: #0a101d;
  border-radius: 14px;
  border: 1px solid #388bfd;
  padding: 16px;
  margin-bottom: 16px;
}

.sim-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}

.sim-section-title {
  font-size: 13px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.sim-section-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 16px;
  margin-bottom: 12px;
}

.sim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.sim-card-btn {
  background: #080d16;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.sim-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.sim-card-icon {
  font-size: 26px;
  margin-bottom: 6px;
}

.sim-card-title {
  font-size: 12px;
  font-weight: 800;
  color: #f8fafc;
}

.sim-card-sub {
  font-size: 9px;
  color: #64748b;
  margin-top: 2px;
}

/* =========================================================
   HIGHWAY SIMULATOR 4 SUB-TABS (CLIMA, RELEVO, CARGA/PNEUS, ROTA)
   ========================================================= */
.highway-sub-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
}

.highway-sub-tab-btn {
  padding: 6px 14px;
  background: #0d1527;
  border: 1px solid #1e293b;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.highway-sub-tab-btn:hover {
  color: #fff;
  background: #131d33;
}

.highway-sub-tab-btn.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #38bdf8;
  font-weight: 800;
}

.highway-sub-pane:not(.active) {
  display: none !important;
}

/* Presets & Chips */
.preset-chip-btn {
  padding: 4px 8px;
  background: #0f172a;
  border: 1px solid #334155;
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.preset-chip-btn:hover, .preset-chip-btn.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #fff;
}

/* Setup da Moto - Mobile Faithful Styling */
.bike-custom-container {
  background: #0a0f1d;
  border: 1px solid #1e293b;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}

.bike-custom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #101827;
  border-bottom: 1px solid #1e293b;
  flex-wrap: wrap;
  gap: 12px;
}

.bike-custom-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bike-custom-icon {
  font-size: 26px;
}

.bike-custom-title {
  font-size: 15px;
  font-weight: 900;
  color: #f97316;
  letter-spacing: 1px;
}

.bike-custom-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.bike-custom-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Summary Card */
.bike-custom-summary-card {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid;
  transition: all 0.2s ease;
}

.bike-custom-summary-stock {
  background: #0a192f;
  border-color: #1e3a8a;
}

.bike-custom-summary-mod {
  background: #261204;
  border-color: #c2410c;
}

.bike-custom-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.bike-custom-summary-title {
  font-size: 12px;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: 0.5px;
}

.bike-custom-summary-badge {
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
}

.bike-custom-summary-badge-stock {
  background: #1e3a8a;
  color: #60a5fa;
}

.bike-custom-summary-badge-mod {
  background: #c2410c;
  color: #fdba74;
}

.bike-custom-summary-text {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Section Card */
.bike-custom-section-card {
  background: #0f172a;
  border-radius: 10px;
  border: 1px solid #1e293b;
  padding: 14px;
  transition: all 0.2s ease;
}

.bike-custom-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.bike-custom-section-title {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.5px;
}

/* Toggle Row (Original / Preparado) */
.bike-custom-toggle-row {
  display: flex;
  background: #1e293b;
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.bike-custom-toggle-btn {
  padding: 5px 14px;
  border-radius: 5px;
  background: transparent;
  border: none;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s;
}

.bike-custom-toggle-btn:hover {
  color: #ffffff;
}

.bike-custom-toggle-btn.active-stock {
  background: #0284c7;
  color: #ffffff;
}

.bike-custom-toggle-btn.active-mod {
  background: #ea580c;
  color: #ffffff;
}

/* Sub-section box */
.bike-custom-sub-box {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bike-custom-sub-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 4px;
}

.bike-custom-option-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.bike-custom-option-label {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 600;
}

.bike-custom-option-help {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
  line-height: 1.4;
}

/* Yes / No buttons */
.bike-custom-yesno-row {
  display: flex;
  background: #1e293b;
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.bike-custom-yesno-btn {
  padding: 4px 12px;
  border-radius: 4px;
  background: transparent;
  border: none;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s;
}

.bike-custom-yesno-btn.active {
  background: #f97316;
  color: #ffffff;
}

/* Param Grid & Counter Box */
.bike-custom-param-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.bike-custom-param-box {
  background: #162033;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #23324d;
}

.bike-custom-param-title {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}

.bike-custom-counter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0;
}

.bike-custom-counter-btn {
  background: #27354f;
  color: #f8fafc;
  font-size: 11px;
  font-weight: bold;
  border: 1px solid #3b4d6b;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.bike-custom-counter-btn:hover {
  background: #3b4d6b;
  border-color: #60a5fa;
}

.bike-custom-param-value {
  font-size: 14px;
  font-weight: 900;
  color: #f97316;
  font-family: var(--font-mono, monospace);
}

/* Preset row */
.bike-custom-preset-row {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.bike-custom-preset-chip {
  flex: 1;
  min-width: 44px;
  background: #0a0f1d;
  padding: 4px 6px;
  border-radius: 4px;
  text-align: center;
  border: 1px solid #1e293b;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.bike-custom-preset-chip:hover {
  border-color: #f97316;
  color: #fff;
}

.bike-custom-preset-chip.active {
  background: #f97316;
  border-color: #f97316;
  color: #0a0f1d;
  font-weight: 900;
}

/* Type selector cards (Exhaust) */
.bike-custom-type-selector-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bike-custom-type-option-btn {
  background: #162033;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #23324d;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}

.bike-custom-type-option-btn:hover {
  border-color: #ea580c;
}

.bike-custom-type-option-btn.active {
  border-color: #ea580c;
  background: #2b1509;
}

.bike-custom-type-icon {
  font-size: 22px;
  margin-bottom: 4px;
}

.bike-custom-type-title {
  font-size: 12px;
  font-weight: 800;
  color: #cbd5e1;
}

.bike-custom-type-option-btn.active .bike-custom-type-title {
  color: #f97316;
}

.bike-custom-type-desc {
  font-size: 10px;
  color: #64748b;
  margin-top: 3px;
}

/* Intake Option Cards */
.bike-custom-intake-card {
  background: #162033;
  border-radius: 8px;
  border: 1px solid #23324d;
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.bike-custom-intake-card:hover {
  border-color: #ea580c;
}

.bike-custom-intake-card.active {
  border-color: #ea580c;
  background: #1f160e;
}

.bike-custom-intake-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bike-custom-intake-title {
  font-size: 12px;
  font-weight: 800;
  color: #cbd5e1;
}

.bike-custom-intake-card.active .bike-custom-intake-title {
  color: #f97316;
}

.bike-custom-intake-desc {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 3px;
  line-height: 1.4;
}

.bike-custom-radio-circle {
  font-size: 14px;
  color: #64748b;
  padding: 0 4px;
}

.bike-custom-intake-card.active .bike-custom-radio-circle {
  color: #ea580c;
}

.bike-custom-snorkel-sub-box {
  margin-top: 10px;
  padding: 10px;
  border-top: 1px solid #2b2118;
  background: #17110c;
  border-radius: 6px;
}

.bike-custom-snorkel-sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.bike-custom-snorkel-sub-title {
  font-size: 11px;
  font-weight: 800;
  color: #fdba74;
}

.bike-custom-snorkel-sub-desc {
  font-size: 10px;
  color: #cbd5e1;
  margin-top: 3px;
  line-height: 1.4;
}

/* Gearing Table */
.bike-custom-gearing-table-container {
  margin-top: 12px;
  background: #070b14;
  border-radius: 8px;
  border: 1px solid #1e293b;
  overflow: hidden;
}

.bike-custom-gearing-table-title {
  font-size: 11px;
  font-weight: 900;
  color: #f97316;
  padding: 10px 14px;
  background: #0d1527;
  border-bottom: 1px solid #1e293b;
  letter-spacing: 0.5px;
}

.bike-custom-gearing-header-row {
  display: flex;
  padding: 8px 14px;
  background: #111c33;
  border-bottom: 1px solid #1e293b;
}

.bike-custom-gearing-th {
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
}

.bike-custom-gearing-row {
  display: flex;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid #162238;
}

.bike-custom-gearing-row:last-child {
  border-bottom: none;
}

.bike-custom-gearing-td {
  font-size: 11px;
  color: #e2e8f0;
  font-weight: 600;
}

.bike-custom-gearing-td-val {
  font-size: 11px;
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
}

.bike-custom-gearing-td-val-custom {
  font-size: 11px;
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
  font-weight: 900;
}

.bike-custom-gearing-td-diff {
  font-size: 11px;
  color: #f8fafc;
  font-family: var(--font-mono, monospace);
  font-weight: bold;
}

.bike-custom-gearing-metric-box {
  margin-top: 10px;
  background: #0a101f;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #1e293b;
}

.bike-custom-gearing-metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bike-custom-gearing-metric-title {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
}

.bike-custom-gearing-metric-val {
  font-size: 13px;
  font-weight: 900;
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
}

.bike-custom-gearing-comparison {
  font-size: 11px;
  color: #cbd5e1;
  margin-top: 6px;
  line-height: 1.4;
}

/* Sonda Card (Athlon Official Replica) */
.bike-custom-athlon-sonda-card {
  background: #0f172a;
  border-radius: 12px;
  border: 1px solid #1e293b;
  overflow: hidden;
  margin-top: 10px;
}

.bike-custom-athlon-card-header {
  padding: 12px 16px;
  background: #131d33;
  border-bottom: 1px solid #1e293b;
}

.bike-custom-athlon-card-title {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.5px;
}

.bike-custom-sonda-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #1a2436;
  cursor: pointer;
  transition: all 0.15s;
}

.bike-custom-sonda-row:last-child {
  border-bottom: none;
}

.bike-custom-sonda-row:hover {
  background: rgba(2, 132, 199, 0.04);
}

.bike-custom-sonda-row.active {
  background: rgba(2, 132, 199, 0.08);
}

.bike-custom-sonda-text-col {
  flex: 1;
  padding-right: 10px;
}

.bike-custom-sonda-label {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
}

.bike-custom-sonda-row.active .bike-custom-sonda-label {
  color: #0284c7;
  font-weight: 800;
}

.bike-custom-sonda-desc {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 3px;
  line-height: 1.4;
}

.bike-custom-sonda-checkmark {
  font-size: 18px;
  font-weight: 900;
  color: #0284c7;
}

.bike-custom-sonda-impact-box {
  margin-top: 10px;
  background: #0a101f;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #1e293b;
}

.bike-custom-sonda-impact-title {
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.bike-custom-sonda-impact-text {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Footer Actions */
.bike-custom-footer {
  display: flex;
  padding: 14px;
  background: #101827;
  border-top: 1px solid #1e293b;
  gap: 12px;
}

.bike-custom-reset-btn {
  flex: 1;
  background: #1e293b;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.bike-custom-reset-btn:hover {
  background: #334155;
  color: #fff;
}

.bike-custom-save-btn {
  flex: 2;
  background: #ea580c;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
  border: 1px solid #f97316;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.bike-custom-save-btn:hover {
  background: #f97316;
}



