/* ================= VARIÁVEIS ================= */
:root { --cor-marca: #d48b91; --cor-marca-hover: #b86b72; --cor-fundo: #f4f6f9; --cor-texto: #333; }
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Segoe UI', Arial, sans-serif; background: var(--cor-fundo); color: var(--cor-texto); display: flex; height: 100vh; overflow: hidden; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; transition: 0.2s; font-family: inherit; }
button:active { transform: scale(0.98); }
input, textarea, select { width: 100%; padding: 14px; margin-bottom: 12px; border-radius: 10px; border: 1px solid #e5e7eb; font-size: 16px; background: white; outline: none; transition: border 0.2s; }
input:focus, select:focus, textarea:focus { border-color: var(--cor-marca); }

/* ================= TOAST ================= */
#toast-container { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); z-index: 99999; display: flex; flex-direction: column; gap: 8px; width: 90%; max-width: 400px; pointer-events: none; }
.toast { padding: 13px 18px; border-radius: 12px; font-size: 14px; font-weight: bold; color: white; background: #1f2937; box-shadow: 0 6px 20px rgba(0,0,0,0.25); animation: toastIn 0.3s ease, toastOut 0.3s ease 3.2s forwards; }
.toast.sucesso { background: #10b981; }
.toast.erro { background: #ef4444; }
.toast.aviso { background: #f59e0b; color: #1a1a1a; }
@keyframes toastIn { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }
@keyframes toastOut { from { opacity:1; } to { opacity:0; transform: translateY(10px); } }

/* ================= LOGIN & ONBOARDING ================= */
.tela-overlay { width: 100%; height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--cor-fundo) 0%, #e2e8f0 100%); position: absolute; top: 0; left: 0; z-index: 9999; }
.login-box { background: white; text-align: center; padding: 40px 25px; border-radius: 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); width: 90%; max-width: 340px; }
.login-box button { width: 100%; padding: 15px; background: var(--cor-marca); color: white; border: none; border-radius: 10px; font-size: 16px; font-weight: bold; }
.btn-google { background: white !important; color: #444 !important; border: 1px solid #ddd !important; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
.link-acao { display: block; margin-top: 15px; font-size: 14px; color: var(--cor-marca); text-decoration: none; font-weight: bold; cursor: pointer; }

/* ================= APP & MENU ================= */
#tela-app { display: none; width: 100%; height: 100vh; flex-direction: row; }
.sidebar { width: 250px; background: linear-gradient(180deg, var(--cor-marca), var(--cor-marca-hover)); color: white; padding: 20px 0; display: flex; flex-direction: column; box-shadow: 2px 0 10px rgba(0,0,0,0.05); z-index: 900; }
.sidebar h2 { text-align: center; margin-bottom: 30px; font-family: 'Georgia', serif; font-size: 24px; }
.menu-item { padding: 16px 25px; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 16px; transition: background 0.2s; }
.menu-item:hover { background: rgba(255,255,255,0.15); }
.menu-item.ativo { background: rgba(255,255,255,0.25); }
.conteudo { flex: 1; padding: 50px 25px 25px 25px; overflow-y: auto; background: var(--cor-fundo); }
.titulo-pagina { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--cor-marca); line-height: 1.1; }
.titulo-pagina-icone { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.titulo-pagina-texto { white-space: nowrap; }

/* ================= DASHBOARD & CARTÕES ================= */
.dash-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; }
.card { background: white; padding: 15px; border-radius: 12px; border-left: 5px solid var(--cor-marca); box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.card-valor { font-size: 22px; font-weight: bold; margin-top: 5px; color: var(--cor-texto); }
.card-titulo { font-size: 13px; color: #64748b; }
.proxima-cliente { background: linear-gradient(135deg, var(--cor-marca), var(--cor-marca-hover)); color: white; padding: 20px; border-radius: 16px; margin-bottom: 20px; box-shadow: 0 6px 15px rgba(0,0,0,0.1); }
.card-metrica { background: white; padding: 15px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; border-left: 4px solid var(--cor-marca); }
.metrica-label { font-size: 12px; color: #64748b; font-weight:bold; margin-bottom:4px; }
.metrica-valor { font-size: 18px; font-weight: bold; }
.caixa-filtro { background: white; padding: 15px; border-radius: 12px; margin-bottom: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); border: 1px solid #e5e7eb; }
.pagamentos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; margin-bottom: 20px; }
.pagamento-card { background: #f8fafc; padding: 12px; border-radius: 10px; border: 1px solid #e2e8f0; display: flex; flex-direction: column; justify-content: center; }

/* ================= BUSCA ================= */
.barra-busca { position: relative; margin-bottom: 15px; }
.barra-busca input { margin: 0; padding-left: 38px; background: white; border: 1px solid #e5e7eb; }
.barra-busca::before { content: "🔍"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 16px; pointer-events: none; z-index: 1; }

/* ================= AGENDA & SERVIÇOS ================= */
.topo-agenda { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; margin-bottom: 12px; align-items: stretch; }
#dataAgenda, #filtroMesGastos { flex: 1; margin: 0; min-height: 52px; width: 100%; margin-bottom: 0 !important; }
input[type="date"], input[type="month"] { min-height: 52px; }
.btn-novo-topo { flex: 0 0 auto; margin: 0; white-space: nowrap; background: var(--cor-marca); color: white; border: none; padding: 0 20px; border-radius: 10px; font-weight: bold; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; }

.calendario { background: white; border-radius: 12px; border: 1px solid #f3f4f6; overflow: hidden; }
.linha-horario { display: flex; border-bottom: 1px solid #f3f4f6; min-height: 52px; align-items: stretch; }
.hora { width: 65px; font-size: 14px; background: #fafafa; display: flex; align-items: center; justify-content: center; font-weight: 600; color: #6b7280; border-right: 1px solid #f3f4f6; }
.slot { flex: 1; padding: 6px; display: flex; align-items: center; overflow: hidden; }
.slot-vazio { color: #9ca3af; font-size: 14px; width: 100%; height: 100%; display: flex; align-items: center; padding-left: 8px; cursor: pointer; border-radius: 6px; }
.slot-vazio:hover { background: #f9fafb; color: var(--cor-marca); }
.agendamento-card { background: white; border-radius: 8px; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); border-left: 5px solid var(--cor-servico); overflow: hidden; }
.ag-nome { font-weight: bold; font-size: 14px; color: #1f2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.ag-nome:hover { color: var(--cor-marca); text-decoration: underline; }
.ag-servico { font-size: 12px; color: #64748b; margin-top: 3px; }
.badge-pagamento { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-size: 10px; color: #4b5563; margin-left: 5px; font-weight: bold; }
.ag-acoes { display: flex; gap: 4px; margin-left: 5px; flex-wrap: wrap; justify-content: flex-end; max-width: 132px; }
.ag-acoes button { padding: 6px 7px; font-size: 13px; border-radius: 6px; border: none; cursor: pointer; line-height: 1; min-width: 30px; }

/* ================= HISTÓRICO CLIENTE ================= */
.historico-item { background: #f8fafc; border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; border-left: 4px solid var(--cor-marca); }

/* ================= MODAIS ================= */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 15px; }
.modal-form { background: white; width: 100%; max-width: 400px; border-radius: 16px; padding: 20px; max-height: 90vh; overflow-y: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.2); display: flex; flex-direction: column; }
.modal-form input, .modal-form select, .modal-form textarea { width: 100% !important; max-width: 100%; box-sizing: border-box; padding: 12px; margin-bottom: 15px; border-radius: 10px; border: 1px solid #e5e7eb; font-size: 16px; display: block; appearance: none; -webkit-appearance: none; }
.form-row-flex { display: flex; gap: 10px; width: 100%; align-items: flex-start; }
.form-row-flex > div { flex: 1; min-width: 0; }
.modal { background: white; padding: 25px; border-radius: 16px; width: 320px; text-align: center; }
.form-buttons, .modal-buttons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 15px; }
.btn-cancelar { background: #f3f4f6 !important; color: #333 !important; border: none; padding: 10px 15px; border-radius: 8px; font-weight: bold; flex: 1; }
.btn-salvar { background: var(--cor-marca); color: white; border: none; padding: 10px 15px; border-radius: 8px; font-weight: bold; flex: 1; }
.btn-excluir { background: #ef4444 !important; color: white !important; border: none; padding: 10px 15px; border-radius: 8px; font-weight: bold; }
.btn-exportar { background: #10b981; color: white; border: none; padding: 10px 18px; border-radius: 8px; font-weight: bold; font-size: 14px; cursor: pointer; margin-top: 10px; width: 100%; }

/* ================= RESPONSIVIDADE MOBILE ================= */
@media (max-width: 768px) {
  #tela-app { flex-direction: column; }

  /* ── Bottom nav bar ── */
  .sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-around;    /* distribui itens igualmente */
    align-items: stretch;
    padding: 0 0 env(safe-area-inset-bottom, 0px) 0;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1000;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.07);
    overflow: hidden;               /* nada vaza além da borda */
  }

  /* Título e badge do sidebar NÃO aparecem no bottom nav */
  .sidebar h2          { display: none; }
  #sidebar-plano-badge { display: none !important; }

  /* ── Cada item do menu ── */
  .menu-item {
    flex: 1;
    min-width: 0;                   /* permite encolher sem transbordar */
    max-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7px 2px 6px;
    gap: 2px;
    border: none;
    -webkit-tap-highlight-color: transparent;
  }

  /* ── Ícone ── */
  .icone-menu {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.15s, color 0.15s;
    color: #94a3b8;          /* SVG herda esta cor (cinza = inativo) */
    width: 24px;
    height: 24px;
  }
  .icone-menu svg { display: block; }  /* evita espaço extra de inline */

  .menu-item.ativo .icone-menu {
    transform: scale(1.15);
    color: var(--cor-marca); /* SVG ativo = cor da marca */
  }

  /* ── Label ── */
  .texto-menu {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    color: #94a3b8;
    display: block;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    width: 100%;
    letter-spacing: 0.2px;
  }
  .menu-item.ativo .texto-menu { color: var(--cor-marca); font-weight: 700; }

  /* ── Área de conteúdo: respeita notch (topo) + bottom nav + safe-area ── */
  .conteudo {
    padding-top:    calc(16px + env(safe-area-inset-top, 0px));
    padding-right:  15px;
    padding-left:   15px;
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    /* 72px = altura do bottom nav (~58px) + margem de respiro */
  }

  /* ── Badge de plano: só aparece em mobile, dentro do dashboard ── */
  .plano-pill-mobile { display: inline-flex; }
  /* (em desktop fica oculto — ver regra abaixo) */

  /* ── Outros ajustes mobile ── */
  .topo-agenda { flex-direction: row; align-items: stretch; gap: 10px; }
  #dataAgenda, #filtroMesGastos { flex: 1; width: auto !important; max-width: 100%; margin-bottom: 0 !important; }
  .btn-novo-topo { flex: 0 0 auto; width: auto; padding: 0 15px; }
  .modal-form { width: 92% !important; padding: 20px 15px; }
  .form-row-flex { flex-direction: column; gap: 0; }

  /* Toast sobe acima do bottom nav */
  #toast-container { bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 10px); }
}

/* ── Pill de plano: oculto em desktop (badge fica no sidebar) ── */
.plano-pill-mobile { display: none; }

/* ================= RESPONSIVIDADE TABLET ================= */
@media (min-width: 769px) and (max-width: 1100px) {
  .sidebar { width: 75px; }
  .sidebar h2 { display: none; }
  /* Badge fica pequeno e centralizado no sidebar do tablet */
  #sidebar-plano-badge {
    font-size: 8px !important;
    padding: 2px 6px !important;
    text-align: center;
    width: calc(100% - 12px);
    margin: 0 6px 8px;
    display: block !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .menu-item { flex-direction: column; padding: 14px 5px; gap: 4px; justify-content: center; }
  .icone-menu { font-size: 22px; display: block; }
  .texto-menu {
    font-size: 9px; font-weight: bold; text-transform: uppercase;
    color: rgba(255,255,255,0.85); display: block; text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
  }
}

/* ================= TELAS DE AUTENTICAÇÃO (nova versão) ================= */

.auth-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  background: linear-gradient(160deg, #d48b91 0%, #c27079 40%, #a85560 100%);
  padding: env(safe-area-inset-top, 20px) 20px env(safe-area-inset-bottom, 30px);
  -webkit-overflow-scrolling: touch;
}

/* ── Blobs decorativos de fundo ── */
.auth-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.auth-blob {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  animation: auth-float 6s ease-in-out infinite;
}
.auth-blob1 { width: 280px; height: 280px; top: -80px; right: -60px; animation-delay: 0s; }
.auth-blob2 { width: 200px; height: 200px; bottom: 60px; left: -60px; animation-delay: 2s; }
.auth-blob3 { width: 150px; height: 150px; top: 40%; right: -30px; animation-delay: 4s; }
@keyframes auth-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-20px) scale(1.05); }
}

/* ── Header branding ── */
.auth-header {
  text-align: center;
  padding: 30px 0 24px;
  position: relative;
  z-index: 1;
}
.auth-logo-circulo {
  width: 72px; height: 72px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.35);
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.auth-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-style: italic;
  color: white;
  margin: 0 0 4px;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.auth-brand-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0;
}

/* ── Card branco do formulário ── */
.auth-card {
  background: white;
  border-radius: 28px;
  padding: 32px 24px 28px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  position: relative;
  z-index: 1;
  animation: auth-surgir 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes auth-surgir {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-titulo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #2d1f21;
  margin: 0 0 4px;
}
.auth-subtitulo {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #9a7a7e;
  margin: 0 0 22px;
}

/* ── Campos de input ── */
.auth-campo {
  position: relative;
  margin-bottom: 14px;
}
.auth-campo-icone {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #c8a0a5;
  pointer-events: none;
  display: flex;
  align-items: center;
}
.auth-input {
  width: 100% !important;
  padding: 14px 42px !important;
  border: 1.5px solid #eedde0 !important;
  border-radius: 14px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 15px !important;
  color: #2d1f21 !important;
  background: #fdf8f8 !important;
  margin-bottom: 0 !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  outline: none !important;
  -webkit-appearance: none;
}
.auth-input:focus {
  border-color: var(--cor-marca) !important;
  background: white !important;
  box-shadow: 0 0 0 4px rgba(212,139,145,0.15) !important;
}
.auth-senha-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #c8a0a5;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  opacity: 1;
  transition: opacity 0.2s;
}

/* ── Links ── */
.auth-link-menor {
  display: block;
  text-align: right;
  font-size: 12px;
  color: #b8909a;
  cursor: pointer;
  margin: -6px 0 16px;
  font-family: 'DM Sans', sans-serif;
}
.auth-link-menor:hover { color: var(--cor-marca); }
.auth-link-criar {
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--cor-marca);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: color 0.2s;
}
.auth-link-criar:hover { color: var(--cor-marca-hover); }

/* ── Botão principal ── */
.auth-btn-principal {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--cor-marca) 0%, var(--cor-marca-hover) 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 6px 20px rgba(212,139,145,0.35);
}
.auth-btn-principal:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(212,139,145,0.45); }
.auth-btn-principal:active { transform: scale(0.98); }
.auth-btn-principal:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.auth-btn-loader {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: auth-girar 0.7s linear infinite;
  margin: 0 auto;
}
@keyframes auth-girar { to { transform: rotate(360deg); } }
.auth-btn-principal.carregando .auth-btn-texto { display: none; }
.auth-btn-principal.carregando .auth-btn-loader { display: block; }

/* ── Divisor "ou" ── */
.auth-divisor {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #d4b0b4;
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
}
.auth-divisor::before, .auth-divisor::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #eedde0;
}

/* ── Erro ── */
.auth-erro {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #dc2626;
  margin-bottom: 14px;
  font-family: 'DM Sans', sans-serif;
}

/* ── Seletor de cores ── */
.auth-cor-grupo { margin-bottom: 18px; }
.auth-cor-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #9a7a7e;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-family: 'DM Sans', sans-serif;
}
.auth-cor-opcoes { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cor-pill {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  position: relative;
  flex-shrink: 0;
}
.cor-pill:hover { transform: scale(1.15); }
.cor-pill.selecionada { border-color: #2d1f21; transform: scale(1.1); }
.cor-custom {
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 18px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── Rodapé ── */
.auth-rodape {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 16px 0 8px;
  font-family: 'DM Sans', sans-serif;
  position: relative;
  z-index: 1;
}
.auth-rodape a { color: rgba(255,255,255,0.8); text-decoration: underline; }
.auth-rodape-card {
  font-size: 11px;
  color: #c8a0a5;
  text-align: center;
  margin-top: 16px;
  margin-bottom: 0;
  font-family: 'DM Sans', sans-serif;
}
.auth-rodape-card a { color: var(--cor-marca); }

/* ================= BANNER PWA INSTALL ================= */
#banner-install {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 99998;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: white;
  border-top: 1px solid #eedde0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.banner-install-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.banner-install-logo {
  font-size: 28px;
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--cor-marca);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-install-texto {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.banner-install-texto strong {
  font-size: 13px;
  color: #2d1f21;
  font-weight: 600;
}
.banner-install-texto span {
  font-size: 11px;
  color: #9a7a7e;
  margin-top: 2px;
}
.banner-install-btn {
  background: var(--cor-marca);
  color: white;
  border: none;
  padding: 9px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.banner-install-fechar {
  background: none;
  border: none;
  color: #c8a0a5;
  font-size: 16px;
  padding: 4px 8px;
  flex-shrink: 0;
}
/* Empurra o conteúdo do app para baixo quando o banner offline aparece */
/* Só ativa quando o banner está visível (transform: translateY(0)) */
#banner-offline[style*="translateY(0)"] ~ #tela-app .conteudo,
#banner-offline[style*="translateY(0)"] ~ #tela-app .sidebar {
  margin-top: 44px;
  transition: margin-top 0.3s ease;
}
 
/* Indicador de status no menu lateral (bolinha verde/cinza) */
.status-dot-online  { display:inline-block; width:7px; height:7px; border-radius:50%; background:#10b981; margin-left:6px; }
.status-dot-offline { display:inline-block; width:7px; height:7px; border-radius:50%; background:#9ca3af; margin-left:6px; }
