/* =========================================================================
   TÉCNICAMZ PRO - ULTRA-COMPACT NATIVE MOBILE APP STYLING (styles.css)
   ========================================================================= */

/* 1. CONFIGURAÇÃO BASE E CONTAINER GLOBAL */
html, body {
  overflow-x: hidden !important;
  width: 100vw;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 13px; /* Reduz escala global de fontes */
  background-color: #f4f6f9;
}
*, *:before, *:after { box-sizing: inherit; }

.app-container, .main-container {
  width: 100%;
  max-width: 500px; /* Sensação de App nativo centralizado em telas grandes */
  margin: 0 auto;
  padding: 8px;
}

/* 2. COMPACTAÇÃO DE CARDS (Mural, Stories, Mercado, Ranking e Painel) */
.card, .post-card, .product-card, .ranking-item, .story-card {
  padding: 10px !important;
  margin-bottom: 8px !important;
  border-radius: 10px !important;
}

.user-avatar {
  width: 36px !important;
  height: 36px !important;
}

.post-header, .ranking-header {
  gap: 8px !important;
  margin-bottom: 6px !important;
}

.post-title, .ranking-name {
  font-size: 14px !important;
  font-weight: 600;
}

.post-body, .ranking-stats {
  font-size: 12px !important;
  line-height: 1.3 !important;
}

.story-container {
  gap: 6px !important;
  padding: 4px 0 !important;
}

/* 3. FORMULÁRIOS E TELAS DE AUTH (Login/Cadastro em 2 Colunas Compactas) */
.auth-card p.description, 
.auth-card .long-text { 
  display: none !important; 
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.form-group.full-width { 
  grid-column: span 2; 
}

@media (max-width: 480px) {
  .form-grid { 
    grid-template-columns: 1fr; 
  }
  .form-group.full-width { 
    grid-column: span 1; 
  }
}

.form-control, input, select {
  height: 36px !important;
  padding: 6px 10px !important;
  font-size: 13px !important;
  border-radius: 6px !important;
}

/* =========================================================================
   NAVEGAÇÃO POR ABAS DO PAINEL DO PROFISSIONAL (tab-content & dashboard-tabs)
   ========================================================================= */
.tab-content { 
  display: none; 
}

.tab-content.active { 
  display: block !important; 
}

.dashboard-tabs {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dashboard-tabs .tab-btn.active {
  background-color: #2563eb !important;
  color: #ffffff !important;
}

/* =========================================================================
   TELA FERRAMENTAS & SPA SCREENS (#screen-ferramentas)
   ========================================================================= */
.screen {
  display: none;
}
.screen.active {
  display: block !important;
}
#screen-ferramentas.active {
  display: block !important;
}

/* =========================================================================
   ESTRUTURA CSS DO MODAL "SELO MZ NECESSÁRIO" (Layout & CSS Variables)
   ========================================================================= */
:root {
  --mz-blue-deep: #1e3a8a;
  --mz-blue-primary: #2563eb;
  --mz-blue-indigo: #4338ca;
  --mz-gold-main: #f59e0b;
  --mz-gold-border: #fbbf24;
  --mz-gold-badge: rgba(251, 191, 36, 0.2);
  --mz-alert-bg: #fffbeb;
  --mz-alert-border: #fde68a;
  --mz-alert-text: #78350f;
  --mz-radius-container: 24px;
  --mz-radius-sub: 14px;
  --mz-shadow-elevated: 0 20px 40px -15px rgba(15, 23, 42, 0.3);
}

.modal-selo-mz-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background-color: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: mzFadeIn 0.2s ease-out;
}

.modal-selo-mz-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  background-color: #ffffff;
  border-radius: var(--mz-radius-container);
  box-shadow: var(--mz-shadow-elevated);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  color: #0f172a;
  font-family: inherit;
  animation: mzScaleUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. CABEÇALHO (GRADIENTE AZUL PREMIUM) */
.modal-selo-header {
  position: relative;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #4338ca 100%);
  padding: 20px;
  color: #ffffff;
  border-top-left-radius: var(--mz-radius-container);
  border-top-right-radius: var(--mz-radius-container);
}

.btn-fechar-modal-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-fechar-modal-x:hover {
  background: rgba(255, 255, 255, 0.28);
}

.header-content-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.escudo-badge-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.5);
  border: 2px solid var(--mz-gold-border);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mz-gold-main);
  flex-shrink: 0;
}

.escudo-icon {
  width: 28px;
  height: 28px;
}

.header-text-group {
  min-width: 0;
  padding-right: 20px;
}

.badge-verificacao-oficial {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 9999px;
  background-color: rgba(0, 0, 0, 0.25);
  color: #fef08a;
  border: 1px solid rgba(254, 240, 138, 0.35);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.modal-selo-title {
  margin: 4px 0 0 0;
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
}

/* 2. CORPO DO MODAL (FUNDO BRANCO CLEAN) */
.modal-selo-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background-color: #ffffff;
}

/* Caixa de Alerta (Amarelo Claro / Muted) */
.alerta-restricao-box {
  padding: 12px 14px;
  border-radius: var(--mz-radius-sub);
  background-color: var(--mz-alert-bg);
  border: 1px solid var(--mz-alert-border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alerta-lock-icon {
  color: #d97706;
  flex-shrink: 0;
  margin-top: 2px;
}

.alerta-texto {
  flex: 1;
}

.alerta-titulo {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  color: var(--mz-alert-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.alerta-desc {
  margin: 4px 0 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: #854d0e;
  font-weight: 500;
}
.alerta-desc strong {
  font-weight: 800;
  color: #451a03;
  text-decoration: underline;
  text-decoration-color: #f59e0b;
}

/* Lista de Benefícios Desbloqueados */
.beneficios-secao {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.beneficios-titulo {
  margin: 0;
  font-size: 10.5px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.beneficios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.beneficio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.beneficio-full {
  grid-column: span 2;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-weight: 900;
  font-size: 10px;
  flex-shrink: 0;
}

/* Caixa de Pagamento / Taxa de Ativação */
.taxa-ativacao-card {
  padding: 12px 14px;
  border-radius: var(--mz-radius-sub);
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.taxa-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #1e3a8a;
}

.taxa-valor {
  margin: 2px 0 0 0;
  font-size: 15px;
  font-weight: 900;
  color: #1d4ed8;
}

.taxa-metodo {
  font-size: 11px;
  font-weight: 400;
  color: #64748b;
}

.badge-liberacao {
  padding: 4px 10px;
  border-radius: 9999px;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* BOTÕES DE AÇÃO */
.modal-selo-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.btn-ativar-selo-principal {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
  transition: opacity 0.15s ease, transform 0.1s ease;
}
.btn-ativar-selo-principal:active {
  transform: scale(0.98);
}

.seta-acao {
  font-size: 14px;
  margin-left: 2px;
}

.btn-fechar-discreto {
  padding: 12px 16px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-fechar-discreto:hover {
  background: #e2e8f0;
}
.btn-fechar-discreto:active {
  transform: scale(0.98);
}

/* Responsividade Mobile */
@media (max-width: 480px) {
  .modal-selo-mz-container {
    width: 95%;
    max-width: 400px;
    border-radius: 20px;
  }
  .modal-selo-header {
    padding: 12px 14px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }
  .modal-selo-body {
    padding: 12px 14px;
    gap: 10px;
  }
  .beneficios-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .beneficio-item {
    padding: 6px 8px;
    font-size: 10.5px;
    line-height: 1.25;
  }
  .beneficio-full {
    grid-column: span 2;
  }
  .taxa-ativacao-card {
    padding: 8px 12px;
  }
  .modal-selo-actions {
    flex-direction: column;
    gap: 6px;
  }
  .btn-ativar-selo-principal {
    padding: 10px 14px;
    font-size: 12px;
  }
  .btn-fechar-discreto {
    width: 100%;
    padding: 8px 12px;
    font-size: 11.5px;
  }
}

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

@keyframes mzScaleUp {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}


