/* ============================================================
   MODAL STYLES UNIFIED - Layouts Corrigidos
   ============================================================ */

/* Reset para todos os contêineres de modais */
.footer-modal, 
#eggs-modal, 
#found-wallets-modal, 
#puzzlesListModal, 
#preset-progress-modal,
.footer-modal *, 
#eggs-modal *, 
#found-wallets-modal *, 
#puzzlesListModal *, 
#preset-progress-modal * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base para todos os modais principais */
.footer-modal, 
#eggs-modal, 
#found-wallets-modal, 
#puzzlesListModal {
  position: fixed;
  background: var(--bg-card, #ffffff);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color, #e5e7eb);
  z-index: 10000;
  font-family: inherit;
  max-height: 90vh;
  max-width: 95vw;
  width: auto;
  height: auto;
  min-width: 300px;
  min-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  resize: both;
}

/* Backdrop padrão */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  backdrop-filter: blur(4px);
}

/* ============================================================
   MODAL DE PUZZLES - Sistema de 3 Estados
   ============================================================ */

/* Estado 1: OCULTO */
#puzzlesListModal {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10001;
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
  color: white;
  border: none;
  box-shadow: -8px 0 35px rgba(59, 130, 246, 0.4), -4px 0 15px rgba(6, 182, 212, 0.2);
  max-width: 400px;
  width: 320px;
}

/* Estado 2: TICKET LATERAL */
#puzzlesListModal.ticket {
  display: block;
  opacity: 1;
  visibility: visible;
  border-radius: 50%;
  width: 72px;
  height: 72px;
  cursor: pointer;
  transform: translateY(-50%) translateX(0);
  transition: all 0.3s ease;
}

#puzzlesListModal.ticket:hover {
  box-shadow: -8px 0 35px rgba(59, 130, 246, 0.55), -4px 0 15px rgba(6, 182, 212, 0.3);
  transform: translateY(-50%) translateX(0) scale(1.05);
}

/* Estado 3: EXPANDIDO */
#puzzlesListModal.expanded {
  display: block;
  opacity: 1;
  visibility: visible;
  border-radius: 20px;
  width: 420px;
  max-width: 90vw;
  max-height: 85vh;
  cursor: default;
  transform: translateY(-50%) translateX(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#puzzlesListModal.expanded::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
  backdrop-filter: blur(4px);
}

/* Header do Modal */
.puzzles-modal-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  transition: all 0.3s ease;
}

#puzzlesListModal.ticket .puzzles-modal-header {
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-bottom: none;
}

#puzzlesListModal.expanded .puzzles-modal-header {
  border-radius: 20px 20px 0 0;
  cursor: default;
  border-bottom: 2px solid rgba(255, 152, 0, 0.25);
}

#puzzlesListModal.ticket .puzzles-modal-header:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
  transform: scale(1.05);
}

/* Título */
#puzzlesModalTitle {
  font-size: 1.3em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  margin: 0;
}

#puzzlesListModal.ticket #puzzlesModalTitle {
  font-size: 0;
}

#puzzlesListModal.expanded #puzzlesModalTitle {
  font-size: 1.3em;
}

/* Botões */
.puzzles-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  cursor: pointer;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 16px;
}

.puzzles-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

#puzzlesListModal.ticket .puzzles-collapse-btn {
  display: flex;
}

#puzzlesListModal.expanded .puzzles-collapse-btn {
  display: none;
}

#puzzlesListModal.ticket .puzzles-close-btn {
  display: none;
}

#puzzlesListModal.expanded .puzzles-close-btn {
  display: flex;
}

/* Ticket Content */
.ticket-content {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.ticket-icon {
  font-size: 28px;
  line-height: 1;
}

.ticket-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  opacity: 0.9;
}

#puzzlesListModal.expanded .ticket-content {
  display: none;
}

#puzzlesListModal.ticket .ticket-content {
  display: flex;
}

/* Corpo do Modal */
.puzzles-modal-body {
  padding: 25px;
  max-height: calc(85vh - 100px);
  overflow-y: auto;
  display: none;
}

#puzzlesListModal.expanded .puzzles-modal-body {
  display: block;
}

/* Count Badge */
.puzzle-count-badge {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 600;
  margin-left: 8px;
}

/* ============================================================
   MODAL DE EGGS HUNTER
   ============================================================ */

#eggs-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-card, #ffffff);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color, #e5e7eb);
  z-index: 10002;
  min-width: 400px;
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  overflow: hidden;
  display: none;
  resize: both;
}

/* Header padrão do Eggs Modal */
#eggs-modal .modal-header {
  padding: 25px;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border-radius: 20px 20px 0 0;
  flex-shrink: 0;
}

#eggs-modal .modal-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: bold;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Garantir que o botão X exista e seja visível */
#eggs-modal .modal-close-btn {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
  cursor: pointer;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 24px;
  font-weight: bold;
  flex-shrink: 0;
}

#eggs-modal .modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  transform: scale(1.05);
}

#eggs-modal .modal-body {
  padding: 25px;
  max-height: calc(90vh - 120px);
  overflow-y: auto;
  flex: 1;
  width: 100%;
}

#eggs-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  backdrop-filter: blur(4px);
  display: none;
}

/* ============================================================
   MODAL DE PROGRESSO
   ============================================================ */

#preset-progress-modal {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.3);
  border: 1px solid rgba(16, 185, 129, 0.2);
  z-index: 10003;
  min-width: 300px;
  max-width: 90vw;
  display: none;
}

#preset-progress-modal .progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

#preset-progress-modal .progress-header span {
  font-weight: 600;
  font-size: 14px;
}

#preset-progress-modal .progress-header button {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 20px;
  padding: 0;
  width: 24px;
  height: 24px;
  line-height: 1;
  border-radius: 50%;
  transition: background 0.2s ease;
}

#preset-progress-modal .progress-header button:hover {
  background: rgba(255, 255, 255, 0.2);
}

#preset-progress-modal .progress-info {
  margin-bottom: 12px;
  font-size: 12px;
  opacity: 0.9;
}

#preset-progress-modal .progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

#preset-progress-modal .progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #34d399 0%, #10b981 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

/* ============================================================
   MODAL DE CARTEIRAS ENCONTRADAS
   ============================================================ */

#found-wallets-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.95);
  color: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  z-index: 10004;
  min-width: 500px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#found-wallets-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#found-wallets-modal .modal-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 10px;
}

#found-wallets-modal .modal-header button {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  cursor: pointer;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 18px;
}

#found-wallets-modal .modal-header button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

#found-wallets-modal .wallet-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#found-wallets-modal .wallet-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

#found-wallets-modal .wallet-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

#found-wallets-modal .wallet-item h4 {
  margin: 0 0 8px 0;
  color: #fbbf24;
  font-size: 16px;
  font-weight: 600;
}

#found-wallets-modal .wallet-item p {
  margin: 4px 0;
  font-size: 13px;
  opacity: 0.9;
  word-break: break-all;
}

#found-wallets-modal .wallet-item .address {
  color: #60a5fa;
  font-family: 'Courier New', monospace;
}

#found-wallets-modal .wallet-item .wif {
  color: #34d399;
  font-family: 'Courier New', monospace;
}

#found-wallets-modal .wallet-item .puzzle {
  color: #f87171;
  font-weight: 600;
}

/* ============================================================
   GDPR BANNER
   ============================================================ */

#gdpr-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: white;
  padding: 20px;
  z-index: 10005;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.3);
}

#gdpr-consent-banner .banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

#gdpr-consent-banner .banner-text h2 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: white;
}

#gdpr-consent-banner .banner-text p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.5;
}

#gdpr-consent-banner .banner-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

#gdpr-consent-banner .btn-accept {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

#gdpr-consent-banner .btn-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

#gdpr-consent-banner .btn-reject {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#gdpr-consent-banner .btn-reject:hover {
  background: rgba(255, 255, 255, 0.1);
}

#gdpr-consent-banner #consent-close-banner {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 20px;
  padding: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

#gdpr-consent-banner #consent-close-banner:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

@media (max-width: 1024px) {
  #puzzlesListModal.ticket {
    width: 64px;
    height: 64px;
  }
  
  #puzzlesListModal.expanded {
    width: 92%;
    max-width: 650px;
  }
  
  #eggs-modal,
  #found-wallets-modal {
    min-width: 400px;
  }
}

@media (max-width: 768px) {
  #puzzlesListModal.ticket {
    width: 56px;
    height: 56px;
  }
  
  #puzzlesListModal.expanded {
    width: 95%;
    max-width: 95vw;
    max-height: 90vh;
  }
  
  #puzzlesListModal.expanded .puzzles-modal-header {
    padding: 15px;
  }
  
  #puzzlesListModal.expanded #puzzlesModalTitle {
    font-size: 1.15em;
  }
  
  #puzzlesListModal.expanded .puzzles-modal-body {
    padding: 15px;
    max-height: calc(90vh - 80px);
  }
  
  #eggs-modal,
  #found-wallets-modal {
    min-width: 300px;
    max-width: 95vw;
  }
  
  #eggs-modal .modal-header,
  #found-wallets-modal .modal-header {
    padding: 20px;
  }
  
  #eggs-modal .modal-header h2,
  #found-wallets-modal .modal-header h3 {
    font-size: 20px;
  }
  
  #eggs-modal .modal-body,
  #found-wallets-modal .modal-body {
    padding: 20px;
  }
  
  #preset-progress-modal {
    right: 10px;
    bottom: 10px;
    min-width: 250px;
  }
  
  #gdpr-consent-banner .banner-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  
  #gdpr-consent-banner .banner-actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  #puzzlesListModal.ticket {
    width: 48px;
    height: 48px;
  }
  
  #puzzlesListModal.expanded {
    width: 98%;
    max-height: 92vh;
  }
  
  #eggs-modal,
  #found-wallets-modal {
    min-width: 280px;
    max-width: 98vw;
  }
  
  #eggs-modal .modal-header,
  #found-wallets-modal .modal-header {
    padding: 15px;
  }
  
  #eggs-modal .modal-header h2,
  #found-wallets-modal .modal-header h3 {
    font-size: 18px;
  }
  
  #eggs-modal .modal-body,
  #found-wallets-modal .modal-body {
    padding: 15px;
  }
  
  #preset-progress-modal {
    right: 5px;
    bottom: 5px;
    min-width: 200px;
    padding: 15px;
  }
  
  #gdpr-consent-banner {
    padding: 15px;
  }
  
  #gdpr-consent-banner .banner-text h2 {
    font-size: 16px;
  }
  
  #gdpr-consent-banner .banner-text p {
    font-size: 13px;
  }
  
  #gdpr-consent-banner .banner-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  #gdpr-consent-banner .btn-accept,
  #gdpr-consent-banner .btn-reject {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   TEMA ESCURO
   ============================================================ */

[data-theme="dark"] #eggs-modal {
  background: #1f2937;
  border-color: #374151;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] #found-wallets-modal {
  background: rgba(17, 24, 39, 0.95);
  border-color: #374151;
}

[data-theme="dark"] #preset-progress-modal {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* ============================================================
   ANIMAÇÕES
   ============================================================ */

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

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

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

#eggs-modal,
#found-wallets-modal {
  animation: modalSlideIn 0.3s ease-out;
}

#preset-progress-modal {
  animation: modalSlideUp 0.3s ease-out;
}

.modal-backdrop {
  animation: modalFadeIn 0.2s ease-out;
}

/* ============================================================
   REDUÇÃO DE MOVIMENTO (ACESSIBILIDADE)
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  [id*="modal"],
  [id*="modal"] *,
  [id*="modal"] *::before,
  [id*="modal"] *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   MODAIS DO FOOTER - Páginas em Modal
   ============================================================ */

.footer-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-card, #ffffff);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color, #e5e7eb);
  z-index: 10006;
  min-width: 500px;
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  overflow: hidden;
  display: none;
  resize: both;
}

.footer-modal .modal-header {
  padding: 20px 25px;
  border-bottom: 2px solid rgba(255, 152, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
  color: white;
  border-radius: 20px 20px 0 0;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
}

.footer-modal .modal-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  text-transform: none;
  background: transparent !important;
  position: relative !important;
  box-shadow: none !important;
}

.footer-modal .modal-header h2 i {
  font-size: 24px;
  color: #ffc107;
}

.footer-modal .modal-header h2 span {
  background: transparent !important;
  color: white !important;
}

.footer-modal .modal-close-btn {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
  cursor: pointer;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  padding-bottom: 4px;
}

.footer-modal .modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.4) !important;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.footer-modal .modal-body {
  padding: 30px;
  max-height: calc(90vh - 120px);
  overflow-y: auto;
  flex: 1;
  width: 100%;
}

.footer-modal .page-content {
  line-height: 1.6;
  color: var(--text-primary, #1f2937);
}

/* Estilos específicos para conteúdo da página About */
.footer-modal .page-content .hero-section {
  text-align: center;
  padding: 30px 0;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
  border: 1px solid var(--border-color, #e5e7eb);
}

.footer-modal .page-content .hero-section h1 {
  font-size: 32px;
  font-weight: bold;
  color: var(--text-primary, #1f2937);
  margin-bottom: 12px;
}

.footer-modal .page-content .hero-section .subtitle {
  font-size: 16px;
  color: var(--text-secondary, #6b7280);
  margin: 0;
}

.footer-modal .page-content .control-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.footer-modal .page-content .control-card h2 {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-primary, #1f2937);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-modal .page-content .control-card h3 {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-primary, #1f2937);
  margin-bottom: 12px;
}

.footer-modal .page-content .control-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary, #1f2937);
  margin-bottom: 16px;
}

.footer-modal .page-content .control-card ul {
  margin: 16px 0;
  padding-left: 20px;
}

.footer-modal .page-content .control-card li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary, #1f2937);
  margin-bottom: 8px;
}

.footer-modal .page-content .control-card a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

.footer-modal .page-content .control-card a:hover {
  text-decoration: underline;
}

.footer-modal .page-content .text-center {
  text-align: center;
}

.footer-modal .page-content .btn-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-modal .page-content .btn-start {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
}

.footer-modal .page-content .btn-start:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.footer-modal .page-content .mt-5 {
  margin-top: 30px;
}

.footer-modal .page-content h1,
.footer-modal .page-content h2,
.footer-modal .page-content h3,
.footer-modal .page-content h4,
.footer-modal .page-content h5,
.footer-modal .page-content h6 {
  color: var(--text-primary, #1f2937);
  margin-top: 0;
  margin-bottom: 16px;
}

.footer-modal .page-content p {
  margin-bottom: 16px;
}

.footer-modal .page-content a {
  color: #3b82f6;
  text-decoration: none;
}

.footer-modal .page-content a:hover {
  text-decoration: underline;
}

.footer-modal .page-content ul,
.footer-modal .page-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.footer-modal .page-content li {
  margin-bottom: 8px;
}

/* Loading content */
.footer-modal .loading-content {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary, #6b7280);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color, #e5e7eb);
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error content */
.footer-modal .error-content {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary, #6b7280);
}

.footer-modal .error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.footer-modal .error-content h3 {
  color: #ef4444;
  margin-bottom: 8px;
}

.footer-modal .error-content p {
  margin-bottom: 8px;
}

.footer-modal .error-content button {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.footer-modal .error-content button:hover {
  background: #2563eb;
}

/* ============================================================
   INDICADOR DE PROGRESSO EGGS (DRAGGABLE MODAL)
   ============================================================ */

#eggs-progress-indicator {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--bg-card, rgba(255, 255, 255, 0.95));
  color: var(--text-primary, #1f2937);
  border-radius: 12px;
  font-family: inherit;
  z-index: 10007;
  border: 1px solid var(--border-color, #e5e7eb);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  min-width: 250px;
  width: auto;
  max-width: 320px;
  backdrop-filter: blur(8px);
  user-select: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.indicator-header {
  padding: 10px 15px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
  font-weight: 700;
  font-size: 13px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.indicator-header:active {
  cursor: grabbing;
}

.indicator-header .header-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.indicator-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.indicator-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.indicator-body {
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.indicator-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.indicator-info {
  flex: 1;
  min-width: 0;
}

.indicator-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
  color: #059669;
}

#eggs-progress-text {
  font-size: 12px;
  color: var(--text-secondary, #6b7280);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   INDICADOR DE STATUS (BACKGROUND / FOREGROUND)
   ============================================================ */

#background-status-badge {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bg-card, rgba(255, 255, 255, 0.95));
  color: var(--text-primary, #1f2937);
  border-radius: 10px;
  font-family: inherit;
  z-index: 10008;
  border: 1px solid var(--border-color, #e5e7eb);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 150px;
  width: auto;
  max-width: 220px;
  backdrop-filter: blur(8px);
  user-select: none;
  overflow: hidden;
  display: none;
  flex-direction: column;
  pointer-events: auto !important;
}

#background-status-badge.visible {
  display: flex !important;
}

.status-header {
  padding: 6px 10px;
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
  font-weight: 700;
  font-size: 11px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.status-header:active {
  cursor: grabbing;
}

.status-header .header-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.status-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.status-body {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 11px;
}

/* Cores de estado para o Body */
#background-status-badge.in-foreground .status-body {
  color: #4f46e5;
}

#background-status-badge.in-background .status-body {
  color: #f59e0b;
}

/* ============================================================
   IMPRESSÃO
   ============================================================ */

@media print {
  [id*="modal"] {
    display: none !important;
  }
  
  .modal-backdrop {
    display: none !important;
  }
  
  #gdpr-consent-banner {
    display: none !important;
  }
}
