:root {
  /* Tokens oficiais Athos */
  --marca: #1660d4;
  --marca-escura: #0a2163;
  --marca-hover: #1250b3;
  --marca-clara: #e6eefc;
  --ciano: #3fb4f0;
  --senha: #f0b429;
  --senha-clara: #fdf3dc;
  --ok: #16803c;
  --ok-clara: #e3f6e8;
  --fundo: #eef3fa;
  --tinta: #0d1b33;
  --tinta-suave: #56677f;
  --linha: #d5dfec;
  --erro: #b3261e;
  --erro-clara: #fdf2f2;

  --radius-card: 22px;
  --radius-input: 14px;
  --radius-btn: 14px;
  --shadow-app: 0 16px 40px -10px rgba(10, 33, 99, 0.15), 0 4px 18px -4px rgba(10, 33, 99, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  width: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--fundo);
  color: var(--tinta);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Moldura do Aplicativo */
.chat-container {
  width: 100%;
  max-width: 480px;
  height: 100%;
  max-height: 840px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

@media (min-width: 520px) {
  .chat-container {
    height: 94vh;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-app);
    border: 1px solid var(--linha);
  }
}

/* Cabeçalho Athos */
.chat-header {
  background: linear-gradient(135deg, var(--marca-escura) 0%, var(--marca) 100%);
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(10, 33, 99, 0.18);
  z-index: 10;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.header-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulso 2s infinite ease-in-out;
}

.status-dot.offline {
  background: #94a3b8;
  box-shadow: none;
  animation: none;
}

@keyframes pulso {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.75; }
}

.btn-header-action {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-header-action:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Corpo Principal */
.chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--fundo);
  position: relative;
}

/* ------------------------------------------------------------- */
/* 1. PAINEL DE IDENTIFICAÇÃO / LOGIN (Alto contraste e legibilidade) */
/* ------------------------------------------------------------- */
.auth-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 20px;
  overflow-y: auto;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 30px 24px 28px;
  box-shadow: 0 10px 30px -5px rgba(10, 33, 99, 0.08);
  border: 1px solid var(--linha);
}

.auth-card-head {
  text-align: center;
  margin-bottom: 24px;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 850;
  color: var(--tinta);
  letter-spacing: -0.02em;
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.field-label strong {
  font-size: 1.08rem;
  font-weight: 750;
  color: var(--tinta);
}

.field-hint {
  font-size: 0.85rem;
  color: var(--tinta-suave);
}

.field-input {
  width: 100%;
  height: 56px;
  padding: 12px 18px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--tinta);
  background: #ffffff;
  border: 2px solid var(--linha);
  border-radius: var(--radius-input);
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.field-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.field-input:focus {
  border-color: var(--marca);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(22, 96, 212, 0.18);
}

.field-select {
  font-size: 1rem;
  font-weight: 600;
}

/* Estado de Erro no Campo */
.form-group.has-error .field-input {
  border-color: var(--erro) !important;
  background: var(--erro-clara) !important;
  color: var(--erro) !important;
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.15) !important;
}

.field-error-text {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--erro);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.field-error-text::before {
  content: "⚠";
  font-size: 0.95rem;
}

/* Banner de Atendimento Offline */
.offline-banner {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-input);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #334155;
  text-align: left;
}

.offline-banner-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #64748b;
  margin-top: 2px;
}

.offline-banner-content {
  flex: 1;
  min-width: 0;
}

.offline-banner-content strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 750;
  color: #1e293b;
  margin-bottom: 2px;
}

.offline-banner-content p {
  font-size: 0.88rem;
  line-height: 1.4;
  color: #64748b;
  margin: 0;
}

/* Alerta de Erro Geral */
.auth-alert-box {
  background: var(--erro-clara);
  border: 1.5px solid var(--erro);
  color: var(--erro);
  padding: 14px 16px;
  border-radius: var(--radius-input);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

/* Botão Principal */
.btn-primary-action {
  width: 100%;
  height: 56px;
  background: var(--marca);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-btn);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 8px 22px -4px rgba(22, 96, 212, 0.45);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}

.btn-primary-action:hover {
  background: var(--marca-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -4px rgba(22, 96, 212, 0.55);
}

.btn-primary-action:active {
  transform: translateY(1px);
}

.btn-primary-action:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  background: #94a3b8;
  box-shadow: none;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ------------------------------------------------------------- */
/* 2. TELA DA FILA DE ESPERA (Ticket idêntico ao da Athos) */
/* ------------------------------------------------------------- */
.queue-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background: var(--fundo);
}

.senha-container {
  width: 100%;
  max-width: 380px;
  animation: subir 0.3s ease-out;
}

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

.senha {
  width: 100%;
  filter: drop-shadow(0 12px 28px rgba(10, 33, 99, 0.12));
}

.senha-topo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 24px 24px 0 0;
  background: var(--senha);
  color: var(--tinta);
  padding: 22px 20px;
}

.senha-rotulo {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.25;
}

.senha-numero {
  margin: 0;
  font-weight: 850;
  font-size: 46px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

/* Picote serrilhado idêntico ao App da Athos */
.senha-picote {
  height: 12px;
  background-color: var(--senha-clara);
  background-image: radial-gradient(circle at 8px 0, var(--fundo) 6px, transparent 6.5px);
  background-size: 16px 12px;
  background-repeat: repeat-x;
}

.senha-base {
  border-radius: 0 0 24px 24px;
  background: var(--senha-clara);
  padding: 10px 24px 24px;
  font-size: 0.95rem;
  color: var(--tinta);
  text-align: center;
}

.senha-chamada {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 0;
  font-weight: 750;
  font-size: 1.02rem;
}

.fila-loader {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 1rem;
}

.fila-loader span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: fila-ponto 0.9s ease-in-out infinite;
}

.fila-loader span:nth-child(2) { animation-delay: 0.15s; }
.fila-loader span:nth-child(3) { animation-delay: 0.3s; }

@keyframes fila-ponto {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(-5px); opacity: 1; }
}

.senha-media {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(240, 180, 41, 0.4);
  text-align: center;
  font-size: 0.92rem;
}

.senha-media span {
  color: var(--tinta-suave);
}

.senha-media b {
  font-weight: 750;
  color: var(--tinta);
}

.senha-nota {
  margin: 14px 0 0;
  color: var(--tinta-suave);
  font-size: 0.92rem;
  line-height: 1.45;
}

.btn-aviso {
  margin-top: 16px;
  height: 46px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: var(--tinta);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn-aviso:hover {
  opacity: 0.9;
}

/* Efeito de troca do número */
.numero-troca {
  display: inline-grid;
  overflow: hidden;
  height: 1em;
  line-height: 1;
  vertical-align: bottom;
}

.numero-troca > span {
  grid-area: 1 / 1;
}

/* Convite e Botão do Jogo (igual ao Athos original) */
.fila-convite-box {
  margin-top: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.fila-convite {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--tinta-suave);
  text-align: center;
}

.btn-jogar {
  height: 44px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  background: var(--marca);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(22, 96, 212, 0.25);
  transition: all 0.15s ease;
}

.btn-jogar:hover {
  background: var(--marca-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(22, 96, 212, 0.35);
}

.btn-jogar:active {
  transform: translateY(1px);
}

/* Área do Jogo em Tela Cheia no Corpo */
.game-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #c5daf6;
  z-index: 20;
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: pointer;
}

.jogo-faixa {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--marca-escura);
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.jogo-aviso {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  pointer-events: none;
}

.jogo-aviso div {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 16px 36px -6px rgba(10, 33, 99, 0.28);
  max-width: 300px;
  pointer-events: auto;
}

.jogo-aviso strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 850;
  color: var(--marca-escura);
  margin-bottom: 6px;
}

.jogo-aviso p {
  font-size: 0.92rem;
  color: var(--tinta-suave);
  line-height: 1.4;
}

.jogo-aviso .recorde {
  margin-top: 10px;
  font-weight: 750;
  color: var(--marca);
  font-size: 0.95rem;
}

.jogo-voltar {
  position: absolute;
  left: 14px;
  bottom: 24px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--marca-escura);
  font-size: 0.88rem;
  font-weight: 750;
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: transform 0.15s ease;
}

.jogo-voltar:hover {
  transform: scale(1.04);
}

.jogo-som {
  position: absolute;
  right: 14px;
  bottom: 24px;
  z-index: 25;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--marca);
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: transform 0.15s ease;
}

.jogo-som:hover {
  transform: scale(1.08);
}

/* ------------------------------------------------------------- */
/* 3. SALA DE CHAT ATIVA (Quando atendente assume o chamado) */
/* ------------------------------------------------------------- */
.chat-room-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
}

.agent-bar {
  background: var(--marca-clara);
  color: var(--marca-escura);
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--linha);
}

.agent-avatar {
  width: 24px;
  height: 24px;
  background: var(--marca);
  color: #ffffff;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.messages-feed {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
}

.msg-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 82%;
  animation: fadeInMsg 0.2s ease-out;
}

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

.msg-wrapper.client {
  align-self: flex-end;
}

.msg-wrapper.agent {
  align-self: flex-start;
}

.msg-wrapper.system {
  align-self: center;
  max-width: 90%;
  text-align: center;
}

.msg-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.98rem;
  line-height: 1.45;
  word-break: break-word;
}

.msg-wrapper.client .msg-bubble {
  background: var(--marca);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(22, 96, 212, 0.2);
}

.msg-wrapper.agent .msg-bubble {
  background: #ffffff;
  color: var(--tinta);
  border: 1px solid var(--linha);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.msg-wrapper.system .msg-bubble {
  background: var(--marca-clara);
  color: var(--marca-escura);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
}

.msg-time {
  font-size: 0.75rem;
  margin-top: 4px;
  padding: 0 4px;
  color: var(--tinta-suave);
}

.msg-wrapper.client .msg-time {
  text-align: right;
}

/* Barra de envio */
.chat-footer {
  padding: 12px 16px;
  background: #ffffff;
  border-top: 1px solid var(--linha);
}

.footer-input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.chat-input {
  flex: 1;
  background: var(--fundo);
  border: 1.5px solid var(--linha);
  border-radius: 22px;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--tinta);
  resize: none;
  max-height: 120px;
  outline: none;
  transition: all 0.2s ease;
}

.chat-input:focus {
  border-color: var(--marca);
  background: #ffffff;
}

.btn-send {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--marca);
  color: #ffffff;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(22, 96, 212, 0.35);
}

.btn-send:hover {
  background: var(--marca-hover);
  transform: scale(1.04);
}

.btn-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ------------------------------------------------------------- */
/* 4. MODAL OVERLAY (Totalmente suspenso e fixo na tela) */
/* ------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 99999;
  animation: fadeIn 0.15s ease;
  box-sizing: border-box;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 28px 24px 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  text-align: center;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-sizing: border-box;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--tinta);
  margin: 0 0 8px 0;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--tinta-suave);
  line-height: 1.45;
  margin: 0 0 20px 0;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.btn-modal-cancel {
  flex: 1;
  height: 48px;
  background: var(--fundo);
  border: 1px solid var(--linha);
  color: var(--tinta);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-modal-danger {
  flex: 1;
  height: 48px;
  background: var(--erro);
  border: none;
  color: #ffffff;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.modal-actions-single {
  display: flex;
  justify-content: center;
}

.modal-actions-single button {
  width: 100%;
  height: 50px;
  border-radius: 12px;
}

.modal-icon-badge {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon-warning {
  background: #fef3c7;
  color: #d97706;
}

.modal-box-alert .modal-title {
  color: #0f172a;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 10px 0;
}

.modal-box-alert .modal-desc {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 24px 0;
}

.senha-saudacao {
  text-align: center;
  margin-bottom: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tinta);
  background: #ffffff;
  padding: 10px 16px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.agent-bar-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-user-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tinta-suave);
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--linha);
}

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

/* -------------------------------------------------------------
   2. Painel de Menu / Opções pós-login
   ------------------------------------------------------------- */
.menu-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 20px;
  overflow-y: auto;
  animation: fadeIn 0.25s ease-out;
}

.menu-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: 0 10px 32px -6px rgba(10, 33, 99, 0.1);
  border: 1px solid var(--linha);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Visão 1: Grade de Opções */
.menu-view-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.2s ease-out;
}

.menu-header {
  text-align: center;
}

.menu-greeting {
  font-size: 1.45rem;
  font-weight: 850;
  color: var(--tinta);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 6px 0;
}

.menu-subtitle {
  font-size: 0.98rem;
  color: var(--tinta-suave);
  margin: 0;
}

.menu-options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-option-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1.5px solid var(--linha);
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(10, 33, 99, 0.04);
}

.menu-option-btn:hover {
  border-color: var(--marca);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(22, 96, 212, 0.16);
  background: #fcfdfe;
}

.menu-option-btn:active {
  transform: translateY(0);
}

.menu-option-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--marca-clara);
  color: var(--marca);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.menu-option-btn:hover .menu-option-icon {
  transform: scale(1.08);
}

.menu-option-support .menu-option-icon {
  background: var(--senha-clara);
  color: #b45309;
}

.menu-option-support:hover {
  border-color: #d97706;
  box-shadow: 0 8px 20px -4px rgba(217, 119, 6, 0.2);
}

.menu-option-texts {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.menu-option-title {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--tinta);
  letter-spacing: -0.01em;
}

.menu-option-desc {
  font-size: 0.88rem;
  color: var(--tinta-suave);
  line-height: 1.3;
}

/* Visão 2: Detalhe do Link ou da Pauta (Esconde botões para foco total) */
.menu-panel.in-detail {
  justify-content: flex-start;
  padding: 16px 16px 24px;
}

.menu-panel.in-detail .menu-card {
  padding: 22px 18px 24px;
  margin-top: 0;
}

/* Visão 2: Detalhe do Link ou da Pauta (Centralizado no topo com scroll livre) */
.menu-view-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.2s ease-out;
  width: 100%;
}

.menu-detail-heading {
  font-size: 1.35rem;
  font-weight: 850;
  color: var(--tinta);
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 6px 0;
}

.menu-detail-body {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #334155;
  word-break: break-word;
  max-height: none;
}

.meeting-url-box {
  background: #f8fafc;
  border: 1.5px solid var(--linha);
  border-radius: 16px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.meeting-url-box p {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--tinta);
  margin: 0;
}

.meeting-url-text {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--marca);
  word-break: break-all;
  background: #ffffff;
  border: 1px solid var(--linha);
  padding: 10px 14px;
  border-radius: 10px;
  width: 100%;
  text-align: center;
}

.btn-join-meeting {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--marca);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 750;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  width: 100%;
  box-shadow: 0 6px 18px rgba(22, 96, 212, 0.25);
  transition: background 0.2s, transform 0.15s;
}

.btn-join-meeting:hover {
  background: var(--marca-hover);
  transform: translateY(-1px);
}

.agenda-pre-box {
  background: #f8fafc;
  border: 1.5px solid var(--linha);
  border-radius: 16px;
  padding: 20px 18px;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--tinta);
  text-align: left;
}

.detail-empty-text {
  text-align: center;
  color: var(--tinta-suave);
  padding: 16px 8px;
  margin: 0;
}

.menu-detail-footer {
  border-top: 1.5px solid var(--linha);
  padding-top: 14px;
  display: flex;
  justify-content: center;
  text-align: center;
}

.btn-detail-support {
  background: none;
  border: none;
  color: var(--marca);
  font-size: 0.98rem;
  font-weight: 750;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.15s;
}

.btn-detail-support:hover {
  background: var(--marca-clara);
  text-decoration: underline;
}

/* Submenu do Suporte ao App (Atualizar APP, Desvincular, Presença, Suporte) */
.menu-view-support {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.2s ease-out;
  width: 100%;
}

.menu-view-support .menu-detail-heading {
  margin-bottom: 6px;
}

.detail-lead {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--tinta);
  margin: 4px 0 16px;
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-choice-btn,
.btn-detail-primary {
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 1.02rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.2s ease;
}

.detail-choice-btn {
  background: #ffffff;
  color: var(--tinta);
  border: 1.5px solid var(--linha);
  box-shadow: 0 2px 6px rgba(10, 33, 99, 0.04);
}

.detail-choice-btn:hover {
  border-color: var(--marca);
  color: var(--marca);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(22, 96, 212, 0.16);
}

.btn-detail-primary {
  background: var(--marca);
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 18px rgba(22, 96, 212, 0.25);
}

.btn-detail-primary:hover {
  background: var(--marca-hover);
  transform: translateY(-1px);
}


/* Formulário: descrever o problema antes de entrar na fila */
.problema-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.problema-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.45;
  font-size: 1.02rem;
}
.problema-anexos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.problema-anexo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--linha);
  background: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--marca);
  cursor: pointer;
}
.problema-anexo-btn:hover {
  border-color: var(--marca);
  background: var(--marca-clara);
}
.problema-anexo-lista {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--tinta-suave, #64748b);
}
.btn-detail-primary:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}
