/* css/styles.css */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  /* Tema Místico e Sofisticado no tom Caramelo/Bege */
  --bg-dark: #faf5eb;           /* Bege champanhe quente */
  --bg-obsidian: rgba(255, 255, 255, 0.88); /* Vidro pergaminho jateado */
  --bg-obsidian-light: rgba(254, 252, 248, 0.98);
  --bg-card: rgba(255, 255, 255, 0.88); /* Fundo dos cards na jornada/classificação */
  
  /* Bordas em Caramelo e Ouro Queimado */
  --border-gold: rgba(180, 83, 9, 0.22);
  --border-gold-hover: rgba(180, 83, 9, 0.45);
  --border-light: rgba(180, 83, 9, 0.1); /* Borda mais fina e suave */
  --color-gold: #b45309;        /* Caramelo escuro / Ouro */
  --glow-gold: rgba(217, 119, 6, 0.12);
  
  --text-primary: #372a1e;       /* Marrom expresso profundo */
  --text-muted: #5c4f43;        /* Marrom cacau escurecido para excelente contraste (>7:1) */
  --text-dark: #372a1e;
  
  /* Sofia (Sabedoria - Roxo Ametista Aconchegante) */
  --color-sofia: #6d28d9;
  --color-sofia-start: #8b5cf6;
  --color-sofia-end: #6d28d9;
  --color-sofia-light: rgba(109, 40, 217, 0.06);
  --glow-sofia: rgba(109, 40, 217, 0.2);

  /* Daniel (Justiça/Equilíbrio - Verde Menta/Esmeralda Profundo) */
  --color-daniel: #0f766e;
  --color-daniel-start: #14b8a6;
  --color-daniel-end: #0f766e;
  --color-daniel-light: rgba(15, 118, 110, 0.06);
  --glow-daniel: rgba(15, 118, 110, 0.2);

  /* Safira (Preciosidade - Rosa Quartzo/Rubi Suave) */
  --color-safira: #be123c;
  --color-safira-start: #fb7185;
  --color-safira-end: #be123c;
  --color-safira-light: rgba(190, 18, 60, 0.06);
  --glow-safira: rgba(190, 18, 60, 0.2);

  /* Samuel (Voz/Comunidade - Ouro Solar/Caramelo Quente) */
  --color-samuel: #b45309;      /* Escurecido para conformidade de contraste WCAG (>4.5:1) */
  --color-samuel-start: #fbbf24;
  --color-samuel-end: #b45309;
  --color-samuel-light: rgba(217, 119, 6, 0.06);
  --glow-samuel: rgba(217, 119, 6, 0.2);

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* =====================================================
     MIV Genies — Tokens da Identidade Visual da Marca
     ===================================================== */
  /* Aurora Cósmica: cor principal da logo */
  --brand-aurora-start: #38bdf8;   /* Turquesa Celestial */
  --brand-aurora-mid:   #818cf8;   /* Índigo Cósmico */
  --brand-aurora-accent:#c084fc;   /* Violeta Mágico */
  --brand-aurora-end:   #f472b6;   /* Rosa Estelar */

  /* Gradiente oficial da marca (CSS) */
  --gradient-brand: linear-gradient(135deg, #38bdf8 0%, #818cf8 35%, #c084fc 70%, #f472b6 100%);

  /* Centelha Dourada da estrela */
  --brand-gold-start: #fef08a;
  --brand-gold-end:   #f59e0b;
  --gradient-gold:  linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #d97706 100%);

  /* Brilho/Glow da marca */
  --glow-brand: rgba(129, 140, 248, 0.22);
  --glow-brand-strong: rgba(56, 189, 248, 0.18);

  /* Escalamento e Padronização Tipográfica */
  --font-xs: 12px;
  --font-sm: 14px;
  --font-base: 16px;
  --font-lg: 20px;
  --font-xl: 26px;
  --font-hero: 36px;
}

/* Reset e Configurações Gerais */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Quicksand', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-size: var(--font-base);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  overflow-x: clip;
  position: relative;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  /* Efeito de luz mágica sobre pergaminho */
  background-image: 
    radial-gradient(circle at 5% 10%, rgba(217, 119, 6, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 95% 80%, rgba(15, 118, 110, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(109, 40, 217, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, #faf5eb 0%, #f6ebd7 100%);
  background-attachment: fixed;
}

button, a.btn, select, input {
  touch-action: manipulation;
}

/* Scrollbar Caramelizada */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--border-gold);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* Tipografia Infantil mas Sofisticada (Fredoka) */
h1, h2, h3, h4, .logo-text, .about-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* Contêiner Geral */
.app-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Header em Formato de Altar Superior */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  background: var(--bg-obsidian);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--border-gold);
  border-radius: 20px;
  margin-top: 15px;
  margin-bottom: 30px;
  box-shadow: 
    0 10px 30px rgba(45, 34, 25, 0.04),
    inset 0 0 15px rgba(255, 255, 255, 0.6);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 4px var(--glow-gold));
  animation: float 4s ease-in-out infinite;
}

.logo-text {
  font-size: 22px;
  color: var(--text-primary);
}

.logo-highlight {
  color: var(--color-gold);
  text-shadow: 0 0 8px rgba(217, 119, 6, 0.1);
}

.header-user-widget {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Stats */
.header-stats {
  display: flex;
  gap: 12px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.5);
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-gold);
  font-size: 13px;
  font-weight: 700;
}

.stat-item.xp {
  border-color: rgba(109, 40, 217, 0.25);
  color: var(--color-sofia);
  box-shadow: inset 0 0 8px rgba(109, 40, 217, 0.05);
}

.stat-item.cristal {
  border-color: rgba(190, 18, 60, 0.25);
  color: var(--color-safira);
  box-shadow: inset 0 0 8px rgba(190, 18, 60, 0.05);
}

.user-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(180, 83, 9, 0.08);
  transition: var(--transition-smooth);
}

.user-avatar-circle:hover {
  transform: scale(1.08) rotate(5deg);
  border-color: var(--color-gold);
}

/* Painéis de Vidro Místicos (Parchment Glassmorphism) */
.glass-panel {
  background: var(--bg-obsidian);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1.5px solid var(--border-gold);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 
    0 15px 35px rgba(45, 34, 25, 0.05),
    inset 0 0 20px rgba(255, 255, 255, 0.6);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--border-gold-hover);
  box-shadow: 
    0 20px 40px rgba(45, 34, 25, 0.08),
    0 0 15px rgba(217, 119, 6, 0.08);
}

.glass-panel.glow-sofia {
  border-color: rgba(109, 40, 217, 0.25);
  box-shadow: 0 15px 35px rgba(45, 34, 25, 0.05), 0 0 15px rgba(109, 40, 217, 0.08);
}

.glass-panel.glow-daniel {
  border-color: rgba(15, 118, 110, 0.25);
  box-shadow: 0 15px 35px rgba(45, 34, 25, 0.05), 0 0 15px rgba(15, 118, 110, 0.08);
}

.glass-panel.glow-safira {
  border-color: rgba(190, 18, 60, 0.25);
  box-shadow: 0 15px 35px rgba(45, 34, 25, 0.05), 0 0 15px rgba(190, 18, 60, 0.08);
}

/* Botões Cristalinos */
.btn {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 14px 28px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(45, 34, 25, 0.06);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
}

.btn:hover::before {
  left: 150%;
  transition: all 0.8s ease-in-out;
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #ffffff;
  border: 1px solid rgba(167, 139, 250, 0.3);
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(109, 40, 217, 0.3);
}

.btn-accent {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #ffffff;
  border: 1px solid rgba(45, 212, 191, 0.3);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.15);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-primary);
  border: 1.5px solid var(--border-gold);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.06);
}

.btn-danger {
  background: rgba(220, 38, 38, 0.05);
  color: #b91c1c;
  border: 1.5px solid rgba(220, 38, 38, 0.2);
}

.btn-danger:hover {
  background: rgba(220, 38, 38, 0.12);
  border-color: #dc2626;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
  border-radius: 10px;
  letter-spacing: 0.8px;
}

/* Campos de Formulário */
.form-group {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.form-input {
  font-family: 'Quicksand', sans-serif;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid var(--border-gold);
  border-radius: 14px;
  padding: 12px 16px;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 10px var(--glow-gold);
  background: rgba(255, 255, 255, 0.95);
}

select.form-input option {
  background-color: var(--bg-dark);
  color: var(--text-primary);
}

/* Grid */
.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Footer */
footer {
  margin-top: auto;
  text-align: center;
  padding: 40px 0 20px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid rgba(180, 83, 9, 0.1);
}

/* Alertas/Toasts Flutuantes */
.alert-popup {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--bg-obsidian-light);
  border: 2px solid var(--border-gold);
  border-radius: 18px;
  padding: 18px 24px;
  box-shadow: 0 15px 35px rgba(45, 34, 25, 0.08);
  color: var(--text-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
  animation: slideIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

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

.alert-popup.success {
  border-color: var(--color-daniel);
  box-shadow: 0 15px 35px rgba(45, 34, 25, 0.08), 0 0 15px rgba(15, 118, 110, 0.1);
}

.alert-popup.error {
  border-color: var(--color-safira);
  box-shadow: 0 15px 35px rgba(45, 34, 25, 0.08), 0 0 15px rgba(190, 18, 60, 0.1);
}

/* Layout Portal */
.portal-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.portal-box {
  width: 100%;
  max-width: 450px;
}

/* Sobre o Nome */
.about-section {
  margin-top: 30px;
  border-top: 1px dashed var(--border-gold);
  padding-top: 20px;
}

.about-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 15px;
  text-align: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.about-item {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(180, 83, 9, 0.08);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 11px;
}

.about-item.sofia { border-color: rgba(109, 40, 217, 0.15); }
.about-item.daniel { border-color: rgba(15, 118, 110, 0.15); }
.about-item.safira { border-color: rgba(190, 18, 60, 0.15); }
.about-item.samuel { border-color: rgba(217, 119, 6, 0.15); }

.about-name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  margin-bottom: 2px;
}
.about-item.sofia .about-name { color: var(--color-sofia); }
.about-item.daniel .about-name { color: var(--color-daniel); }
.about-item.safira .about-name { color: var(--color-safira); }
.about-item.samuel .about-name { color: var(--color-samuel); }

.about-concept {
  color: var(--text-muted);
  font-style: italic;
}

/* Efeito de flutuação mágica */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0px); }
}

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: start;
  gap: 30px;
}

/* ===== BOTTOM NAV (Mobile) ===== */
.bottom-nav {
  display: none;
}

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

/* Tablets e telas menores (até 768px) */
@media (max-width: 768px) {
  .app-container {
    padding: 12px;
    padding-bottom: max(84px, calc(84px + env(safe-area-inset-bottom))); /* Espaço seguro para bottom nav */
  }

  header {
    flex-direction: column;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    margin-top: 10px;
    margin-bottom: 20px;
  }

  .logo-text {
    font-size: 18px;
  }

  .header-user-widget {
    width: 100%;
    justify-content: center;
  }

  .header-stats {
    gap: 8px;
  }

  .stat-item {
    padding: 6px 12px;
    font-size: 13.5px;
    font-weight: 700;
  }

  .glass-panel {
    padding: 20px;
    border-radius: 18px;
  }

  .btn {
    padding: 14px 20px;
    font-size: 13.5px;
    letter-spacing: 0.8px;
    min-height: 46px; /* Touch target amplo */
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  /* Colapsa grids inline das páginas */
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .perfil-layout {
    grid-template-columns: 1fr;
  }

  .arena-grid {
    grid-template-columns: 1fr;
  }

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

  .portal-box {
    max-width: 100%;
    padding: 0 4px;
  }

  .alert-popup {
    left: 12px;
    right: 12px;
    bottom: 80px; /* Acima da bottom nav */
    font-size: 14px;
    padding: 14px 18px;
    border-radius: 14px;
  }

  footer {
    padding: 25px 0 15px;
    font-size: 13px;
  }

  /* Bottom Navigation Bar */
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1.5px solid var(--border-gold);
    padding: 6px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(45, 34, 25, 0.08);
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: var(--text-muted);
    font-family: 'Quicksand', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 8px;
    border-radius: 12px;
    transition: var(--transition-smooth);
    min-width: 54px;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav a .nav-icon {
    font-size: 22px;
    line-height: 1;
  }

  .bottom-nav a.active {
    color: var(--color-sofia);
    background: rgba(109, 40, 217, 0.08);
  }

  .bottom-nav a:active {
    transform: scale(0.92);
  }
}

/* Celulares pequenos (até 480px) */
@media (max-width: 480px) {
  .app-container {
    padding: 8px;
    padding-bottom: max(84px, calc(84px + env(safe-area-inset-bottom)));
  }

  header {
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 16px;
  }

  .logo-container {
    gap: 8px;
  }

  .logo-icon {
    width: 26px;
    height: 26px;
  }

  .logo-text {
    font-size: 16px;
  }

  .header-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .stat-item {
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 10px;
  }

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

  .glass-panel {
    padding: 16px;
    border-radius: 14px;
  }

  .btn {
    padding: 13px 16px;
    font-size: 11px;
    border-radius: 12px;
    letter-spacing: 0.6px;
    min-height: 44px;
  }

  .form-input {
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 12px;
    min-height: 44px;
  }

  .form-label {
    font-size: 13px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-item {
    padding: 8px 10px;
    font-size: 10px;
  }

  /* Podium responsivo */
  .podium-container {
    gap: 8px;
    height: 180px;
    margin: 25px 0;
  }

  .podium-place {
    width: 100px;
  }

  .podium-place.first {
    height: 175px;
  }
  .podium-place.second {
    height: 160px;
  }
  .podium-place.third {
    height: 145px;
  }

  .podium-col {
    padding: 16px 6px 10px 6px;
  }

  .podium-name {
    font-size: 12px;
  }

  /* Jornada nodes responsivo */
  .node-trilha {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    margin: 20px 0 !important;
    width: 100% !important;
  }
  .node-trilha.node-esq {
    flex-direction: row-reverse !important;
  }
  .node-trilha.node-dir {
    flex-direction: row !important;
  }
  .node-info {
    width: auto !important;
    flex: 1 !important;
    margin: 0 12px !important;
    padding: 14px !important;
  }
  .node-circulo {
    width: 60px !important;
    height: 60px !important;
    font-size: 22px !important;
    margin: 0 !important;
  }
}

/* Sobrescreve o uppercase dos botões gerais apenas para os botões de opção de resposta dos quizzes */
.opcoes-grid .btn,
#containerOpcoes .btn,
.btn-opcao {
  text-transform: none !important;
  letter-spacing: normal !important;
  text-align: left !important;
}

/* Modais Modernos Glassmorphism */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInModal 0.25s ease-out forwards;
}

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

.modal-content {
  animation: slideUpModal 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15) forwards;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideUpModal {
  from { transform: translateY(30px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Animação Notável de Transição entre Perguntas do Quiz */
.question-transition-enter {
  animation: questionCardSlideIn 0.42s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes questionCardSlideIn {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.96);
    box-shadow: 0 0 0 rgba(109, 40, 217, 0);
  }
  60% {
    opacity: 0.85;
    box-shadow: 0 10px 30px rgba(109, 40, 217, 0.18);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 18px;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 800;
  transition: var(--transition-smooth);
}
.modal-close-btn:hover {
  color: var(--text-primary);
  transform: scale(1.15);
}

/* ===================================================
   COMPONENTES REUTILIZÁVEIS
   =================================================== */

/* Card de opção genérico (perfil, nivelamento) */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin: 15px 0 25px 0;
}
.option-card {
  background: rgba(251, 243, 219, 0.6);
  border: 1.5px solid var(--border-gold);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition-smooth);
  text-align: center;
  color: var(--text-primary);
}
.option-card:hover,
.option-card.selected {
  background: rgba(251, 243, 219, 0.92);
  border-color: var(--color-sofia);
  box-shadow: 0 0 8px var(--glow-sofia);
}

/* Quick links do menu lateral */
.quick-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(251, 243, 219, 0.55);
  border: 1.5px solid var(--border-gold);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  transition: var(--transition-smooth);
  backdrop-filter: blur(4px);
}
.quick-link:hover {
  background: rgba(251, 243, 219, 0.85);
  border-color: var(--color-gold);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.15);
}

/* Animação shake */
@keyframes shake {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-10px); }
  40%  { transform: translateX(8px); }
  60%  { transform: translateX(-6px); }
  80%  { transform: translateX(4px); }
  100% { transform: translateX(0); }
}
.shake-anim {
  animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

/* ===== PAGE: dashboard.html ===== */
.welcome-card {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.08) 0%, rgba(234, 179, 8, 0.02) 100%);
  border-color: var(--border-gold);
}
.subject-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.subject-card.disabled {
  opacity: 0.55;
  border-color: rgba(255, 255, 255, 0.08);
}
.subject-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

/* ===== PAGE: perfil.html ===== */
.perfil-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  align-items: start;
}
.customizer-section {
  text-align: center;
}
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 20px;
}
.badge-card {
  background: rgba(251, 243, 219, 0.6);
  border: 1.5px solid var(--border-gold);
  border-radius: 16px;
  padding: 15px 10px;
  text-align: center;
  transition: var(--transition-smooth);
  color: var(--text-dark);
}
.badge-card.unlocked {
  border-color: var(--color-daniel);
  background: var(--color-daniel-light);
  box-shadow: 0 4px 10px var(--glow-daniel);
}
.badge-card.locked {
  opacity: 0.45;
}
.badge-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

/* ===== PAGE: jornada.html ===== */
.jornada-header {
  text-align: center;
  margin-bottom: 40px;
}
.mapa-trilha {
  position: relative;
  margin: 40px auto;
  max-width: 850px;
  padding-bottom: 50px;
}
.mapa-trilha::before {
  content: "";
  position: absolute;
  top: 50px;
  bottom: 50px;
  left: 50%;
  width: 6px;
  background: repeating-linear-gradient(to bottom, transparent, transparent 10px, var(--border-gold-hover) 10px, var(--border-gold-hover) 20px);
  opacity: 0.5;
  z-index: 1;
  transform: translateX(-50%);
}
.node-trilha {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: center;
  width: 100%;
  margin: 40px 0;
  position: relative;
  z-index: 2;
  transition: var(--transition-smooth);
}
.node-trilha.node-esq .node-circulo { grid-column: 2; margin: 0 auto; }
.node-trilha.node-esq .node-info    { grid-column: 1; margin-right: 15px; }
.node-trilha.node-dir .node-circulo { grid-column: 2; margin: 0 auto; }
.node-trilha.node-dir .node-info    { grid-column: 3; margin-left: 15px; }
.node-circulo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3.5px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(45, 34, 25, 0.15);
  transition: var(--transition-smooth);
  z-index: 3;
}
.node-info {
  padding: 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-gold);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(45, 34, 25, 0.08);
  transition: var(--transition-smooth);
}
.node-trilha:hover .node-circulo { transform: scale(1.1); box-shadow: 0 8px 24px rgba(45, 34, 25, 0.25); }
.node-trilha:hover .node-info    { border-color: var(--border-gold-hover); box-shadow: 0 12px 30px rgba(45, 34, 25, 0.12); }
.node-trilha.concluido .node-circulo { border-color: var(--color-daniel); background: var(--color-daniel); box-shadow: 0 0 15px var(--glow-daniel); color: #fff; }
.node-trilha.concluido .node-info    { border-color: rgba(49, 151, 149, 0.4); }
.node-trilha.disponivel .node-circulo { border-color: var(--color-sofia); background: var(--color-sofia); box-shadow: 0 0 15px var(--glow-sofia); color: #fff; animation: pulsateNode 2s infinite alternate; }
.node-trilha.disponivel .node-info    { border-color: rgba(128, 90, 213, 0.4); }
.node-trilha.bloqueado               { opacity: 0.55; }
.node-trilha.bloqueado .node-circulo { cursor: not-allowed; border-color: #d1c7bd; background: #e8dfd5; color: #bfaea0; }
@keyframes pulsateNode {
  0%   { transform: scale(1);    box-shadow: 0 0 15px var(--glow-sofia); }
  100% { transform: scale(1.06); box-shadow: 0 0 25px var(--color-sofia-end); }
}
.fab-focus-desafio {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 100;
  background: linear-gradient(135deg, var(--color-gold), var(--color-samuel-start));
  color: white;
  border: 1.5px solid var(--border-gold);
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.35);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Quicksand', sans-serif;
}
.fab-focus-desafio:hover  { transform: translateY(-3px) scale(1.05); box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5); }
.fab-focus-desafio:active { transform: translateY(-1px) scale(0.98); }

/* ===== PAGE: quiz.html ===== */
.arena-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 30px;
  align-items: start;
}
.hud-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.hearts-container {
  font-size: 22px;
  color: #ef4444;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.4));
}
.prisminha-helper {
  background: var(--bg-obsidian);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(120, 70, 10, 0.18), 0 0 15px var(--glow-samuel);
  text-align: center;
}
.mascote-svg-quiz {
  width: 70px;
  height: 70px;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 8px var(--glow-samuel));
  margin-bottom: 12px;
}
.bubble-mascote {
  background: rgba(251, 243, 219, 0.45);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  color: var(--text-primary);
}
.contagem-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin: 20px 0; }
.contagem-item {
  width: 54px;
  height: 54px;
  cursor: pointer;
  border-radius: 12px;
  background: rgba(251, 243, 219, 0.7);
  border: 1.5px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.contagem-item svg              { width: 40px; height: 40px; opacity: 0.5; transition: var(--transition-smooth); }
.contagem-item.selecionado      { background: var(--color-sofia-light); border-color: var(--color-sofia); box-shadow: 0 0 10px var(--glow-sofia); }
.contagem-item.selecionado svg  { opacity: 1; filter: drop-shadow(0 2px 4px var(--glow-sofia)); }
.reta-container                 { margin: 30px 0; position: relative; }
.reta-linha                     { height: 4px; background: var(--border-gold); width: 100%; position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; }
.reta-slider                    { -webkit-appearance: none; width: 100%; background: transparent; position: relative; z-index: 2; cursor: pointer; }
.reta-slider:focus              { outline: none; }
.reta-slider::-webkit-slider-thumb         { -webkit-appearance: none; height: 24px; width: 24px; border-radius: 50%; background: var(--color-daniel); border: 2px solid #fff; box-shadow: 0 2px 8px var(--glow-daniel); margin-top: -10px; }
.reta-slider::-webkit-slider-runnable-track { width: 100%; height: 4px; background: transparent; }
.reta-labels                    { display: flex; justify-content: space-between; margin-top: 15px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.monetario-chest                { border: 2px dashed var(--color-daniel); background: var(--color-daniel-light); border-radius: 16px; padding: 20px; text-align: center; margin-bottom: 20px; transition: var(--transition-smooth); }
.monetario-chest.glow           { box-shadow: 0 0 20px var(--glow-daniel); background: rgba(45, 212, 191, 0.15); }
.coins-grid                     { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 15px; }
.coin-btn {
  background: rgba(251, 243, 219, 0.8);
  border: 1.5px solid var(--border-gold);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.coin-btn:hover { background: var(--bg-dark); border-color: var(--color-gold); transform: translateY(-2px); }

/* ===== PAGE: ranking.html ===== */
.podium-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 15px;
  margin: 40px 0;
  height: 220px;
  overflow: visible;
}
.podium-place {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 130px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-gold);
  border-radius: 18px 18px 12px 12px;
  transition: var(--transition-smooth);
  position: relative;
  color: var(--text-primary);
  overflow: visible;
}
.podium-place:hover  { transform: translateY(-5px); }
.podium-medal        { font-size: 32px; margin-bottom: 8px; position: absolute; top: -24px; filter: drop-shadow(0 2px 4px rgba(60, 47, 47, 0.1)); }
.podium-col          { width: 100%; display: flex; flex-direction: column; align-items: center; padding: 20px 10px 15px 10px; overflow: visible; }
.podium-name         { font-weight: 800; font-size: 14px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; width: 100%; text-align: center; }
.podium-level        { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.podium-place.first  { height: 195px; border-color: var(--color-samuel); box-shadow: 0 8px 20px rgba(60, 47, 47, 0.04), 0 0 15px var(--glow-samuel); }
.podium-place.second { height: 175px; border-color: var(--border-gold); box-shadow: 0 8px 20px rgba(120, 70, 10, 0.12), 0 0 10px rgba(217, 119, 6, 0.08); }
.podium-place.third  { height: 160px; border-color: var(--border-gold); box-shadow: 0 8px 20px rgba(120, 70, 10, 0.10), 0 0  8px rgba(217, 119, 6, 0.06); }
.leaderboard-list    { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.leaderboard-item {
  display: flex;
  align-items: center;
  padding: 15px 25px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-gold);
  border-radius: 16px;
  transition: var(--transition-smooth);
  color: var(--text-primary);
}
.leaderboard-item:hover { background: rgba(251, 243, 219, 0.7); transform: translateX(4px); border-color: var(--color-gold); }
.rank-number { font-size: 16px; font-weight: 800; width: 40px; color: var(--text-muted); }
.rank-name   { font-weight: 600; font-size: 15px; flex-grow: 1; }
.rank-level  { font-size: 13px; font-weight: 800; color: var(--color-sofia); background: var(--color-sofia-light); padding: 4px 10px; border-radius: 8px; border: 2px solid rgba(128, 90, 213, 0.25); }

/* ===== PAGE: admin.html ===== */
.admin-container { max-width: 1400px; margin: 0 auto; padding: 30px 20px; }
.metric-icon {
  font-size: 28px;
  margin: 0 auto 10px auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  border: 1.5px solid var(--border-gold);
  box-shadow: 0 4px 10px rgba(180, 83, 9, 0.06);
}
.admin-grid    { display: grid; grid-template-columns: 2.2fr 1fr; gap: 30px; margin-top: 30px; }
.metrics-grid  { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 30px; }
.metric-card {
  background: var(--bg-card);
  border: 2px solid var(--border-gold);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(120, 70, 10, 0.10);
  position: relative;
  overflow: hidden;
}
.metric-card::before { content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(217, 119, 6, 0.08) 0%, transparent 70%); pointer-events: none; }
.metric-value  { font-size: 32px; font-weight: 800; color: var(--text-dark); margin: 10px 0 5px 0; font-family: 'Fredoka', sans-serif; }
.metric-label  { font-size: 12px; text-transform: uppercase; font-weight: 800; color: var(--text-muted); letter-spacing: 0.5px; }
.table-container { overflow-x: auto; background: rgba(255, 255, 255, 0.4); border-radius: 16px; border: 1px solid var(--border-gold); margin-top: 15px; }
.admin-table   { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.admin-table th { background: rgba(254, 243, 199, 0.5); padding: 15px; font-weight: 800; color: var(--text-dark); border-bottom: 2px solid var(--border-gold); text-transform: uppercase; font-size: 11px; letter-spacing: 0.5px; }
.admin-table td { padding: 15px; border-bottom: 1px solid rgba(180, 83, 9, 0.06); color: var(--text-dark); }
.admin-table tr:hover { background: rgba(255, 255, 255, 0.25); }
.badge         { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.badge-free    { background: rgba(251, 243, 219, 0.9); color: #78450f; border: 1px solid rgba(217, 119, 6, 0.3); }
.badge-pro     { background: #fef3c7; color: #b45309; border: 1px solid #f59e0b; }
.badge-user    { background: rgba(219, 234, 254, 0.7); color: #1e40af; border: 1px solid rgba(147, 197, 253, 0.5); }
.badge-admin   { background: rgba(243, 232, 255, 0.7); color: #6b21a8; border: 1px solid rgba(192, 132, 252, 0.5); }
.log-list      { max-height: 550px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 5px; }
.log-item      { padding: 12px; border-radius: 12px; background: rgba(255,255,255,0.45); border: 1px solid rgba(180, 83, 9, 0.06); display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.4; transition: all 0.2s; }
.log-item:hover { transform: translateX(3px); background: rgba(255,255,255,0.7); }
.log-icon      { font-size: 18px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(255,255,255,0.6); border: 1px solid rgba(180, 83, 9, 0.08); }
.log-meta      { font-size: 10px; color: var(--text-muted); margin-top: 4px; font-weight: 700; }
.filter-bar    { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; align-items: center; }
.search-input  { flex-grow: 1; min-width: 200px; }
.pagination    { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; padding: 0 10px; }
.pagination-info    { font-size: 13px; color: var(--text-muted); font-weight: 700; }
.pagination-actions { display: flex; gap: 8px; }

/* ===== RESPONSIVIDADE ADICIONAL DAS PÁGINAS ===== */
@media (max-width: 1100px) {
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .perfil-layout        { grid-template-columns: 1fr; }
  .arena-grid           { grid-template-columns: 1fr; }
  .fab-focus-desafio    { bottom: 90px; right: 20px; }
  #calculadoraContainer { top: 20% !important; left: 50% !important; right: auto !important; transform: translateX(-50%) !important; }
}

/* ===== PAGE: index.html (Landing Page) ===== */
.hero-section {
  min-height: 85vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px; position: relative; overflow: hidden;
}
.hero-content {
  position: relative; z-index: 1; max-width: 960px; margin: 0 auto; width: 100%;
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; text-align: left;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.2px; color: var(--color-gold);
  background: rgba(217,119,6,.10); border: 1.5px solid rgba(217,119,6,.25);
  border-radius: 99px; padding: 6px 16px; margin-bottom: 24px;
}
.hero-headline {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15;
  color: var(--text-primary); margin-bottom: 20px; font-family: 'Fredoka', sans-serif;
}
.hero-headline em { font-style: normal; color: var(--color-gold); }
.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.15rem); color: var(--text-muted); line-height: 1.7;
  margin-bottom: 35px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
@media (max-width: 900px) {
  .hero-ctas { justify-content: center; }
}
.hero-mascote { display: flex; justify-content: center; align-items: center; gap: 20px; position: relative; }
.mascote-hero-wrap { animation: float 4s ease-in-out infinite; filter: drop-shadow(0 12px 28px rgba(217,119,6,.20)); }
.hero-badges-float { display: flex; flex-direction: column; gap: 12px; }
.hero-badge-pill {
  background: var(--bg-card); border: 1.5px solid var(--border-gold); border-radius: 12px;
  padding: 10px 16px; font-size: 12px; font-weight: 700; color: var(--text-primary);
  box-shadow: 0 4px 16px rgba(120,70,10,.10); white-space: nowrap;
}

.stats-bar {
  display: grid; grid-template-columns: repeat(4,1fr); background: var(--bg-card);
  border: 1.5px solid var(--border-gold); border-radius: 20px; overflow: hidden;
  margin: 0 0 80px; box-shadow: 0 8px 32px rgba(120,70,10,.08);
}
.stat-cell { padding: 28px 20px; text-align: center; border-right: 1.5px solid var(--border-gold); transition: var(--transition-smooth); }
.stat-cell:last-child { border-right: none; }
.stat-cell:hover { background: rgba(251,243,219,.55); }
.stat-cell-icon { font-size: 28px; margin-bottom: 10px; }
.stat-cell-value { font-size: 1.6rem; font-weight: 800; color: var(--text-dark); font-family: 'Fredoka',sans-serif; line-height: 1; margin-bottom: 6px; }
.stat-cell-label { font-size: 12px; color: var(--text-muted); font-weight: 700; line-height: 1.4; }

.section-eyebrow { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--color-gold); margin-bottom: 10px; }
.section-title { font-size: clamp(1.6rem,4vw,2.2rem); font-weight: 800; color: var(--text-primary); margin-bottom: 14px; font-family: 'Fredoka',sans-serif; line-height: 1.2; }
.section-desc { font-size: 15px; color: var(--text-muted); line-height: 1.7; max-width: 520px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 50px; }

.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-bottom: 80px; }
.step-card { background: var(--bg-card); border: 1.5px solid var(--border-gold); border-radius: 20px; padding: 32px 24px; text-align: center; transition: var(--transition-smooth); }
.step-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(120,70,10,.12); border-color: var(--color-gold); }
.step-number { width: 44px; height: 44px; background: linear-gradient(135deg,var(--color-gold),#d97706); color: #fff; font-weight: 800; font-size: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; font-family: 'Fredoka',sans-serif; box-shadow: 0 4px 12px rgba(217,119,6,.25); }
.step-icon { font-size: 36px; margin-bottom: 14px; display: block; }
.step-title { font-size: 16px; font-weight: 800; color: var(--text-primary); margin-bottom: 10px; }
.step-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 80px; }
.feature-card { background: var(--bg-card); border: 1.5px solid var(--border-gold); border-radius: 18px; padding: 28px 22px; transition: var(--transition-smooth); }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(120,70,10,.10); border-color: var(--color-gold); }
.feature-icon { font-size: 34px; margin-bottom: 14px; display: block; }
.feature-title { font-size: 15px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.feature-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

.benchmark-section { margin-bottom: 80px; }
.benchmark-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; border-radius: 18px; overflow: hidden; border: 1.5px solid var(--border-gold); box-shadow: 0 8px 32px rgba(120,70,10,.08); }
.benchmark-table thead tr { background: rgba(254,243,199,.6); }
.benchmark-table th { padding: 16px 20px; font-weight: 800; color: var(--text-dark); border-bottom: 2px solid var(--border-gold); text-align: center; }
.benchmark-table th:first-child { text-align: left; }
.benchmark-table th.col-prisma { color: var(--color-gold); }
.benchmark-table tbody tr { background: var(--bg-card); transition: var(--transition-smooth); }
.benchmark-table tbody tr:nth-child(even) { background: rgba(251,243,219,.30); }
.benchmark-table tbody tr:hover { background: rgba(251,243,219,.60); }
.benchmark-table td { padding: 15px 20px; border-bottom: 1px solid rgba(180,83,9,.07); color: var(--text-muted); text-align: center; vertical-align: middle; }
.benchmark-table td:first-child { text-align: left; font-weight: 700; color: var(--text-dark); }
.benchmark-table tbody tr:last-child td { border-bottom: none; }
.col-no { color: #b45309; }
.col-yes { color: #0f766e; font-weight: 700; }

/* FAQ Moderno e Arejado com Glassmorphism */
.faq-list { 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
  margin-bottom: 60px; 
}

.faq-item { 
  background: var(--bg-obsidian); 
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--border-gold); 
  border-radius: 20px; 
  overflow: hidden; 
  box-shadow: 0 4px 18px rgba(45, 34, 25, 0.03);
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: var(--border-gold-hover);
  box-shadow: 0 8px 28px rgba(45, 34, 25, 0.06);
}

.faq-question { 
  width: 100%; 
  background: none; 
  border: none; 
  padding: 22px 26px; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  cursor: pointer; 
  font-family: 'Fredoka', 'Quicksand', sans-serif; 
  font-size: 15.5px; 
  font-weight: 700; 
  color: var(--text-primary); 
  text-align: left; 
  transition: var(--transition-smooth); 
  gap: 16px; 
}

.faq-question:hover { 
  background: rgba(254, 243, 199, 0.25); 
}

.faq-chevron { 
  font-size: 16px; 
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
  flex-shrink: 0; 
  color: var(--color-gold); 
}

.faq-item.open .faq-question {
  border-bottom: 1.5px solid rgba(180, 83, 9, 0.09);
  background: rgba(254, 243, 199, 0.22);
}

.faq-item.open .faq-chevron { 
  transform: rotate(180deg); 
}

.faq-answer { 
  max-height: 0; 
  overflow: hidden; 
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease; 
  font-size: 14px; 
  color: var(--text-muted); 
  line-height: 1.7; 
  padding: 0 26px; 
}

.faq-item.open .faq-answer { 
  max-height: 1000px; 
  padding: 20px 26px 28px 26px; 
}

.faq-answer p {
  margin: 0;
}

.footer-cta { text-align: center; padding: 50px 20px 30px; border-top: 1.5px solid var(--border-gold); margin-top: 20px; }
.footer-links { margin-top: 20px; display: flex; justify-content: center; gap: 24px; font-size: 13px; color: var(--text-muted); font-weight: 600; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--color-gold); }

.billing-toggle {
  display: flex;
  width: 100%;
  max-width: 420px;
  background: rgba(0, 0, 0, 0.04);
  border: 1.5px solid var(--border-gold);
  border-radius: 16px;
  padding: 4px;
  margin: 20px auto 30px;
  box-sizing: border-box;
}

.billing-toggle button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-family: 'Quicksand', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.billing-toggle button.active {
  background: var(--color-gold);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.2);
}

.economy-badge {
  background: rgba(15, 118, 110, 0.12);
  color: var(--color-daniel);
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  border: 1px solid rgba(15, 118, 110, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-block;
}

.billing-toggle button.active .economy-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}
.plans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.plan-card { position: relative; cursor: pointer; display: flex; flex-direction: column; height: 100%; transition: var(--transition-smooth); }
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(180,83,9,.08); border-color: var(--border-gold-hover); }
.plan-card.selected { border-color: var(--color-gold); box-shadow: 0 15px 35px rgba(180,83,9,.12), inset 0 0 0 2px var(--color-gold); }
.plan-card.selected:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(180,83,9,.15), inset 0 0 0 2px var(--color-gold); }
.plan-badge { position: absolute; top: -12px; right: 24px; background: linear-gradient(135deg,var(--color-samuel),var(--color-safira)); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 14px; border-radius: 99px; text-transform: uppercase; letter-spacing: .5px; box-shadow: 0 4px 10px rgba(180,83,9,.25); }
.plan-icon { font-size: 38px; margin-bottom: 12px; }
.plan-name { font-size: 22px; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.plan-desc { color: var(--text-muted); font-size: 14.5px; margin-bottom: 24px; line-height: 1.6; flex-grow: 1; }
.plan-price { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1.5px dashed var(--border-gold); }
.price-original { color: var(--text-muted); font-size: 13.5px; text-decoration: line-through; margin-bottom: 2px; }
.checkout-price-tag { font-size: 44px; font-family: 'Fredoka',sans-serif; font-weight: 700; color: var(--text-primary); }
.checkout-price-tag sup { font-size: 20px; vertical-align: top; margin-top: 6px; display: inline-block; }
.price-period { color: var(--text-muted); font-size: 15px; font-weight: 600; }
.price-economy { color: var(--color-daniel); font-size: 13.5px; font-weight: 700; margin-top: 4px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 10px; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.check-icon { color: var(--color-daniel); font-weight: bold; flex-shrink: 0; }
.vip-icon { color: var(--color-samuel); font-weight: bold; flex-shrink: 0; }
.discipline-selector { margin-top: 20px; background: rgba(0,0,0,.02); border: 1px solid var(--border-gold); border-radius: 14px; padding: 16px; }
.discipline-selector label { display: block; font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 10px; }
.disc-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; box-sizing: border-box; }
.disc-btn { width: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1.5px solid var(--border-gold); background: rgba(255,255,255,.6); color: var(--text-muted); font-family: 'Quicksand',sans-serif; padding: 10px 2px; border-radius: 12px; cursor: pointer; transition: var(--transition-smooth); box-sizing: border-box; text-align: center; }
.disc-btn-icon { font-size: 18px; display: block; line-height: 1; }
.disc-btn-label { font-size: 11px; font-weight: 700; display: block; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.disc-btn.active { background: var(--color-sofia-light); border-color: var(--color-sofia); color: var(--color-sofia); box-shadow: 0 4px 10px rgba(109,40,217,.1); }
.plan-select-indicator { position: absolute; top: 20px; left: 20px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-gold); display: flex; align-items: center; justify-content: center; transition: var(--transition-smooth); }
.plan-card.selected .plan-select-indicator { background: var(--color-gold); border-color: var(--color-gold); }
.plan-select-indicator::after { content: '✓'; color: #fff; font-size: 12px; font-weight: bold; opacity: 0; transition: opacity .2s; }
.plan-card.selected .plan-select-indicator::after { opacity: 1; }
.checkout-section { margin-top: 30px; }
.summary-box { background: rgba(180,83,9,.03); border: 1.5px dashed var(--border-gold); border-radius: 16px; padding: 20px; margin-bottom: 30px; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14.5px; color: var(--text-muted); }
.summary-row.total { font-size: 18px; font-weight: 700; color: var(--text-primary); border-top: 1.5px dashed var(--border-gold); margin-top: 10px; padding-top: 16px; }
.summary-row.promo .promo-value { color: var(--color-daniel); font-weight: 700; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px; }
.error-msg { background: rgba(190,18,60,.08); border: 1.5px solid rgba(190,18,60,.2); color: var(--color-safira); border-radius: 12px; padding: 12px 18px; font-size: 14px; font-weight: 600; margin-bottom: 20px; display: none; }
.error-msg.visible { display: block; }
.btn-subscribe { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; font-size: 18px; font-weight: 800; padding: 16px; box-shadow: 0 8px 24px rgba(180,83,9,.25); }
.btn-subscribe:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }
.spinner { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: none; }

/* Transparent Checkout Additions */
.payment-selector { display: flex; gap: 12px; margin-bottom: 20px; }
.payment-method-btn { flex: 1; padding: 12px; border: 2px solid rgba(180,83,9,0.2); border-radius: 12px; background: transparent; color: var(--text-muted); font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; font-family: 'Fredoka', sans-serif; transition: all 0.2s; }
.payment-method-btn.active { border-color: var(--color-gold); background: rgba(180,83,9,0.05); color: var(--text-primary); }
.renew-toggle-container { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 10px 14px; background: rgba(255,255,255,0.03); border-radius: 8px; border: 1px dashed rgba(180,83,9,0.2); }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 15px; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* --- Landing Page 2.0 Estilos Adicionais --- */
.map-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  background: rgba(255, 255, 255, 0.4);
  border: 1.5px solid var(--border-gold);
  border-radius: 24px;
  padding: 40px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.map-islands {
  display: flex;
  justify-content: space-around;
  width: 100%;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 2;
}
.map-island {
  background: var(--bg-card);
  border: 2px solid var(--border-gold);
  border-radius: 20px;
  padding: 20px 15px;
  width: 160px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(120,70,10,0.04);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: default;
}
.map-island:hover {
  transform: translateY(-8px);
  border-color: var(--color-gold);
  box-shadow: 0 16px 32px rgba(180,83,9,0.12);
}
.map-island.unlocked {
  background: linear-gradient(135deg, rgba(254,243,199,0.9), rgba(253,230,138,0.9));
  border-color: #d97706;
}
.map-island.locked {
  opacity: 0.65;
  border-style: dashed;
  background: rgba(0,0,0,0.02);
}
.island-icon {
  font-size: 38px;
  margin-bottom: 8px;
  display: block;
}
.island-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.island-status {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-gold);
  text-transform: uppercase;
}
.island-status.lock-txt {
  color: var(--text-muted);
}

/* Parent dashboard mockup styles */
.dashboard-mockup {
  background: var(--bg-obsidian-light);
  border: 1.5px solid var(--border-gold);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 12px 32px rgba(120,70,10,0.05);
  backdrop-filter: blur(12px);
}
.chart-bar-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}
.chart-bar-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
.chart-bar-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}
.chart-bar-track {
  height: 12px;
  background: rgba(0,0,0,0.05);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.chart-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}
.chart-bar-value {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-gold);
  text-align: right;
}

/* --- Prevenção de Overflow Global --- */
html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
}

.app-container {
  width: 100%;
  max-width: 1100px;
  overflow-x: clip;
}

/* --- Simulador de Mascote --- */
.sim-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.sim-btn {
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid var(--border-gold);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.sim-btn:hover, .sim-btn.active {
  background: var(--bg-card);
  border-color: var(--color-gold);
  color: var(--color-gold);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.15);
}

/* --- Roadmap Grid --- */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.roadmap-item {
  background: var(--bg-card);
  border: 1.5px solid var(--border-gold);
  border-radius: 16px;
  padding: 18px 14px;
  text-align: center;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(120, 70, 10, 0.04);
}
.roadmap-item.active {
  border-color: var(--color-gold);
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.8), rgba(253, 230, 138, 0.5));
}
.roadmap-item.pending {
  opacity: 0.75;
  background: rgba(0, 0, 0, 0.02);
  border-style: dashed;
}
.roadmap-item .status {
  font-size: 11px;
  font-weight: 800;
  display: inline-block;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-gold);
}

/* --- Escada de Valores (Ladder Container) --- */
.ladder-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
.ladder-step {
  background: var(--bg-card);
  border: 1.5px solid var(--border-gold);
  border-radius: 20px;
  padding: 24px 20px;
  position: relative;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 24px rgba(120, 70, 10, 0.06);
  display: flex;
  flex-direction: column;
}
.ladder-step:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold-hover);
  box-shadow: 0 12px 32px rgba(180, 83, 9, 0.12);
}
.ladder-step.selected {
  border-color: var(--color-gold);
  box-shadow: 0 12px 32px rgba(180, 83, 9, 0.15), inset 0 0 0 2px var(--color-gold);
}
#card-gratis {
  background: rgba(251, 243, 219, 0.65);
  border: 1.5px solid var(--border-gold);
}
#card-gratis:hover {
  background: rgba(251, 243, 219, 0.85);
  border-color: var(--border-gold-hover);
}
#card-gratis.selected {
  background: rgba(251, 243, 219, 0.95);
  border-color: var(--color-gold);
  box-shadow: 0 12px 32px rgba(180, 83, 9, 0.15), inset 0 0 0 2px var(--color-gold);
}
.ladder-badge {
  display: inline-block;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  align-self: flex-start;
}

/* --- Tabela Responsiva --- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
  margin-bottom: 80px;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.04); }
}

/* --- Breakpoints de Responsividade contra Overflow --- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  .ladder-container {
    grid-template-columns: 1fr;
  }
  .map-islands {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-cell {
    padding: 18px 12px;
  }
  .stat-cell:nth-child(2) {
    border-right: none;
  }
  .stat-cell:nth-child(3) {
    border-top: 1.5px solid var(--border-gold);
  }
  .stat-cell:nth-child(4) {
    border-top: 1.5px solid var(--border-gold);
    border-right: none;
  }
  .steps-grid, .features-grid, .plans-grid {
    grid-template-columns: 1fr;
  }
  .form-row-2, .form-row-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .chart-bar-row {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }
  .glass-panel {
    padding: 20px 16px;
  }
}

@media (max-width: 480px) {
  .stats-bar {
    grid-template-columns: 1fr;
  }
  .stat-cell {
    border-right: none !important;
    border-bottom: 1.5px solid var(--border-gold);
  }
  .stat-cell:last-child {
    border-bottom: none;
  }
  .map-island {
    width: 100%;
    max-width: 280px;
  }
  /* grid handles mobile layout */
}

/* ===== REUSABLE DESIGN SYSTEM COMPONENTS ===== */

/* --- 1. Sistema Unificado de Cards de Conteúdo --- */
.ui-card,
.achievement-card,
.studio-card,
.premio-card,
.badge-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-gold);
  border-radius: 20px;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 24px rgba(120, 70, 10, 0.05);
  position: relative;
}
.ui-card:hover,
.achievement-card:hover,
.studio-card:hover,
.premio-card:hover,
.badge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(120, 70, 10, 0.12);
  border-color: var(--color-gold);
}

/* --- 2. Sistema Unificado de Abas & Filtros --- */
.ui-tab-btn,
.tab-btn,
.loja-tab-btn,
.filter-tab-btn {
  padding: 9px 16px;
  border-radius: 13px;
  border: 1.5px solid var(--border-gold);
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
  font-family: 'Fredoka', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ui-tab-btn.active,
.tab-btn.active,
.loja-tab-btn.active,
.filter-tab-btn.active,
.ui-tab-btn:hover,
.tab-btn:hover,
.loja-tab-btn:hover,
.filter-tab-btn:hover {
  background: linear-gradient(135deg, var(--color-sofia-start), var(--color-sofia-end));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.2);
}

/* --- 3. Sistema Unificado de Barras de Progresso --- */
.ui-progress-track,
.progress-bar-bg,
.progresso-container {
  width: 100%;
  height: 8px;
  background: rgba(139, 92, 246, 0.08);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
  margin: 12px 0 18px 0;
}
.ui-progress-fill,
.progress-bar-fill,
.progresso-bar {
  height: 100%;
  background: linear-gradient(90deg, #ec4899, #8b5cf6, #06b6d4);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 4. Sistema Unificado de Badges e Tags --- */
.ui-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  line-height: 1.2;
  white-space: nowrap;
  font-family: 'Fredoka', sans-serif;
}
.ui-badge-gold, .custo-tag {
  background: var(--color-safira-light);
  border: 1px solid var(--border-gold);
  color: var(--color-safira);
  font-weight: 800;
  border-radius: 10px;
}
.ui-badge-teal, .status-badge-completed {
  background: rgba(15, 118, 110, 0.1);
  border: 1px solid rgba(15, 118, 110, 0.3);
  color: var(--color-daniel-end);
  font-weight: 800;
  border-radius: 8px;
}
.ui-badge-gray, .status-badge-locked {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 700;
  border-radius: 8px;
}

/* ===== PAGE: conquistas.html ===== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 20px;
  margin-top: 25px;
}
.achievement-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.achievement-card.locked {
  opacity: 0.65;
  background: rgba(255, 255, 255, 0.25);
}
.achievement-card.unlocked-unclaimed {
  border-color: var(--color-sofia);
  box-shadow: 0 0 20px rgba(109, 40, 217, 0.2);
  animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
  0% { box-shadow: 0 0 15px rgba(109, 40, 217, 0.15); }
  50% { box-shadow: 0 0 25px rgba(109, 40, 217, 0.35); }
  100% { box-shadow: 0 0 15px rgba(109, 40, 217, 0.15); }
}
.achievement-card.completed {
  border-color: var(--color-daniel);
  background: rgba(15, 118, 110, 0.04);
}
.tier-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.tier-bronze   { background: rgba(217, 119, 6, 0.12); color: #b45309; border: 1px solid rgba(217, 119, 6, 0.3); }
.tier-prata    { background: rgba(148, 163, 184, 0.18); color: #475569; border: 1px solid rgba(148, 163, 184, 0.4); }
.tier-ouro     { background: rgba(234, 179, 8, 0.18); color: #a16207; border: 1px solid rgba(234, 179, 8, 0.4); }
.tier-diamante { background: rgba(168, 85, 247, 0.18); color: #7e22ce; border: 1px solid rgba(168, 85, 247, 0.4); }

.achievement-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.achievement-icon {
  font-size: 34px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.achievement-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 2px;
  line-height: 1.25;
}
.achievement-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
  flex-grow: 1;
  margin-bottom: 15px;
}
.achievement-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed rgba(180, 83, 9, 0.15);
  padding-top: 12px;
  margin-top: auto;
}
.reward-badge {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--color-safira-end);
  display: flex;
  align-items: center;
  gap: 4px;
}
.btn-claim {
  background: linear-gradient(135deg, var(--color-sofia-start), var(--color-sofia-end));
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
  transition: var(--transition-smooth);
  font-family: 'Fredoka', sans-serif;
}
.btn-claim:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(109, 40, 217, 0.4);
}

/* ===== PAGE: estudio.html ===== */
.studio-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 30px;
  margin-top: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .studio-layout {
    grid-template-columns: 1fr;
  }
}
.preview-stage {
  background: radial-gradient(circle at center, rgba(254, 243, 199, 0.4) 0%, rgba(251, 243, 219, 0.9) 100%);
  border: 2px solid var(--border-gold);
  border-radius: 28px;
  padding: 35px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 20px;
  box-shadow: 0 16px 40px rgba(120, 70, 10, 0.08);
  backdrop-filter: blur(12px);
}
.avatar-display-wrap {
  position: relative;
  padding: 20px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.avatar-display-wrap:hover {
  transform: scale(1.05);
}
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.studio-card {
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
}
.studio-card.active-equipped {
  border-color: var(--color-daniel);
  background: var(--color-daniel-light);
  box-shadow: 0 0 15px var(--glow-daniel);
}
.studio-card.pro-item {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.03);
}
.card-preview-icon {
  font-size: 38px;
  margin-bottom: 10px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-item-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.card-price-tag {
  font-size: 11.5px;
  font-weight: 800;
  margin-top: auto;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-gold);
}

/* ===== PAGE: premios.html ===== */
.premios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 25px;
}
.premio-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.premio-image {
  font-size: 48px;
  text-align: center;
  margin: 15px 0;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
}
.custo-tag {
  padding: 6px 12px;
  font-size: 13px;
  display: inline-block;
  margin-bottom: 12px;
}
.loja-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 25px;
}
.resgate-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}
.resgate-ticket-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-gold);
  padding: 14px 18px;
  border-radius: 14px;
  flex-wrap: wrap;
}
.ticket-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ticket-title {
  font-weight: 800;
  font-size: 15px;
  color: var(--text-color);
}
.ticket-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.code-box {
  font-family: monospace;
  background: var(--color-daniel-light);
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--color-daniel);
  font-weight: 800;
  border: 1.5px solid rgba(49, 151, 149, 0.3);
  letter-spacing: 1px;
  font-size: 14px;
  display: inline-block;
  white-space: nowrap;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

/* ===== PAGE: nivelamento.html ===== */
.mascote-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.prisminha-avatar {
  width: 80px;
  height: 80px;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px var(--glow-daniel));
}
.dica-box {
  margin-top: 15px;
  padding: 15px;
  background: var(--color-daniel-light);
  border: 2px solid rgba(49, 151, 149, 0.25);
  border-radius: 12px;
  font-size: 14px;
  color: var(--color-daniel);
  font-weight: 600;
  display: none;
}
.opcoes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
}
.card-resultado {
  text-align: center;
  display: none;
}
.trofeu-icon {
  font-size: 60px;
  margin-bottom: 15px;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px var(--glow-samuel));
}

/* ===== PAGE: assinatura-confirmada.html ===== */
.card-confirmacao {
  max-width: 520px;
  width: 100%;
  text-align: center;
  margin: 60px auto;
  padding: 45px 35px;
}
.icon-confirmacao {
  font-size: 72px;
  margin-bottom: 24px;
  animation: float 4s ease-in-out infinite;
}
.steps {
  text-align: left;
  background: rgba(180, 83, 9, 0.03);
  border: 1.5px dashed var(--border-gold);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.step-num {
  background: var(--color-gold);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.actions-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* ==========================================================================
   SISTEMA DE OFENSIVA (STREAKS) & PLAYER CARD (PERFIL DE OSTENTAÇÃO)
   ========================================================================== */

/* Componente de Ofensiva Diária */
.stat-item.streak {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(234, 179, 8, 0.15));
  border: 1.5px solid rgba(249, 115, 22, 0.4);
  color: #c2410c;
  font-weight: 800;
}
.stat-item.streak span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Player Card de Ostentação (Perfil Moderno Estilo Esports/Brawl Stars) */
.player-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(254, 243, 199, 0.6));
  border: 2px solid var(--border-gold);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(180, 83, 9, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.player-card-header {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.player-avatar-stage {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.player-info-main {
  flex: 1;
  min-width: 250px;
}

.player-title-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: linear-gradient(135deg, #fef08a, #f59e0b);
  color: #78350f;
  margin-bottom: 8px;
}

.player-name-big {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.player-stats-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.player-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--border-gold);
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Grid de Badges Neon de Ostentação */
.badges-neon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.badge-neon-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--border-gold);
  border-radius: 18px;
  padding: 16px;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  cursor: default;
}

.badge-neon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.badge-neon-card.unlocked {
  border-color: #a855f7;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2);
}

.badge-neon-card.locked {
  opacity: 0.55;
  filter: grayscale(0.8);
}

.badge-icon-wrap {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px auto;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.badge-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.3;
}




/* Grid de Ações do Perfil (Mobile & Desktop) */
.perfil-actions-grid {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 500px;
}

.perfil-actions-grid .btn {
  flex: 1;
  text-align: center;
  text-transform: none;
  font-size: 13px;
  padding: 12px 16px;
}

@media (max-width: 768px) {
  .perfil-actions-grid {
    flex-direction: column !important;
    gap: 10px !important;
    max-width: 100% !important;
  }
  .perfil-actions-grid .btn {
    width: 100% !important;
    flex: none !important;
  }
}

@media (max-width: 600px) {
  .perfil-actions-grid {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .perfil-actions-grid .btn {
    width: 100% !important;
  }
}

/* ===== OTIMIZAÇÃO DO HEADER NO MOBILE ===== */
@media (max-width: 768px) {
  header {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    border-radius: 18px !important;
    margin-top: 10px !important;
    margin-bottom: 20px !important;
    text-align: center;
  }

  .logo-container {
    justify-content: center !important;
    width: 100% !important;
  }

  .header-user-widget {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .header-stats {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .stat-item {
    padding: 5px 10px !important;
    font-size: 11px !important;
    margin: 0 !important;
  }

  #headerBadgeAssinatura {
    margin-left: 0 !important;
    padding: 5px 10px !important;
  }
}

/* ===== MELHORIAS DE UX & DESIGN AMIGÁVEL NO ADMIN ===== */
.admin-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 10px 0 40px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 20px;
  width: 100%;
}

@media (max-width: 992px) {
  .admin-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    width: 100% !important;
  }
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 25px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid var(--border-gold);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(109, 40, 217, 0.1);
}

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

.metric-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  font-size: 13.5px;
}

.admin-table th {
  padding: 12px 14px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #78350f;
  background: rgba(254, 243, 199, 0.85);
  border-bottom: 2px solid var(--border-gold);
  letter-spacing: 0.5px;
  text-align: left;
}

.admin-table th:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.admin-table th:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.admin-table td {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1.5px solid var(--border-gold);
  border-bottom: 1.5px solid var(--border-gold);
  border-right: 1.5px solid rgba(217, 119, 6, 0.15); /* Divisória vertical nítida entre colunas */
  vertical-align: middle;
}

.admin-table td:last-child {
  border-right: 1.5px solid var(--border-gold);
}

.admin-table tr td:first-child {
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  border-left: 1.5px solid var(--border-gold);
}

.admin-table tr td:last-child {
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

.admin-table tr:hover td {
  background: rgba(245, 230, 200, 0.5);
}

@media (min-width: 769px) {
  .user-cell-info {
    align-items: flex-start !important;
    text-align: left !important;
  }
}

/* Modificação para Mobile: Transformar Tabela em Cartões Individuais Clarinhas e Organizadas */
@media (max-width: 768px) {
  .admin-table, .admin-table thead, .admin-table tbody, .admin-table th, .admin-table td, .admin-table tr {
    display: block;
    width: 100%;
  }

  .admin-table thead {
    display: none; /* Esconde o cabeçalho truncado no celular */
  }

  .admin-table tr {
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1.5px solid var(--border-gold);
    border-radius: 20px;
    padding: 14px 16px;
    box-shadow: 0 4px 15px rgba(45, 34, 25, 0.06);
    box-sizing: border-box;
  }

  .admin-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px dashed rgba(217, 119, 6, 0.2) !important;
    border-radius: 0 !important;
    font-size: 13.5px;
  }

  .admin-table td:last-child {
    border-bottom: none !important;
    padding-top: 12px !important;
  }

  .admin-table td::before {
    content: attr(data-label);
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: #78350f;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    margin-right: 12px;
  }

  .admin-table td > div {
    text-align: right;
  }
}

.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 240px;
  font-size: 13.5px;
  padding: 10px 16px;
  border-radius: 14px;
}
