/* ==========================================================================
   PORTAL BASE CANÔNICO — DESIGN SYSTEM (FINTECH-GRADE DARK THEME)
   ========================================================================== */

:root {
  --bg-main: #090a0f;
  --bg-card: #121721;
  --bg-card-hover: #18202f;
  --bg-input: #0c1017;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #3b82f6;
  --border-emerald: rgba(16, 185, 129, 0.4);
  
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --emerald: #10b981;
  --emerald-hover: #059669;
  --emerald-glow: rgba(16, 185, 129, 0.2);
  --amber: #f59e0b;
  --rose: #ef4444;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px var(--border-subtle);
  --shadow-modal: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--border-subtle);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 10% 10%, rgba(59, 130, 246, 0.07) 0px, transparent 40%),
    radial-gradient(at 90% 90%, rgba(16, 185, 129, 0.05) 0px, transparent 40%);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header de Alta Disponibilidade */
.fintech-header {
  height: 72px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(9, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Container Principal */
.main-container {
  flex: 1;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Hero / Seção de Consulta */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--emerald), transparent);
}

.hero-header {
  text-align: center;
  margin-bottom: 28px;
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  background: linear-gradient(to right, #ffffff, #d1d5db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Formulário de Consulta */
.consulta-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 680px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.input-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.input-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.input-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 4px;
}

.input-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.badge-optional {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border-color: var(--border-subtle);
}

.badge-typing {
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.3);
}

.badge-valid {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald);
  border-color: rgba(16, 185, 129, 0.3);
}

.badge-invalid {
  background: rgba(239, 68, 68, 0.1);
  color: var(--rose);
  border-color: rgba(239, 68, 68, 0.3);
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-left {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fintech-input {
  width: 100%;
  height: 48px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 16px 0 44px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.04em;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  outline: none;
}

.fintech-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  background: #111622;
}

.fintech-input.input-valid {
  border-color: var(--emerald);
  box-shadow: 0 0 0 2px var(--emerald-glow);
}

.fintech-input.input-invalid {
  border-color: var(--rose);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.input-helper {
  font-size: 0.75rem;
  color: var(--text-dim);
  min-height: 18px;
}

.btn-submit-consulta {
  height: 52px;
  width: 100%;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-submit-consulta:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-submit-consulta:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit-consulta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

/* Área de Resultados (Veículo + Débitos) */
.results-section {
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.4s ease forwards;
}

.results-section.active {
  display: flex;
}

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

/* Cartão do Veículo */
.vehicle-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.card-header-clean {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Grid de Especificações do Veículo */
.vehicle-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
}

@media (max-width: 840px) {
  .vehicle-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .vehicle-specs-grid {
    grid-template-columns: 1fr;
  }
}

.spec-cell {
  background: var(--bg-card);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.spec-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tabela de Débitos Fintech */
.debits-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.debits-table-wrapper {
  overflow-x: auto;
  width: 100%;
}

.fintech-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.fintech-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.fintech-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-main);
}

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

.fintech-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.status-badge-open {
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-pay-single-pix {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
  border: 1px solid var(--border-emerald);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-pay-single-pix:hover {
  background: var(--emerald);
  color: #fff;
  box-shadow: 0 4px 12px var(--emerald-glow);
}

/* Barra de Ação de Pagamento Total */
.debits-action-bar {
  padding: 18px 20px;
  background: rgba(18, 23, 33, 0.95);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.total-summary {
  display: flex;
  flex-direction: column;
}

.total-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.total-value-highlight {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--emerald);
}

.btn-pay-total-pix {
  height: 46px;
  padding: 0 24px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.15s ease;
}

.btn-pay-total-pix:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ==========================================================================
   MODAIS PADRÃO DETRAN-ES (REFINADOS FINTECH DARK)
   ========================================================================== */

/* 1. Modal de Carregamento Assíncrono */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.loading-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  width: 100%;
  max-width: 440px;
  text-align: center;
  box-shadow: var(--shadow-modal);
  animation: lbEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.loading-spinner-circle {
  width: 54px;
  height: 54px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin-bottom: 20px;
}

.loading-timer {
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

.loading-message {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  min-height: 28px;
  margin-bottom: 6px;
  animation: msgFade 0.4s ease;
}

.loading-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.loading-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.loading-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--emerald));
  border-radius: var(--radius-full);
  width: 15%;
  animation: lbBarPulse 2.2s infinite ease-in-out;
}

.loading-bar-fill.determinate {
  animation: none !important;
  width: 100% !important;
  transition: width 0.3s ease;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes lbEnter { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes lbBarPulse { 0% { width: 5%; left: 0%; } 50% { width: 65%; left: 30%; } 100% { width: 5%; left: 95%; } }
@keyframes msgFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* 2. Modal de Pagamento PIX */
.pix-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-modal);
  animation: lbEnter 0.25s ease forwards;
  overflow: hidden;
}

.pix-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pix-header-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.btn-close-modal:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.pix-modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pix-instructions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.pix-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-content p:first-child {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.step-content p:last-child {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pix-qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 0;
}

.qr-code-box {
  background: #ffffff;
  padding: 12px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 200px;
}

.qr-code-box img, .qr-code-box canvas {
  display: block !important;
  max-width: 100%;
  height: auto;
}

.pix-amount-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pix-amount-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--emerald);
  margin-top: 2px;
}

.pix-copy-box {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: all;
}

.btn-copy-pix {
  height: 48px;
  width: 100%;
  background: var(--emerald);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px var(--emerald-glow);
  transition: all 0.15s ease;
}

.btn-copy-pix:hover {
  background: var(--emerald-hover);
  filter: brightness(1.05);
}

.btn-confirm-pix {
  height: 44px;
  width: 100%;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-confirm-pix:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

/* Balão Animado de Confirmação (Pix Copiado!) */
.pix-balloon {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--emerald);
  color: #ffffff;
  padding: 20px 40px;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 100000;
  pointer-events: none;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  animation: balloonFadeIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.pix-balloon.fade-out {
  animation: balloonFadeOut 0.25s ease-in forwards;
}

@keyframes balloonFadeIn {
  from { opacity: 0; transform: translate(-50%, -45%) scale(0.85); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes balloonFadeOut {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to { opacity: 0; transform: translate(-50%, -55%) scale(0.85); }
}

/* 3. Modal de Comprovante de Pagamento */
.receipt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-modal);
  animation: lbEnter 0.3s ease forwards;
  overflow: hidden;
}

.receipt-header {
  padding: 28px 24px 16px;
  text-align: center;
  background: rgba(16, 185, 129, 0.04);
  border-bottom: 1px solid var(--border-subtle);
}

.receipt-icon-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--emerald);
}

.receipt-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.receipt-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.receipt-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.receipt-data-coupon {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coupon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.coupon-row span {
  color: var(--text-muted);
}

.coupon-row strong {
  color: var(--text-main);
}

.coupon-divider {
  height: 1px;
  border-top: 1px dashed var(--border-subtle);
  margin: 4px 0;
}

.btn-receipt-action {
  height: 44px;
  width: 100%;
  background: var(--bg-card-hover);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.btn-receipt-action:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   SISTEMA DE TOASTS FLUTUANTES (SUBSTITUIÇÃO DE ALERT NATIVO)
   ========================================================================== */

#toastContainer {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.fintech-toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 380px;
  background: #141a26;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.25s ease;
}

.fintech-toast.toast-success {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #10261f 0%, #141a26 100%);
}

.fintech-toast.toast-error {
  border-color: rgba(239, 68, 68, 0.4);
  background: linear-gradient(135deg, #281418 0%, #141a26 100%);
}

.fintech-toast.toast-warning {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, #2a2012 0%, #141a26 100%);
}

.toast-icon {
  flex-shrink: 0;
  display: flex;
}

.toast-message {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(20px); }
}

/* Footer Limpo */
.fintech-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: auto;
}
