/* =============================================================================
   RENOVAR PHP — estilos espelhados do React (layout.css + componentes)
   ============================================================================= */

/* --- Home SBT --- */
.page-home { font-family: "Open Sans", system-ui, sans-serif; background: #f3f4f6; color: #1f2937; min-height: 100vh; }

/* Cabeçalho home — isolado do layout.css do funil gov.br */
.home-header {
  display: block;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0, 60, 160, .22);
  background: #fff;
}
.home-header__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: linear-gradient(180deg, #1a7fff 0%, #0066f5 50%, #0058e6 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.home-header__logo {
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.home-header__title {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .03em;
  white-space: nowrap;
}
.home-header__nav {
  display: block;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  padding: 0 4px;
  text-align: center;
}
.home-header__link {
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 14px;
  display: inline-block;
  text-decoration: none;
}
.home-header__link:hover {
  color: #0066f5;
}
.page-home main {
  display: block;
  max-width: 896px;
  margin: 0 auto;
  padding: 24px 16px;
}

@media (max-width: 480px) {
  .home-header__brand {
    padding: 12px;
    gap: 8px;
  }
  .home-header__logo {
    height: 34px;
  }
  .home-header__title {
    font-size: 15px;
  }
  .home-header__link {
    padding: 10px 10px;
    font-size: 13px;
  }
}

.home-shares { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.home-share-btn { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 9999px; text-decoration: none; }
.home-share-fb { background: #1877F2; }
.home-share-tw { background: #1DA1F2; }
.home-share-wa { background: #25D366; }
.home-news { margin-top: 24px; background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: 24px; }
.home-news-title { font-size: 18px; font-weight: 700; color: #111827; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid #f3f4f6; }
.home-news-item { padding: 12px 8px; border-bottom: 1px solid #f3f4f6; }
.home-news-h { font-weight: 600; color: #111827; font-size: 14px; line-height: 1.4; text-decoration: none; display: block; }
.home-news-p { font-size: 12px; color: #6b7280; margin-top: 4px; }
.home-cta-wrap {
  text-align: center;
  padding: 8px 0 4px;
}
.home-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  padding: 16px 28px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: linear-gradient(180deg, #2b8cff 0%, #0066f5 55%, #0052d4 100%);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 4px 14px rgba(0, 102, 245, .35),
    0 1px 0 rgba(255, 255, 255, .15) inset;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.home-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .16);
  font-size: 14px;
  flex-shrink: 0;
}
.home-cta__text {
  flex: 1;
  text-align: center;
}
.home-cta__arrow {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  opacity: .9;
  transition: transform .15s ease;
}
.home-cta:hover {
  color: #fff;
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow:
    0 8px 22px rgba(0, 102, 245, .4),
    0 1px 0 rgba(255, 255, 255, .2) inset;
}
.home-cta:hover .home-cta__arrow {
  transform: translateX(3px);
}
.home-cta:active {
  transform: translateY(0);
  filter: brightness(.98);
  box-shadow: 0 3px 10px rgba(0, 102, 245, .3);
}
.home-cta:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 3px;
}
.home-cta__note {
  font-size: 12px;
  color: #9ca3af;
  margin: 14px 0 0;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .home-cta {
    max-width: none;
    padding: 15px 20px;
    font-size: 15px;
  }
}

/* --- Gov.br fluxo --- */
.page-gov { min-height: 100vh; background: linear-gradient(to bottom, #f9fafb, #fff); }
.gov-header {
  background: #fff;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #E5E5E5;
  flex-shrink: 0;
}
.gov-header-chat { border-bottom: none; box-shadow: none; }
.gov-header-left,
.gov-header-right {
  display: flex;
  align-items: center;
  gap: 0;
}
.gov-header-logo {
  display: block;
  width: 70px;
  height: 24px;
  margin-right: 32px;
  object-fit: contain;
  object-position: left center;
}
.gov-header-icon-btn {
  border: none;
  color: #1451B4;
  background: none;
  cursor: pointer;
  padding: 4px 0;
  margin-left: 24px;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gov-header-icon-btn:first-of-type { margin-left: 0; }
.gov-header-left .gov-header-icon-btn { margin-left: 0; }
.gov-header-divider {
  border-left: 1px solid #ccc;
  height: 24px;
  margin: 0 16px;
  flex-shrink: 0;
}
.gov-header-user-btn {
  background: #1451B4;
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 6px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-left: 24px;
  cursor: pointer;
  line-height: 1.25;
  max-width: 160px;
}
.gov-header-user-btn i { font-size: 16px; flex-shrink: 0; }
.gov-header-user-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gov-nav {
  background: #fff;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #E5E5E5;
}
.gov-nav-title-btn {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 300;
  color: #666;
}
.gov-nav-title-btn i { color: #1451B4; }
.gov-nav-chat {
  background: #f5f5f5;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  box-shadow: none;
  flex-shrink: 0;
}
.gov-nav-chat-label {
  color: #666;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 18px;
}
.gov-avatar-wrap { position: relative; margin-right: 0; flex-shrink: 0; }
.gov-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: block; }
.gov-avatar-online {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #fff;
}

/* --- Cards pagamento (React: bn/ci/Sn) --- */
.pay-shell { max-width: 36rem; margin: 0 auto; padding: 2rem 1rem; }
.pay-card { background: #fff; border-radius: 0.5rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); overflow: hidden; }
.pay-card-header { padding: 1.5rem 1.5rem 1rem; border-bottom: 1px solid #e5e7eb; }
.pay-card-title { font-size: 1.25rem; font-weight: 700; color: #111827; text-align: center; margin: 0; }
.pay-card-sub { text-align: center; color: #6b7280; margin: 0.5rem 0 0; font-size: 0.875rem; }
.pay-card-body { padding: 1.5rem; }
.pay-detail-box { background: #f9fafb; padding: 1rem; border-radius: 0.5rem; margin-bottom: 1rem; }
.pay-detail-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; font-size: 0.875rem; }
.pay-detail-row:last-child { margin-bottom: 0; }
.pay-detail-label { color: #6b7280; }
.pay-detail-value { font-weight: 500; color: #111827; }
.pay-badge-wait { font-weight: 500; color: #ca8a04; background: #fef9c3; padding: 0.25rem 0.5rem; border-radius: 0.25rem; font-size: 0.875rem; }
.pay-alert-red { background: #dc2626; padding: 1rem; border-radius: 0.5rem; color: #fff; text-align: center; margin-bottom: 1rem; }
.pay-alert-red svg { width: 2.5rem; height: 2.5rem; margin-bottom: 0.75rem; }
.pay-alert-red p { font-size: 0.875rem; line-height: 1.5; margin: 0 0 0.5rem; }
.pay-timer-box { background: #fefce8; border: 1px solid #fef08a; border-radius: 0.5rem; padding: 1rem; text-align: center; margin-bottom: 1.5rem; }
.pay-timer-pill { display: inline-flex; align-items: center; gap: 0.5rem; background: #eab308; color: #fff; padding: 0.5rem 1rem; border-radius: 9999px; font-weight: 700; font-size: 1.25rem; margin-bottom: 0.5rem; }
.pay-amount { text-align: center; margin-bottom: 1.5rem; }
.pay-amount-value { font-size: 1.875rem; font-weight: 700; color: #16a34a; margin: 0; }
.pay-amount-label { color: #6b7280; margin: 0.25rem 0 0; font-size: 0.875rem; }
.pay-qr-wrap { text-align: center; margin-bottom: 1.5rem; }
.pay-qr-box { display: inline-block; background: #fff; padding: 1rem; border-radius: 0.5rem; border: 2px solid #e5e7eb; }
.pay-qr-box img { width: 12rem; height: 12rem; object-fit: contain; }
.pay-pix-code-label { font-size: 0.875rem; font-weight: 500; color: #374151; margin-bottom: 0.5rem; }
.pay-pix-code { padding: 0.75rem; background: #f9fafb; border-radius: 0.5rem; border: 1px solid #e5e7eb; font-family: ui-monospace, monospace; font-size: 0.875rem; word-break: break-all; max-height: 6rem; overflow-y: auto; margin-bottom: 0.75rem; }
.btn-pix-copy { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem; background: #1351B4; color: #fff; border: none; border-radius: 0.375rem; padding: 0.75rem 1rem; font-weight: 600; cursor: pointer; font-size: 1rem; }
.btn-pix-copy:hover { background: #0D3A8C; }
.btn-green-full { width: 100%; background: #16a34a; color: #fff; border: none; border-radius: 0.5rem; padding: 1.75rem 1rem; font-size: 1.125rem; font-weight: 600; cursor: pointer; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); }
.btn-green-full:hover { background: #15803d; }
.pay-waiting { text-align: center; color: #6b7280; font-size: 0.875rem; margin-top: 1rem; }
.pay-tax-list { background: #fff; padding: 1rem; border: 1px solid #e5e7eb; border-radius: 0.375rem; margin-bottom: 1.5rem; font-size: 0.875rem; color: #374151; }
.pay-tax-row { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.pay-tax-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1rem; border-top: 1px solid #e5e7eb; padding-top: 0.5rem; margin-top: 0.5rem; }
.pay-yellow-warn { background: #fefce8; border: 1px solid #fef08a; border-radius: 0.5rem; padding: 1rem; margin-bottom: 1rem; text-align: center; }
.pay-red-warn { display: flex; align-items: flex-start; gap: 0.5rem; background: #fef2f2; border: 1px solid #fecaca; border-radius: 0.5rem; padding: 1rem; margin-bottom: 1.5rem; font-size: 0.875rem; color: #991b1b; }
.pay-info-blue { background: #eff6ff; border: 1px solid #dbeafe; border-radius: 0.5rem; padding: 1rem; margin-bottom: 1.5rem; font-size: 0.875rem; color: #1e40af; }
.pay-info-blue ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.pay-loading { text-align: center; padding: 2rem; }
.pay-success-icon { width: 4rem; height: 4rem; background: #dcfce7; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; color: #16a34a; font-size: 2rem; }
.pay-status-box { background: #f9fafb; padding: 0.75rem; border-radius: 0.5rem; border: 1px solid #e5e7eb; text-align: center; margin-bottom: 1rem; }
.pay-tx-id { font-size: 0.75rem; color: #6b7280; text-align: center; margin-top: 0.5rem; }

/* --- Card genérico gov --- */
.card-page { background: #fff; border-radius: 0.5rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); padding: 2rem; overflow: hidden; }
.btn-primary { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem; background: #1351B4; color: #fff; border: none; border-radius: 0.375rem; padding: 0.75rem 1rem; font-weight: 600; cursor: pointer; font-size: 1rem; }
.btn-primary:hover { background: #0D3A8C; }
.btn-outline { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem; background: #fff; color: #1351B4; border: 1px solid #1351B4; border-radius: 0.375rem; padding: 0.75rem 1rem; font-weight: 600; cursor: pointer; }
.pix-box { padding: 0.75rem; background: #f9fafb; border-radius: 0.5rem; border: 1px solid #e5e7eb; font-family: ui-monospace, monospace; font-size: 0.75rem; word-break: break-all; max-height: 5rem; overflow-y: auto; margin-bottom: 0.75rem; }
.ticket-img { max-width: 100%; border-radius: 8px; margin: 16px auto; display: block; max-height: 200px; object-fit: cover; }
.ticket-warn-red { background: #fef2f2; border: 1px solid #fecaca; border-radius: 0.5rem; padding: 1rem; margin-bottom: 1.5rem; font-size: 0.875rem; color: #991b1b; }
.ticket-warn-red h4 { font-weight: 600; color: #991b1b; margin: 0 0 8px; text-align: center; }
.ticket-wait { background: #fefce8; border: 1px solid #fef08a; border-radius: 0.5rem; padding: 1rem; margin-bottom: 1.5rem; text-align: center; }
.ticket-wait-inner { display: flex; align-items: center; justify-content: center; gap: 0.75rem; color: #854d0e; font-weight: 500; }

/* --- Success / cadastro --- */
.success-icon-wrap { width: 5rem; height: 5rem; background: #dcfce7; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; color: #16a34a; font-size: 2.5rem; }
.success-title { font-size: 1.875rem; font-weight: 700; color: #16a34a; margin: 0 0 0.5rem; }
.success-sub { color: #6b7280; margin: 0; }
.done-steps { background: #eff6ff; border: 1px solid #dbeafe; border-radius: 0.5rem; padding: 1rem; margin-bottom: 1.5rem; font-size: 0.875rem; color: #1e40af; }
.done-steps h4 { font-weight: 600; margin: 0 0 0.5rem; }
.done-steps ul { margin: 0; padding-left: 1.25rem; }
.done-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.done-footer-note { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #e5e7eb; text-align: center; font-size: 0.75rem; color: #6b7280; }

/* --- Verificação --- */
.verif-option { display: flex; align-items: center; width: 100%; padding: 12px; margin-bottom: 8px; border-radius: 6px; cursor: pointer; background: #f9fafb; border: 2px solid transparent; transition: all .15s; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.verif-option:hover { background: #f3f4f6; }
.verif-option.selected { background: rgba(19,81,180,.1); border-color: #1351B4; }
.verif-option-text { flex: 1; margin: 0; cursor: pointer; line-height: 1.4; }
.verif-option.selected .verif-option-text { color: #1351B4; font-weight: 500; }
.verif-option:focus { outline: none; box-shadow: 0 0 0 2px rgba(19,81,180,.25); }
.verif-step-num { width: 24px; height: 24px; border-radius: 50%; background: #1351B4; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.verif-input { width: 100%; padding: 12px 16px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 16px; }
.verif-input:focus { outline: none; border-color: #1351B4; box-shadow: 0 0 0 2px rgba(19,81,180,.2); }
.email-hint-item { padding: 10px 12px; cursor: pointer; font-size: 1rem; }
.email-hint-item:hover { background: #f3f4f6; }
.email-hints { border: 1px solid #e5e7eb; border-radius: 6px; margin-top: 4px; background: #fff; box-shadow: 0 4px 6px rgba(0,0,0,.1); }

/* --- Verify availability --- */
.va-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.va-grid .full { grid-column: span 2; }
.va-label { display: block; font-size: 0.875rem; font-weight: 500; color: #374151; margin-bottom: 0.25rem; }
.va-input { width: 100%; padding: 0.5rem 0.75rem; background: #fff; border: 1px solid #d1d5db; border-radius: 0.375rem; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.va-approved { background: #f0fdf4; border-radius: 0.5rem; padding: 1.25rem; margin-bottom: 1.5rem; text-align: center; }
.va-approved h4 { color: #166534; font-weight: 600; margin: 0 0 0.75rem; }
.va-approved p { font-size: 0.875rem; color: #15803d; line-height: 1.6; margin: 0; }
.detran-row { display: flex; justify-content: space-between; align-items: center; padding: 12px; border: 1px solid #d1d5db; margin-bottom: 8px; border-radius: 4px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: all .15s; }
.detran-row:hover { box-shadow: 0 4px 6px rgba(0,0,0,.1); border-color: #1351B4; }
.detran-name { font-weight: 500; color: #1f2937; display: block; }
.detran-vagas { display: inline-block; font-size: 13px; color: #1351B4; background: rgba(19,81,180,.1); padding: 2px 8px; border-radius: 4px; margin-top: 4px; font-weight: 600; }
.detran-btn { background: #1351B4; color: #fff; border: none; padding: 8px 20px; cursor: pointer; border-radius: 4px; font-size: 0.875rem; font-weight: 500; white-space: nowrap; }
.detran-logo { height: 32px; max-width: 80px; object-fit: contain; flex-shrink: 0; }
.analysis-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-weight: 500; }
.analysis-row.dim { opacity: .4; }
.analysis-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #e5e7eb; display: inline-block; flex-shrink: 0; }

/* --- Saiba mais (React EE) --- */
.slide-page-container { max-width: none; width: 100%; }
.slide-main { width: 100%; max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; }
.slide-shell { width: 100%; }
.slide-wrap { text-align: center; max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; }
.slide-header { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin-bottom: 1rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.slide-num { width: 24px; height: 24px; min-width: 24px; border-radius: 50%; background: #1351B4; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; }
.slide-title { font-weight: 600; font-size: 1rem; margin: 0; color: #1f2937; text-align: left; }
.slide-stage { display: flex; flex-direction: column; align-items: center; gap: 0; }
.slide-image { width: 100%; max-width: 380px; height: auto; max-height: 400px; object-fit: contain; border-radius: 10px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); margin-bottom: 1rem; }
.slide-content-box { background: #f9fafb; padding: 2rem; border-radius: 6px; width: 100%; max-width: 380px; margin: 0 auto 1.5rem; text-align: left; }
.slide-content-text { color: #374151; line-height: 1.625; font-size: 1rem; margin: 0; }
.slide-actions { display: flex; justify-content: center; margin-top: 1.5rem; }
.slide-btn { min-width: 160px; }
@media (min-width: 768px) {
  .slide-image { max-width: 480px; }
  .slide-content-box { max-width: 480px; }
  .slide-header { max-width: 480px; }
}

/* --- Chat (React OE) --- */
.chat-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f9fafb;
}
/* layout.css define main/header genéricos — isolar a página de chat */
.chat-page header.gov-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-shrink: 0;
}
.chat-page main.chat-main {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background: #f9fafb;
}
.chat-main { flex: 1; overflow: hidden; background: #f9fafb; min-height: 0; }
.chat-scroll {
  max-width: 56rem;
  margin: 0 auto;
  height: calc(100vh - 7.25rem);
  min-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 1rem 2rem;
  scroll-behavior: smooth;
  box-sizing: border-box;
}
#chat-pix-anchor, #chat-renach-anchor, #chat-post-renach, #chat-payment-anchor { width: 100%; }
#chat-post-renach .chat-msg-wrap { margin-bottom: 1rem; }
.chat-msg-wrap { margin-bottom: 1rem; }
.chat-msg-wrap.in { text-align: left; }
.chat-msg-wrap.out { text-align: right; }
.chat-bubble { display: inline-block; max-width: 80%; padding: 1rem; border-radius: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,.05); font-size: 16px; line-height: 1.5; white-space: pre-line; }
.chat-bubble.in { background: #2670CC; color: #fff; border-top-left-radius: 0.25rem; }
.chat-bubble.out { background: #e5e7eb; color: #1f2937; border-top-right-radius: 0.25rem; }
.chat-typing-bubble { display: inline-block; background: #2670CC; color: #fff; padding: 0.75rem 1rem; border-radius: 1rem; border-top-left-radius: 0.25rem; }
.chat-typing-dots { display: flex; align-items: center; gap: 6px; }
.chat-typing-dots span { width: 8px; height: 8px; background: #fff; border-radius: 50%; animation: chat-bounce 1s infinite; }
.chat-typing-dots span:nth-child(2) { animation-delay: 150ms; }
.chat-typing-dots span:nth-child(3) { animation-delay: 300ms; }
@keyframes chat-bounce { 0%, 100% { transform: translateY(-25%); } 50% { transform: none; } }
.chat-actions { display: none; flex-direction: column; gap: 12px; max-width: 80%; margin-top: 8px; padding: 0 1rem 1rem; }
.chat-actions.visible { display: flex; }
.chat-service-btn { display: flex; align-items: center; gap: 12px; padding: 16px; background: linear-gradient(to bottom, #f3f4f6, #fff); border: 1px solid #d1d5db; border-radius: 4px; box-shadow: 0 4px 6px rgba(0,0,0,.1); cursor: pointer; text-align: left; transition: all .15s; width: 100%; font-size: 1rem; }
.chat-service-btn:hover { box-shadow: 0 10px 15px rgba(0,0,0,.1); border-color: #1351B4; }
.chat-service-btn .icon { color: #1351B4; font-size: 1.25rem; font-weight: 700; min-width: 1.5rem; }
.chat-service-btn .label { font-weight: 500; color: #1f2937; }
.chat-service-btn .vagas { font-size: 0.75rem; color: #1351B4; font-weight: 600; }
.chat-month-btn { align-items: flex-start; }
.chat-proceed-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; background: #1351B4; color: #fff; border: none; border-radius: 4px; box-shadow: 0 4px 6px rgba(0,0,0,.1); cursor: pointer; font-weight: 500; font-size: 0.875rem; max-width: 80%; }
.chat-proceed-btn:hover { background: #0D3A8C; }
.chat-finalize-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; background: #1351B4; color: #fff; border: none; border-radius: 4px; box-shadow: 0 4px 6px rgba(0,0,0,.1); cursor: pointer; font-weight: 500; font-size: 1rem; width: 100%; max-width: 80%; }
.chat-finalize-btn:hover { background: #0D3A8C; }
.chat-emoji-icon { font-size: 1.25rem; line-height: 1; }
.chat-activate-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 80%; padding: 16px; background: #22c55e; color: #fff; border: none; border-radius: 4px; box-shadow: 0 4px 6px rgba(0,0,0,.1); cursor: pointer; font-weight: 500; font-size: 1rem; margin-top: 16px; }
.chat-activate-btn:hover { background: #16a34a; }
.chat-pay-actions { margin: 0 0 1rem; max-width: 100%; }
.chat-upload-section { margin-top: 16px; background: #fff; border: 1px solid #d1d5db; border-radius: 8px; padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.chat-upload-pick { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 16px; border: 2px dashed #d1d5db; border-radius: 8px; background: #fff; color: #4b5563; font-weight: 500; cursor: pointer; transition: all .15s; }
.chat-upload-pick:hover { border-color: #1351B4; background: #f9fafb; }
.chat-upload-pick i { font-size: 1.5rem; color: #6b7280; }

/* Guia de recolhimento (React OE pix_document) */
.chat-guia-wrap { width: 100%; margin: 1rem 0; }
.chat-guia-doc { background: #fff; border: 2px solid #d1d5db; box-shadow: 0 10px 15px rgba(0,0,0,.1); font-family: Arial, sans-serif; font-size: 14px; color: #1f2937; }
.chat-guia-head { padding: 1rem; border-bottom: 1px solid #d1d5db; text-align: center; }
.chat-guia-detran-logo { height: 4rem; max-width: 200px; object-fit: contain; margin: 0 auto 0.5rem; display: block; }
.chat-guia-title { font-size: 0.875rem; font-weight: 700; color: #1f2937; margin: 0; }
.chat-guia-subtitle { font-size: 0.75rem; color: #4b5563; margin: 4px 0 0; }
.chat-guia-block { padding: 1rem; border-bottom: 1px solid #d1d5db; }
.chat-guia-label { font-size: 0.75rem; color: #6b7280; margin: 0; }
.chat-guia-value { font-weight: 600; color: #1f2937; margin: 2px 0 0; font-size: 0.875rem; }
.chat-guia-value-lg { font-weight: 700; }
.chat-guia-exercicio { background: #f9fafb; text-align: center; }
.chat-guia-exercicio-val { font-size: 1.125rem; font-weight: 700; margin: 4px 0 0; }
.chat-guia-triple { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; font-size: 0.875rem; }
.chat-guia-disc-head { display: flex; justify-content: space-between; background: #1351B4; color: #fff; padding: 0.5rem; margin-bottom: 0.5rem; font-size: 0.75rem; font-weight: 700; }
.chat-guia-disc-row { display: flex; justify-content: space-between; padding: 0.25rem 0; border-bottom: 1px solid #e5e7eb; font-size: 0.875rem; color: #374151; }
.chat-guia-disc-row strong { font-weight: 600; }
.chat-guia-disc-total { display: flex; justify-content: space-between; padding: 0.5rem; background: #f3f4f6; font-weight: 700; margin-top: 0.25rem; }
.chat-guia-obs { padding: 1rem; border-bottom: 1px solid #d1d5db; background: #fef2f2; }
.chat-guia-obs-title { font-size: 0.875rem; color: #dc2626; font-weight: 700; margin: 0 0 0.5rem; }
.chat-guia-obs-text { font-size: 0.875rem; color: #dc2626; margin: 0; line-height: 1.5; }
.chat-guia-emitted { padding: 1rem; font-size: 0.75rem; color: #6b7280; border-bottom: 1px solid #d1d5db; }
.chat-guia-pix-panel { background: #f3f4f6; padding: 1rem; border-top: 2px dashed #9ca3af; }
.chat-guia-pix-head { text-align: center; margin-bottom: 0.75rem; }
.chat-guia-pix-title { font-weight: 700; font-size: 0.875rem; color: #1351B4; margin: 0; }
.chat-guia-pix-sub { font-size: 0.75rem; color: #6b7280; margin: 4px 0 0; }
.chat-guia-qr-wrap { background: #fff; padding: 0.75rem; border: 1px solid #d1d5db; border-radius: 4px; margin-bottom: 0.75rem; text-align: center; }
.chat-guia-qr-img { width: 12rem; height: 12rem; object-fit: contain; display: block; margin: 0.5rem auto 0; }
.chat-guia-code-wrap { background: #fff; padding: 0.75rem; border: 1px solid #d1d5db; border-radius: 4px; margin-bottom: 0.75rem; }
.chat-guia-code-text { font-size: 0.75rem; word-break: break-all; font-family: ui-monospace, monospace; background: #f9fafb; padding: 0.5rem; border-radius: 4px; border: 1px solid #e5e7eb; margin: 4px 0 0; line-height: 1.4; }
.chat-guia-copy-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 1rem; background: #1351B4; color: #fff; border: none; border-radius: 6px; box-shadow: 0 4px 6px rgba(0,0,0,.1); cursor: pointer; font-weight: 500; font-size: 1rem; }
.chat-guia-copy-btn:hover { background: #0D3A8C; }
.chat-guia-pay-footer { display: flex; justify-content: space-between; margin-top: 0.75rem; font-size: 0.875rem; }
.chat-guia-pay-right { text-align: right; }
.chat-guia-footer-val { font-weight: 700; margin: 2px 0 0; }
.chat-guia-pay-amount { font-weight: 700; font-size: 1.125rem; margin: 2px 0 0; }
.chat-guia-wait { margin-top: 1rem; padding-top: 1rem; border-top: 2px dashed #9ca3af; background: #fefce8; border: 1px solid #fde047; border-radius: 8px; padding: 0.75rem; text-align: center; }
.chat-guia-wait-head { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 0.25rem; }
.chat-guia-wait-label { color: #854d0e; font-weight: 600; font-size: 0.875rem; }
.chat-guia-wait-dots { display: flex; gap: 4px; }
.chat-guia-wait-dots span { width: 8px; height: 8px; background: #eab308; border-radius: 50%; animation: chat-pulse 1s infinite; }
.chat-guia-wait-dots span:nth-child(2) { animation-delay: 150ms; }
.chat-guia-wait-dots span:nth-child(3) { animation-delay: 300ms; }
@keyframes chat-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.chat-guia-wait-timer { font-size: 0.75rem; color: #a16207; margin: 0; }
.chat-guia-wait-timer strong { color: #713f12; }

.chat-upload-btn { display: block; width: 100%; margin-top: 8px; padding: 10px; background: transparent; border: 1px dashed #d1d5db; color: #4b5563; border-radius: 4px; cursor: pointer; font-size: 0.875rem; }
.xs { font-size: 0.65rem; color: #6b7280; }

/* --- Cadastro concluído --- */
.done-protocol { background: #1351B4; color: #fff; padding: 1.5rem; border-radius: 0.5rem; text-align: center; margin-bottom: 1.5rem; }
.done-protocol-num { font-size: 1.5rem; font-family: ui-monospace, monospace; font-weight: 700; letter-spacing: 0.05em; margin: 0.5rem 0 0; }
.done-data-box { background: #f9fafb; padding: 1.5rem; border-radius: 0.5rem; margin-bottom: 1.5rem; }
.done-data-row { display: flex; justify-content: space-between; border-bottom: 1px solid #e5e7eb; padding: 0.5rem 0; font-size: 0.875rem; }
.done-data-row:last-child { border-bottom: none; }

/* --- CPF link page --- */
.cpf-shell { max-width: 32rem; margin: 0 auto; padding: 1rem; }
.cpf-guia { background: #fff; border: 2px solid #d1d5db; box-shadow: 0 4px 6px rgba(0,0,0,.1); }
.cpf-guia-header { padding: 1rem; border-bottom: 1px solid #d1d5db; text-align: center; }
.cpf-wait-bar { background: #2670CC; color: #fff; padding: 1rem; border-radius: 0.5rem; margin-top: 1rem; font-size: 0.875rem; }

/* --- Chat: grade de meses (React month_selection) --- */
.chat-month-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 100%; margin-top: 8px; }
@media (min-width: 640px) { .chat-month-grid { grid-template-columns: repeat(3, 1fr); } }
.chat-month-cell { display: flex; flex-direction: column; align-items: center; padding: 12px; background: linear-gradient(to bottom, #f3f4f6, #fff); border: 1px solid #d1d5db; border-radius: 4px; box-shadow: 0 4px 6px rgba(0,0,0,.1); cursor: pointer; transition: all .15s; font-size: 0.875rem; }
.chat-month-cell:hover { box-shadow: 0 10px 15px rgba(0,0,0,.1); border-color: #1351B4; }
.chat-month-cell .month-label { font-weight: 500; color: #1f2937; }
.chat-month-cell .month-vagas { font-size: 0.75rem; color: #1351B4; font-weight: 600; margin-top: 4px; }

/* --- Chat: RENACH --- */
.chat-renach { background: #fff; border: 1px solid #d1d5db; border-radius: 4px; box-shadow: 0 4px 6px rgba(0,0,0,.1); margin: 1rem 0; font-family: Arial, sans-serif; font-size: 12px; }
.chat-renach-head { background: #f9fafb; padding: 8px 12px; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; }
.chat-renach-head img { height: 32px; max-width: 100px; object-fit: contain; }
.chat-renach-body { padding: 12px; }
.chat-renach-title { text-align: center; font-weight: 700; font-size: 12px; color: #374151; margin-bottom: 8px; }
.chat-renach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.chat-renach-grid .lbl { color: #9ca3af; font-size: 10px; margin: 0; }
.chat-renach-grid .val { font-weight: 600; color: #1f2937; font-size: 12px; margin: 0; }
.chat-renach-blue { background: #eff6ff; padding: 8px; border-radius: 4px; margin-bottom: 8px; }
.chat-renach-blue .val-blue { font-weight: 700; color: #1351B4; font-size: 14px; }
.chat-renach-foot { border-top: 1px solid #e5e7eb; padding-top: 8px; font-size: 10px; color: #9ca3af; }

/* --- Chat: painéis de status --- */
.chat-status-panel { display: flex; justify-content: center; margin: 1.5rem 0; }
.chat-status-inner { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 1rem; display: flex; align-items: center; gap: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.05); color: #374151; font-size: 0.875rem; }
.chat-status-inner i { color: #1351B4; }

/* --- Verificação (espelha Tailwind do React g3) --- */
.verif-card { width: 100%; align-items: flex-start; padding: 2rem; }
.verif-title-main { width: 100%; text-align: center; font-weight: 700; font-size: 1.125rem; margin-bottom: 1.5rem; }
.verif-step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
.verif-step-label { font-weight: 600; font-size: 1rem; margin: 0; }

/* --- Verify availability aprovado --- */
.va-approved-body { font-size: 0.875rem; color: #15803d; line-height: 1.6; text-align: left; margin-top: 0.75rem; }
.va-approved-body p { margin: 0.5rem 0; }

@media (max-width: 640px) {
  .va-grid { grid-template-columns: 1fr; }
  .va-grid .full { grid-column: span 1; }
  .detran-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .detran-btn { width: 100%; }
}
