/* ===========================
   Perdeu Achou — Componentes
   =========================== */

/* ========================
   BOTÕES
   ======================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  box-shadow: 0 6px 16px rgba(18,48,95,0.14);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover:not(:disabled) {
  background: var(--success-dark);
  box-shadow: 0 6px 16px rgba(22,163,74,0.14);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover:not(:disabled) {
  background: var(--danger-dark);
  box-shadow: 0 6px 16px rgba(220,38,38,0.14);
}

.btn-warning {
  background: var(--warning);
  color: white;
}

.btn-warning:hover:not(:disabled) {
  background: var(--warning-dark);
  box-shadow: 0 6px 16px rgba(217,119,6,0.14);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover:not(:disabled) {
  background: var(--primary);
  color: white;
}

.btn-outline-white {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline-white:hover:not(:disabled) {
  background: white;
  color: var(--primary);
}

.btn-neutral {
  background: var(--neutral);
  color: white;
}

.btn-neutral:hover:not(:disabled) {
  background: var(--neutral-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: none;
}

.btn-ghost:hover:not(:disabled) {
  background: #EFF6FF;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

/* ========================
   CARDS
   ======================== */

 .card {
  background: white;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(18,48,95,0.10);
  padding: 2.2rem 1.7rem;
  transition: box-shadow 0.2s, transform 0.2s;
 }

.card:hover {
  box-shadow: 0 16px 40px rgba(18,48,95,0.16);
  transform: translateY(-2px) scale(1.01);
}

.card-sm {
  padding: 1rem;
}

.card-lg {
  padding: 2rem;
}

/* Card de documento */
.card-doc {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-doc:hover {
  transform: none;
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}

.card-doc-img {
  position: relative;
  width: 100%;
  height: 180px;
  background: #F3F4F6;
  overflow: hidden;
}

.card-doc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-doc-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.15);
}

.card-doc-watermark span {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-30deg);
  padding: 4px 12px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 4px;
  white-space: nowrap;
}

.card-doc-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card-doc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.card-doc-meta {
  font-size: 0.85rem;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-doc-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.card-doc-footer .badge {
  white-space: normal;
  line-height: 1.2;
  text-align: center;
  max-width: 100%;
}

.card-doc-footer .btn {
  margin-left: auto;
}

/* Cards de estatística */
 .stat-card {
  background: white;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(18,48,95,0.10);
  padding: 2.2rem 1.7rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
 }

.stat-card:hover {
  box-shadow: 0 16px 40px rgba(18,48,95,0.16);
  transform: translateY(-2px) scale(1.01);
}

.stat-card .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 0.95rem;
  color: var(--text-gray);
  margin-top: 0.4rem;
}

/* Cards de resumo do admin */
.summary-card {
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.summary-card .summary-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
  color: white;
  background: rgba(255,255,255,0.25);
}

.summary-card.card-blue   { background: linear-gradient(135deg,#2563EB,#1D4ED8); }
.summary-card.card-green  { background: linear-gradient(135deg,#059669,#047857); }
.summary-card.card-yellow { background: linear-gradient(135deg,#D97706,#B45309); }
.summary-card.card-red    { background: linear-gradient(135deg,#DC2626,#B91C1C); }
.summary-card.card-purple { background: linear-gradient(135deg,#7C3AED,#6D28D9); }
.summary-card:not([class*="card-"]) { background: white; }

.summary-card .summary-icon.red { background: rgba(255,255,255,0.25); color:white; }
.summary-card .summary-icon.yellow { background: rgba(255,255,255,0.25); color:white; }
.summary-card .summary-icon.green { background: rgba(255,255,255,0.25); color:white; }
.summary-card .summary-icon.blue { background: rgba(255,255,255,0.25); color:white; }

.summary-card .summary-info h3 {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  color: white;
}

.summary-card .summary-info p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  margin-top: 0.2rem;
}
.summary-card:not([class*="card-"]) .summary-info p { color: var(--text-gray); }
.summary-card:not([class*="card-"]) .summary-info h3 { color: var(--text-dark); }

/* ========================
   BADGES DE STATUS
   ======================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-pendente {
  background: #E5E7EB;
  color: #374151;
}

.badge-publicado {
  background: #DBEAFE;
  color: #1D4ED8;
}

.badge-aguardando {
  background: #FEF3C7;
  color: #D97706;
}

.badge-disponivel {
  background: #EDE9FE;
  color: #5B21B6;
}

.badge-entregue {
  background: #DCFCE7;
  color: #166534;
}

.badge-rejeitado {
  background: #FEE2E2;
  color: #991B1B;
}

/* Badges de risco */
.badge-risco-alto {
  background: #FEE2E2;
  color: #991B1B;
}

.badge-risco-medio {
  background: #FEF3C7;
  color: #92400E;
}

.badge-risco-baixo {
  background: #DCFCE7;
  color: #166534;
}

/* ========================
   FORMULÁRIOS
   ======================== */

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text-dark);
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-input::placeholder {
  color: #9CA3AF;
}

.form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text-dark);
  background: white;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-gray);
  margin-top: 0.3rem;
}

.form-error {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 0.3rem;
}

/* Search bar */
.search-bar {
  display: flex;
  gap: 0;
  box-shadow: var(--shadow);
  border-radius: 12px;
  overflow: hidden;
}

.search-bar input {
  flex: 1;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: 12px 0 0 12px;
  font-size: 1rem;
  font-family: inherit;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
}

.search-bar button {
  padding: 14px 22px;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0 12px 12px 0;
  transition: background 0.2s;
  white-space: nowrap;
}

.search-bar button:hover {
  background: var(--primary-dark);
}

@media (max-width: 768px) {
  .search-bar {
    flex-direction: column;
    border-radius: 12px;
    overflow: visible;
  }

  .search-bar input {
    border-right: 1.5px solid var(--border);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    width: 100%;
  }

  .search-bar button {
    border-radius: 0 0 12px 12px;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .search-bar input {
    font-size: 0.9rem;
    padding: 12px 14px;
  }

  .search-bar button {
    padding: 12px 14px;
    font-size: 0.9rem;
  }
}

/* ========================
   ALERTAS
   ======================== */

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin: 1rem 0;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.alert-success {
  background: #DCFCE7;
  color: #166534;
  border-left: 4px solid var(--success);
}

.alert-danger {
  background: #FEE2E2;
  color: #991B1B;
  border-left: 4px solid var(--danger);
}

.alert-warning {
  background: #FEF3C7;
  color: #92400E;
  border-left: 4px solid var(--warning);
}

.alert-info {
  background: #DBEAFE;
  color: #1E40AF;
  border-left: 4px solid var(--primary);
}

/* ========================
   PASSOS (STEPS)
   ======================== */

.steps-indicator {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.step-item {
  display: flex;
  align-items: center;
  flex: 1;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid var(--border);
  background: white;
  color: var(--neutral);
  flex-shrink: 0;
  transition: all 0.3s;
}

.step-circle.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.step-circle.done {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.step-label {
  margin-left: 0.5rem;
  font-size: 0.9rem;
  color: var(--neutral);
  font-weight: 500;
  white-space: nowrap;
}

.step-label.active {
  color: var(--primary);
  font-weight: 700;
}

.step-label.done {
  color: var(--success);
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 0.5rem;
  transition: background 0.3s;
}

.step-line.done {
  background: var(--success);
}

/* ========================
   MÉTODOS DE PAGAMENTO
   ======================== */

.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.payment-method-btn {
  padding: 1.25rem;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.payment-method-btn:hover {
  border-color: var(--primary);
  background: #EFF6FF;
}

.payment-method-btn.selected {
  border-color: var(--primary);
  background: #DBEAFE;
}

.payment-method-btn .pm-icon {
  font-size: 2rem;
}

.payment-method-btn .pm-name {
  font-weight: 700;
  font-size: 1rem;
}

.payment-method-btn .pm-desc {
  font-size: 0.8rem;
  color: var(--text-gray);
}

/* Multicaixa — azul */
.payment-method-btn.multicaixa.selected {
  border-color: #1D4ED8;
  background: #DBEAFE;
}

/* Unitel — laranja */
.payment-method-btn.unitel.selected {
  border-color: #D97706;
  background: #FEF3C7;
}

/* ========================
   CARD DE CÓDIGO DE RESGATE
   ======================== */

.rescue-code-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  padding: 2rem;
  text-align: center;
  border-top: 4px solid var(--success);
}

.rescue-code {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  color: var(--primary);
  background: #EFF6FF;
  padding: 0.5rem 1.5rem;
  border-radius: 12px;
  border: 2px dashed var(--primary);
  margin: 1rem 0;
  font-family: 'Courier New', monospace;
}

/* ========================
   MAPA PLACEHOLDER
   ======================== */

.map-placeholder {
  width: 100%;
  height: 220px;
  background: #F3F4F6;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-gray);
  border: 2px dashed var(--border);
}

.map-placeholder .map-icon {
  font-size: 3rem;
}

.map-placeholder p {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ========================
   FILTROS
   ======================== */

.filter-bar {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 1.25rem;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.filter-bar .form-group {
  margin-bottom: 0;
  flex: 1;
  min-width: 160px;
}

/* Tabs de filtro rápido */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filter-tab {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: white;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-gray);
  transition: all 0.15s;
}

.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ========================
   ESTADO VAZIO
   ======================== */

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-gray);
}

.empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.empty-state p {
  margin-bottom: 1.5rem;
}

/* ========================
   RESPONSIVIDADE COMPONENTES
   ======================== */

@media (max-width: 768px) {
  .payment-methods {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .steps-indicator {
    overflow-x: auto;
  }
}

/* ===========================
   AUTH PAGES
   =========================== */

/*
 * IMPORTANTE — Fix de scroll no Android:
 * align-items: center num flex container com min-height: 100vh
 * bloqueia o scroll quando o conteúdo é mais alto que o viewport.
 * Solução: usar align-items: flex-start sempre, e centrar apenas
 * em viewports com altura suficiente (via media query).
 */
/* Mobile: centrado na página */
.auth-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #1E40AF 0%, #16A34A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

/* Desktop: card no lado esquerdo, centrado verticalmente */
@media (min-width: 768px) {
  .auth-body {
    align-items: center;
    justify-content: flex-start;
    padding-left: 6vw;
  }
}

.auth-container {
  width: 100%;
  max-width: 440px;
}

.auth-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 18px 36px rgba(15,23,42,0.08);
}

/* Logo e título centralizados dentro do card */
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.auth-logo-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #12305f;
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.auth-logo-text { font-size: 1.8rem; font-weight: 800; color: var(--primary); }

.auth-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

/* Tabs */
.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: var(--bg-light);
  padding: 4px;
  border-radius: 10px;
}

.auth-tab {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-gray);
  transition: all 0.2s;
}

.auth-tab.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Input password wrap */
.input-password-wrap {
  position: relative;
}

.input-password-wrap .form-input {
  padding-right: 45px;
}

.btn-toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 6px 8px;
  color: var(--text-gray);
}

/* Alerts */
.alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.alert-danger {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

.alert-success {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
}

/* Divisor */
.auth-divider {
  text-align: center;
  margin: 1.2rem 0;
  position: relative;
  color: var(--text-gray);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--border);
}

.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

.auth-switch {
  text-align: center;
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.auth-back {
  text-align: center;
  margin-top: 0.5rem;
}

.auth-back a {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.auth-back a:hover {
  color: var(--primary);
}

.auth-sucesso {
  text-align: center;
  padding: 1rem 0;
}

.auth-sucesso h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 0.5rem;
}

.auth-sucesso p {
  color: var(--text-gray);
  margin-bottom: 0.5rem;
}

/* Força da senha */
.forca-senha {
  height: 4px;
  border-radius: 2px;
  margin-top: 6px;
  transition: background 0.3s, width 0.3s;
}

/* Checkbox label */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-dark);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

/* Link primário */
.link-primary {
  color: var(--primary);
  text-decoration: underline;
}

.link-danger {
  color: var(--danger);
}

/* Auth responsivo — reduzir padding no mobile pequeno */
@media (max-width: 480px) {
  .auth-card {
    padding: 1.75rem 1.25rem;
    border-radius: 12px;
  }

  .auth-body {
    padding: 1rem 0.75rem;
  }
}

/* ========================
   CAMERA ZONE
   ======================== */

.camera-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 2.5rem 1rem;
  text-align: center;
  background: var(--bg-light);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.camera-zone:hover {
  border-color: var(--primary);
  background: #EFF6FF;
}
.camera-zone .camera-icon,
.camera-zone > span.camera-icon { font-size: 3rem; margin-bottom: 0.5rem; display: block; }
.camera-zone .camera-label,
.camera-zone > span.camera-label { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); display: block; }
.camera-zone .camera-hint,
.camera-zone > span.camera-hint { font-size: 0.85rem; color: var(--text-gray); margin-top: 0.25rem; display: block; }

/* ========================
   HERO
   ======================== */
.hero-section {
  background: linear-gradient(135deg, #12305f 0%, #1e4a8a 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: white;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1rem; }
}

/* ========================
   STATS
   ======================== */
.stats-section {
  background: #12305f;
  padding: 3rem 0;
}

.stat-card-muted {
  background: rgba(255,255,255,0.07);
  border-radius: 12px;
}

.stat-number-light {
  color: white;
}

.stat-label-light {
  color: rgba(255,255,255,0.7);
}

/* ========================
   PARTNERS MARQUEE
   ======================== */
.cta-section {
  background: white;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.partners-marquee {
  overflow: hidden;
  position: relative;
  display: flex;
  gap: 0;
}

.partners-track {
  display: flex;
  gap: 2rem;
  align-items: center;
  animation: marquee 18s linear infinite;
  flex-shrink: 0;
}

.partners-track-b {
  animation-delay: -9s;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  background: var(--bg-light);
  border-radius: 8px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.partner-logo-image img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.partner-logo-image:hover img {
  opacity: 1;
  filter: grayscale(0);
}

/* ========================
   NAVBAR SEARCH (addições)
   ======================== */
.mobile-search {
  padding: 0.5rem 0;
}

/* ========================
   COMO FUNCIONA — process cards
   ======================== */
.card-process {
  padding: 1.5rem 1rem;
}

.process-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #EFF6FF;
  color: var(--primary);
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 auto 1rem;
}

.process-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.process-copy {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.6;
}

/* ========================
   ALERTAS — adições
   ======================== */
.alert-error {
  background: #FEF2F2;
  border-left: 4px solid var(--danger);
  color: #991B1B;
}

/* ========================
   UTILITÁRIO
   ======================== */
.hidden {
  display: none !important;
}

/* ========================
   FORMULÁRIOS — adições
   ======================== */
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  background: white;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--danger);
}

/* ========================
   MODAL
   ======================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  transform: scale(0.95);
  transition: transform 0.2s;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ========================
   PROGRESS BAR
   ======================== */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-light);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--primary);
  transition: width 0.5s ease;
}

/* ========================
   CHECKLIST
   ======================== */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.check-icon.success {
  background: #D1FAE5;
  color: var(--success);
}

.check-icon.danger {
  background: #FEE2E2;
  color: var(--danger);
}

/* ========================
   SUMMARY CARDS — adições
   ======================== */
.summary-icon.purple { background: #EDE9FE; color: #4C1D95; }

/* ========================
   TABLE
   ======================== */
.table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.table-wrapper th {
  background: var(--bg-light);
  padding: 10px 14px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-gray);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table-wrapper td {
  padding: 12px 14px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.table-wrapper tr:last-child td {
  border-bottom: none;
}

.table-wrapper tr:hover td {
  background: #FAFAFA;
}

/* ========================
   SPINNER
   ======================== */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ========================
   RESPONSIVE GRIDS
   ======================== */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ========================
   RECOMPENSAS RESPONSIVE
   ======================== */
@media (max-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr !important;
  }
  
  .modal {
    margin: 1rem;
    width: calc(100% - 2rem);
  }
}
