/* ==========================================================================
   LVL AI HUD & UNIFIED CONVERSATIONAL INTERFACE — STYLESHEET
   Modo Apple Intelligence • 100% Centralizado • Proporções Áureas
   Design System Apple Off-White • Luís Visual Lab
   ========================================================================== */

/* ===== HERO CENTRALIZADO EXCLUSIVO LVL AI (100% VIEWPORT) ===== */
.hero-section.hero-jarvis-pure {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px 20px;
  box-sizing: border-box;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: radial-gradient(circle at 50% 32%, rgba(0, 113, 227, 0.08) 0%, transparent 70%);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.hero-section.hero-jarvis-pure .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 660px;
  min-height: 100%;
  height: auto;
  margin: 0 auto;
  gap: 8px;
}

/* Coluna Central do HUD Circular (Tamanho Nobre, Imponente e Perfeitamente Proporcional) */
.hero-hud-centered {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 440px;
  height: clamp(230px, 34vh, 340px);
  min-height: 210px;
  margin: 0 auto 4px auto;
  flex-shrink: 0;
  overflow: visible;
}

.hero-hud-centered #jarvis-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

/* Glow Difuso atrás do HUD */
.hero-hud-glow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.hero-hud-glow::after {
  content: '';
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.18), rgba(94, 92, 230, 0.08), transparent 70%);
  filter: blur(55px);
}

/* ===== CONDUIT ÓPTICO HOLOGRÁFICO (CONEXÃO HUD ➔ CARD) ===== */
.lvl-holo-conduit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 55px; /* Linha de conexão longa e fixa */
  margin-top: -15px; /* Entra levemente por trás da orbe */
  margin-bottom: 5px;
  position: relative;
  z-index: 5;
  pointer-events: none;
}

.lvl-holo-line {
  width: 2px;
  flex: 1; /* Estica para preencher toda a altura disponível da conduit */
  background: linear-gradient(180deg, rgba(0, 199, 235, 0.9) 0%, rgba(0, 113, 227, 0.4) 100%);
  box-shadow: 0 0 12px rgba(0, 199, 235, 0.8), 0 0 4px rgba(255, 255, 255, 0.4);
  border-radius: 1px;
  animation: lvlConduitPulse 2.4s ease-in-out infinite;
}

.lvl-holo-node {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00c7eb;
  box-shadow: 0 0 8px #00c7eb, 0 0 14px rgba(0, 199, 235, 0.6);
  margin-top: -2px;
  animation: lvlNodeGlow 2.4s ease-in-out infinite;
}

@keyframes lvlConduitPulse {
  0%, 100% { opacity: 0.45; transform: scaleY(0.9); }
  50% { opacity: 0.95; transform: scaleY(1.05); }
}

@keyframes lvlNodeGlow {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* ===== TELEMETRIA EXECUTIVA APPLE CYBER ===== */
.lvl-telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 6px 14px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 113, 227, 0.12);
  border-radius: var(--radius-pill);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  color: var(--text-tertiary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}

.lvl-telemetry-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.lvl-telemetry-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 8px rgba(52, 199, 89, 0.8);
  animation: lvlTelemetryDotPulse 2s ease-in-out infinite;
}

@keyframes lvlTelemetryDotPulse {
  0%, 100% { opacity: 0.65; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.18); box-shadow: 0 0 12px rgba(52, 199, 89, 1); }
}

.lvl-telemetry-label {
  font-weight: 700;
  color: var(--text-secondary);
}

.lvl-telemetry-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.lvl-telemetry-tag {
  color: var(--apple-blue);
  font-weight: 700;
}

.lvl-telemetry-sep {
  opacity: 0.35;
}

/* ===== PAINEL DE CHAT UNIFICADO E INTEGRADO À PÁGINA (NATIVO, NÃO SOBREPOSTO) ===== */
.jarvis-chat-panel {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  flex: 1; /* Ocupa todo o espaço vertical livre até o rodapé */
  min-height: 0; /* Fundamental para habilitar rolagem flex nos filhos */
  background: transparent; /* Transparente: elimina a sensação de caixa/modal sobreposto */
  border: none; /* Elimina a borda de janela flutuante */
  border-radius: 0;
  box-shadow: none; /* Elimina sombras de popover externo */
  overflow: visible;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Área de Mensagens (Sem barras artificiais, rolagem pura e fluida) */
.jarvis-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 4px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.jarvis-messages::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Card de Mensagem IA LVL (Estilo Apple Intelligence Integrado) */
.jarvis-msg-jarvis {
  align-self: center;
  width: 100%;
  max-width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(0, 113, 227, 0.14);
  border-radius: 20px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-primary);
  word-break: break-word;
  box-shadow: 0 8px 28px rgba(0, 113, 227, 0.05);
}

.jarvis-msg-jarvis strong {
  color: var(--apple-blue);
  font-weight: 600;
}

/* ==========================================================================
   ZONA DE TEXTO DINÂMICA (GPU ACCELERATED 120 FPS TRANSITIONS)
   ========================================================================== */
.lvl-greeting-text-zone {
  display: block;
  width: 100%;
  margin-bottom: 4px;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  opacity: 1;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.lvl-greeting-text-zone.is-exiting {
  opacity: 0;
  transform: translate3d(0, -6px, 0);
  transition: opacity 0.13s cubic-bezier(0.32, 0, 0.67, 0), transform 0.13s cubic-bezier(0.32, 0, 0.67, 0);
}

.lvl-greeting-text-zone.is-entering {
  animation: lvlGreetingEnter 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes lvlGreetingEnter {
  0% {
    opacity: 0;
    transform: translate3d(0, 6px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Botões de Ação Interativa dentro das Mensagens */
.jarvis-msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 113, 227, 0.1);
}

@keyframes jarvisActionBtnReveal {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.jarvis-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  font-family: inherit;
  line-height: 1.2;
  animation: jarvisActionBtnReveal 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.jarvis-action-btn:nth-child(1) { animation-delay: 0.03s; }
.jarvis-action-btn:nth-child(2) { animation-delay: 0.07s; }
.jarvis-action-btn:nth-child(3) { animation-delay: 0.11s; }
.jarvis-action-btn:nth-child(4) { animation-delay: 0.15s; }

.jarvis-action-whatsapp {
  background: #25d366;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.jarvis-action-whatsapp:hover {
  background: #20ba59;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.jarvis-action-diagnostic {
  background: linear-gradient(135deg, #0071e3 0%, #00c7eb 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 199, 235, 0.35);
  border: none;
}

.jarvis-action-diagnostic:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 199, 235, 0.45);
}

.jarvis-action-link {
  background: var(--apple-blue);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.28);
}

.jarvis-action-link:hover {
  background: var(--apple-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 113, 227, 0.38);
}

.jarvis-action-scroll {
  background: rgba(0, 113, 227, 0.08);
  color: var(--apple-blue) !important;
  border: 1px solid rgba(0, 113, 227, 0.2);
}

.jarvis-action-scroll:hover {
  background: var(--apple-blue);
  color: #ffffff !important;
  border-color: var(--apple-blue);
  transform: translateY(-1px);
}

/* ==========================================================================
   MATRIZ BENTO APPLE INTELLIGENCE (2x3 CARDS TÁTEIS)
   ========================================================================== */
.lvl-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  width: 100%;
  box-sizing: border-box;
  will-change: transform, opacity;
  animation: lvlBentoGridReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes lvlBentoGridReveal {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* Animação Suave Apple Stagger (Fusão Neural Wave + Fluid Cascata) */
@keyframes lvlBentoCardReveal {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
    border-color: rgba(0, 199, 235, 0.42);
    box-shadow: 0 2px 8px rgba(0, 199, 235, 0.10);
  }
  65% {
    border-color: rgba(0, 199, 235, 0.28);
  }
  100% {
    opacity: 1;
    transform: none;
    border-color: rgba(0, 113, 227, 0.14);
    box-shadow: 0 3px 12px rgba(0, 75, 170, 0.04);
  }
}

@keyframes lvlBentoCardRevealWa {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
    border-color: rgba(37, 211, 102, 0.45);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.15);
  }
  100% {
    opacity: 1;
    transform: none;
    border-color: rgba(37, 211, 102, 0.32);
    box-shadow: 0 3px 12px rgba(37, 211, 102, 0.08);
  }
}

.lvl-bento-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  min-height: 72px;
  min-width: 0;
  max-width: 100%;
  will-change: transform, opacity;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 113, 227, 0.12);
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease;
  box-shadow: 0 3px 12px rgba(0, 75, 170, 0.04);
  color: var(--text-primary);
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  will-change: transform;
}

/* Linear Spotlight Cursor Glow Layer */
.lvl-bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    240px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(0, 113, 227, 0.09),
    transparent 72%
  );
  opacity: 0;
  transition: opacity 0.26s ease;
  pointer-events: none;
  z-index: 1;
}

.lvl-bento-grid:hover .lvl-bento-card::before {
  opacity: 1;
}

.jarvis-messages .lvl-bento-card {
  animation: lvlBentoCardReveal 0.44s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.jarvis-messages .lvl-bento-card:nth-child(1) { animation-delay: 0.03s; }
.jarvis-messages .lvl-bento-card:nth-child(2) { animation-delay: 0.08s; }
.jarvis-messages .lvl-bento-card:nth-child(3) { animation-delay: 0.13s; }
.jarvis-messages .lvl-bento-card:nth-child(4) { animation-delay: 0.18s; }
.jarvis-messages .lvl-bento-card:nth-child(5) { animation-delay: 0.23s; }
.jarvis-messages .lvl-bento-card:nth-child(6) { animation-delay: 0.28s; }
.jarvis-messages .lvl-bento-card:nth-child(7) { animation-delay: 0.33s; }

.lvl-bento-card.is-diagnostic {
  grid-column: 1 / -1;
}

.lvl-bento-card:hover {
  background: #ffffff;
  border-color: rgba(0, 113, 227, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 113, 227, 0.12);
}

.lvl-bento-card.is-whatsapp {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.08), rgba(255, 255, 255, 0.98));
  border-color: rgba(37, 211, 102, 0.28);
}

.lvl-bento-card.is-whatsapp::before {
  background: radial-gradient(
    260px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(37, 211, 102, 0.14),
    transparent 72%
  );
}

.jarvis-messages .lvl-bento-card.is-whatsapp {
  animation-name: lvlBentoCardRevealWa;
}

.lvl-bento-card.is-whatsapp:hover {
  border-color: #25d366;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.20);
}

@media (prefers-reduced-motion: reduce) {
  .lvl-bento-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Cápsula de Ícone High-Tech em Vidro Colorido */
.lvl-bento-icon-capsule {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
}

.lvl-bento-card:hover .lvl-bento-icon-capsule {
  transform: scale(1.08);
}

.lvl-bento-icon-capsule svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

/* Temas de Cores dos Ícones */
.theme-blue .lvl-bento-icon-capsule,
.lvl-bento-icon-capsule.theme-blue {
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.22);
  color: #0071e3;
  box-shadow: 0 2px 10px rgba(0, 113, 227, 0.12);
}

.theme-purple .lvl-bento-icon-capsule,
.lvl-bento-icon-capsule.theme-purple {
  background: rgba(94, 92, 230, 0.08);
  border: 1px solid rgba(94, 92, 230, 0.22);
  color: #5e5ce6;
  box-shadow: 0 2px 10px rgba(94, 92, 230, 0.12);
}

.theme-amber .lvl-bento-icon-capsule,
.lvl-bento-icon-capsule.theme-amber {
  background: rgba(255, 149, 0, 0.08);
  border: 1px solid rgba(255, 149, 0, 0.22);
  color: #ff9500;
  box-shadow: 0 2px 10px rgba(255, 149, 0, 0.12);
}

.theme-cyan .lvl-bento-icon-capsule,
.lvl-bento-icon-capsule.theme-cyan {
  background: rgba(0, 199, 235, 0.08);
  border: 1px solid rgba(0, 199, 235, 0.24);
  color: #00b8d4;
  box-shadow: 0 2px 10px rgba(0, 199, 235, 0.14);
}

.theme-indigo .lvl-bento-icon-capsule,
.lvl-bento-icon-capsule.theme-indigo {
  background: rgba(88, 86, 214, 0.08);
  border: 1px solid rgba(88, 86, 214, 0.22);
  color: #5856d6;
  box-shadow: 0 2px 10px rgba(88, 86, 214, 0.12);
}

.theme-slate .lvl-bento-icon-capsule,
.lvl-bento-icon-capsule.theme-slate {
  background: rgba(99, 99, 102, 0.08);
  border: 1px solid rgba(99, 99, 102, 0.22);
  color: #48484a;
  box-shadow: 0 2px 10px rgba(99, 99, 102, 0.12);
}

.theme-emerald .lvl-bento-icon-capsule,
.lvl-bento-icon-capsule.theme-emerald {
  background: rgba(52, 199, 89, 0.10);
  border: 1px solid rgba(52, 199, 89, 0.28);
  color: #28cd41;
  box-shadow: 0 2px 10px rgba(52, 199, 89, 0.16);
}

.lvl-bento-icon {
  font-size: 1.55rem;
  line-height: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.lvl-bento-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.lvl-bento-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.lvl-bento-desc {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (hover: none) {
  .lvl-bento-card::before {
    display: none !important;
  }
}

@media (max-width: 380px) {
  .lvl-bento-grid {
    gap: 6px;
    margin-top: 10px;
  }
  .lvl-bento-card {
    padding: 9px 8px;
    min-height: 62px;
    gap: 7px;
    border-radius: 12px;
  }
  .lvl-bento-icon-capsule {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 9px;
  }
  .lvl-bento-icon-capsule svg {
    width: 15px;
    height: 15px;
  }
  .lvl-bento-icon {
    font-size: 1.18rem;
  }
  .lvl-bento-title {
    font-size: 0.74rem;
    line-height: 1.2;
  }
  .lvl-bento-desc {
    font-size: 0.61rem;
  }
}

/* Bolha do Usuário */
.jarvis-msg-user {
  align-self: flex-end;
  max-width: 82%;
  padding: 9px 16px;
  background: var(--apple-blue);
  color: #ffffff;
  border-radius: 16px 16px 4px 16px;
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
  box-shadow: 0 3px 10px rgba(0, 113, 227, 0.25);
}

/* Sugestões Rápidas (Chips Horizontais Sem Quebra Desordenada) */
.jarvis-quick-suggestions {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 6px;
  padding: 4px 2px 6px;
  justify-content: flex-start;
  align-items: center;
  flex-shrink: 0;
}

.jarvis-quick-suggestions:empty {
  display: none !important;
  padding: 0;
  margin: 0;
}

.jarvis-quick-suggestions::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.jarvis-quick-btn {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--apple-blue-border);
  background: var(--apple-blue-subtle);
  color: var(--apple-blue);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.jarvis-quick-btn:hover {
  background: var(--apple-blue);
  color: #ffffff;
  transform: translateY(-1px);
}



/* Indicador de Rolagem Minimalista Compacto */
.hero-compact-scroll {
  margin: 3px auto 0 auto !important;
  padding: 2px 14px;
  font-size: 0.70rem;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  opacity: 0.7;
  transition: opacity 0.2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: subtleBounce 2.2s infinite ease-in-out;
}

.hero-compact-scroll:hover {
  opacity: 1;
  color: var(--apple-blue);
}

@keyframes subtleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* ===== RESPONSIVIDADE (MOBILE & TABLET) ===== */

@media (max-width: 768px) {
  .hero-section.hero-jarvis-pure {
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    padding: 16px 14px 20px;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .hero-section.hero-jarvis-pure .container {
    gap: 6px;
    min-height: 100%;
    height: auto;
    justify-content: center;
  }

  .hero-hud-centered {
    width: 100%;
    max-width: 280px;
    height: clamp(190px, 28vh, 240px);
    min-height: 175px;
    margin: 0 auto 4px auto;
    overflow: visible;
  }

  .hero-hud-centered #jarvis-canvas {
    height: 100%;
    min-height: 175px;
  }

  .hero-hud-glow::after {
    width: 240px;
    height: 240px;
    filter: none;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.16) 0%, rgba(94, 92, 230, 0.06) 45%, transparent 70%);
  }

  .jarvis-chat-panel {
    max-width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .jarvis-messages {
    flex: 1;
    min-height: 0;
    padding: 0;
    gap: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
  }

  .jarvis-msg-jarvis {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 14px 16px;
    font-size: 0.85rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(0, 113, 227, 0.16);
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.06), 0 2px 6px rgba(0, 0, 0, 0.02);
    overflow: hidden;
  }

  .jarvis-msg-user {
    font-size: 0.83rem;
    padding: 8px 12px;
  }

  .jarvis-msg-actions {
    gap: 6px;
    margin-top: 8px;
  }

  .jarvis-action-btn {
    padding: 6px 12px;
    font-size: 0.74rem;
  }

  .lvl-bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 13px;
    width: 100%;
    box-sizing: border-box;
  }

  .lvl-telemetry-header {
    font-size: 0.62rem;
    padding: 5px 10px;
    margin-bottom: 6px;
  }

  .lvl-bento-card {
    padding: 11px 10px;
    min-height: 66px;
    gap: 8px;
    border-radius: 14px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .lvl-bento-icon-capsule {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 10px;
  }

  .lvl-bento-icon-capsule svg {
    width: 17px;
    height: 17px;
  }

  .lvl-bento-icon {
    font-size: 1.30rem;
    line-height: 1;
    flex-shrink: 0;
  }

  .lvl-bento-text {
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }

  .lvl-bento-title {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.22;
    white-space: normal;
    word-break: normal;
    overflow: visible;
    text-overflow: unset;
    margin-bottom: 2px;
  }

  .lvl-bento-desc {
    font-size: 0.66rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .jarvis-quick-suggestions {
    gap: 5px;
    padding: 4px 2px 6px;
    flex-shrink: 0;
  }

  .jarvis-quick-btn {
    padding: 4px 10px;
    font-size: 0.72rem;
  }

  .hero-compact-scroll {
    margin: 2px auto 0 auto !important;
    font-size: 0.66rem;
  }
}

@media (max-width: 390px) {
  .hero-hud-centered {
    height: 235px;
    min-height: 215px;
    max-width: 280px;
  }

  .hero-hud-centered #jarvis-canvas {
    height: 100%;
    min-height: 215px;
  }
}
