/* Design System Claymorphic 3D - Simulado de Matemática */

:root {
  /* Cores - Identidade Pastel Claymorphic */
  --bg-app: linear-gradient(135deg, #E6DCFF 0%, #F5EFEB 100%);
  --bg-panel: #FAF7F4;
  --bg-card: #FFFFFF;
  
  --text-primary: #2D2544;
  --text-secondary: #6A5F8A;
  --text-muted: #A096C0;
  
  /* Cores Temáticas Pastel Vibrante */
  --purple: #734CEC;
  --purple-light: #A285F5;
  --purple-soft: #F1EEFD;
  
  --pink: #FF4D79;
  --pink-light: #FF789E;
  --pink-soft: #FFF0F4;
  
  --yellow: #FFB020;
  --yellow-light: #FFCC66;
  --yellow-soft: #FFFBF0;
  
  --blue: #2D82FE;
  --blue-light: #6BB2FF;
  --blue-soft: #EBF3FE;
  
  --green: #0BC475;
  --green-light: #5BE5A9;
  --green-soft: #EBFBF3;
  
  /* Fontes */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Nunito', sans-serif;
  
  /* Sombras Claymorphic */
  --shadow-clay-card: 10px 10px 20px rgba(106, 95, 138, 0.05), 
                      -10px -10px 20px #FFFFFF, 
                      inset 0px -4px 6px rgba(0, 0, 0, 0.02), 
                      inset 0px 4px 6px #FFFFFF;
                      
  --shadow-clay-card-flat: inset 3px 3px 6px rgba(106, 95, 138, 0.05),
                           inset -3px -3px 6px #FFFFFF;
                           
  --shadow-clay-btn-purple: 0px 8px 16px rgba(115, 76, 236, 0.25), 
                            inset 0px -4px 8px rgba(0, 0, 0, 0.2), 
                            inset 0px 4px 8px rgba(255, 255, 255, 0.4);
                            
  --shadow-clay-btn-pink: 0px 8px 16px rgba(255, 77, 121, 0.25), 
                          inset 0px -4px 8px rgba(0, 0, 0, 0.2), 
                          inset 0px 4px 8px rgba(255, 255, 255, 0.4);
}

/* Reset Geral */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg-app);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Layout Estrutural SPA */
.app-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
  padding: 20px;
  gap: 20px;
  box-sizing: border-box;
}

/* --- BARRA LATERAL (SIDEBAR ROXA) --- */
.sidebar {
  width: 280px;
  background: linear-gradient(180deg, #A285F5 0%, #734CEC 100%);
  border-radius: 32px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  box-shadow: 12px 12px 24px rgba(115, 76, 236, 0.15), 
              inset -4px -6px 8px rgba(0, 0, 0, 0.12), 
              inset 4px 4px 8px rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  z-index: 10;
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
}

.avatar-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.profile-welcome {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  color: #FFFFFF;
}

.profile-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

/* Navegação Sidebar */
.sidebar-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  width: 100%;
  border: none;
  background: none;
  border-radius: 20px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-icon {
  flex-shrink: 0;
  opacity: 0.85;
  transition: all 0.25s;
}

.nav-item:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.nav-item.active {
  background: #FFFFFF;
  color: var(--purple);
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.08), 
              inset 0px -2px 4px rgba(0, 0, 0, 0.04), 
              inset 0px 2px 4px rgba(115, 76, 236, 0.2);
  transform: scale(1.02);
}

.nav-item.active .nav-icon {
  color: var(--purple);
  opacity: 1;
}

/* Card Go Premium na Sidebar */
.premium-card {
  background: var(--pink-soft);
  border-radius: 24px;
  padding: 20px;
  text-align: center;
  margin-top: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0px -4px 8px rgba(0, 0, 0, 0.04), 
              inset 0px 4px 8px #ffffff, 
              0px 8px 16px rgba(255, 77, 121, 0.08);
}

.premium-crown-wrapper {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -45px;
  box-shadow: 0 4px 10px rgba(255, 77, 121, 0.15), 
              inset 0 -2px 4px rgba(0,0,0,0.05), 
              inset 0 2px 4px white;
}

.premium-crown-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.premium-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--pink);
  margin-top: 4px;
}

.premium-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.btn-upgrade-now {
  width: 100%;
  background: linear-gradient(135deg, var(--pink-light) 0%, var(--pink) 100%);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 12px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-clay-btn-pink);
}

.btn-upgrade-now:hover {
  transform: translateY(-2px);
  box-shadow: 0px 10px 20px rgba(255, 77, 121, 0.35), 
              inset 0px -4px 8px rgba(0, 0, 0, 0.2), 
              inset 0px 4px 8px rgba(255, 255, 255, 0.4);
}

.btn-upgrade-now:active {
  transform: translateY(1px);
  box-shadow: 0px 4px 8px rgba(255, 77, 121, 0.2), 
              inset 0px -2px 4px rgba(0, 0, 0, 0.2), 
              inset 0px 2px 4px rgba(255, 255, 255, 0.4);
}


/* --- PAINEL CENTRAL DE CONTEÚDO --- */
.content-panel {
  flex: 1;
  background: var(--bg-panel);
  border-radius: 32px;
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 12px 12px 24px rgba(106, 95, 138, 0.03), 
              inset 0px -4px 8px rgba(0, 0, 0, 0.01), 
              inset 0px 4px 8px #FFFFFF;
  box-sizing: border-box;
  overflow-y: auto;
  height: 100%;
}

/* Custom scrollbar para o painel */
.content-panel::-webkit-scrollbar {
  width: 8px;
}
.content-panel::-webkit-scrollbar-track {
  background: transparent;
}
.content-panel::-webkit-scrollbar-thumb {
  background: rgba(115, 76, 236, 0.15);
  border-radius: 4px;
}
.content-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(115, 76, 236, 0.25);
}

/* Cabeçalho do Painel Central */
.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.search-bar-wrapper {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 10px 18px;
  gap: 12px;
  box-shadow: 6px 6px 12px rgba(106, 95, 138, 0.02), 
              -6px -6px 12px #FFFFFF, 
              inset 0px -2px 4px rgba(0, 0, 0, 0.02), 
              inset 0px 2px 4px #FFFFFF;
}

.search-icon {
  color: var(--text-muted);
}

.search-input {
  border: none;
  background: none;
  outline: none;
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.header-right-actions {
  display: flex;
  gap: 12px;
}

.header-action-btn {
  width: 46px;
  height: 46px;
  border: none;
  background: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  position: relative;
  transition: all 0.2s;
  box-shadow: 4px 4px 8px rgba(106, 95, 138, 0.03), 
              -4px -4px 8px #FFFFFF, 
              inset 0px -2px 4px rgba(0, 0, 0, 0.02), 
              inset 0px 2px 4px #FFFFFF;
}

.header-action-btn:hover {
  transform: translateY(-2px);
  color: var(--purple);
}

.notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  background: var(--pink);
  color: white;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(255, 77, 121, 0.35);
}

/* Alternância de Abas SPA */
.tab-content {
  display: none;
  animation: tabFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* ================= ABA 1: DASHBOARD ================= */
.dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Banner de Boas-Vindas */
.welcome-banner {
  background: linear-gradient(135deg, #B59EFC 0%, #8561FC 100%);
  border-radius: 28px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0px 12px 24px rgba(133, 97, 252, 0.22), 
              inset 0px -6px 12px rgba(0, 0, 0, 0.15), 
              inset 0px 6px 12px rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
}

.welcome-text-container {
  flex: 1;
  z-index: 2;
  max-width: 520px;
}

.welcome-title {
  font-family: var(--font-title);
  font-size: 2.1rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.welcome-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

.btn-play-simulado {
  border: none;
  background: #FFFFFF;
  color: var(--purple);
  border-radius: 18px;
  padding: 14px 26px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0px 6px 12px rgba(0,0,0,0.06), 
              inset 0px -3px 6px rgba(0, 0, 0, 0.05), 
              inset 0px 3px 6px rgba(255, 255, 255, 0.9);
}

.btn-play-simulado:hover {
  transform: translateY(-2px);
  box-shadow: 0px 10px 20px rgba(0,0,0,0.1), 
              inset 0px -4px 8px rgba(0, 0, 0, 0.05), 
              inset 0px 4px 8px rgba(255, 255, 255, 0.9);
}

.btn-play-simulado:active {
  transform: translateY(1px);
}

.welcome-image-container {
  width: 240px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.welcome-banner-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(4px 10px 15px rgba(0,0,0,0.15));
}

/* Grid de Métricas (4 Colunas) */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.metric-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-clay-card);
  transition: transform 0.2s;
}

.metric-card:hover {
  transform: translateY(-2px);
}

.metric-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0px -2px 4px rgba(0,0,0,0.05), 
              inset 0px 2px 4px rgba(255, 255, 255, 0.8);
}

.card-purple .metric-icon-wrapper { background: var(--purple-soft); color: var(--purple); }
.card-pink .metric-icon-wrapper { background: var(--pink-soft); color: var(--pink); }
.card-yellow .metric-icon-wrapper { background: var(--yellow-soft); color: var(--yellow); }
.card-blue .metric-icon-wrapper { background: var(--blue-soft); color: var(--blue); }

.metric-details {
  display: flex;
  flex-direction: column;
}

.metric-title {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.metric-value {
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  margin: 2px 0;
}

.metric-trend {
  font-size: 0.75rem;
  font-weight: 700;
}

.text-green {
  color: var(--green);
}

/* Linha de Gráficos */
.charts-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .charts-row {
    grid-template-columns: 1fr;
  }
}

.chart-container-card {
  background: var(--bg-card);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow-clay-card);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chart-header {
  display: flex;
  flex-direction: column;
}

.card-section-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.chart-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Gráfico de Barras 3D */
.bar-chart-3d {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 180px;
  padding-top: 15px;
  box-sizing: border-box;
}

.bar-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 50px;
}

.bar-track {
  width: 18px;
  height: 130px;
  background: #EFECE9;
  border-radius: 10px;
  display: flex;
  align-items: flex-end;
  box-shadow: inset 2px 2px 4px rgba(0,0,0,0.06), 
              inset -2px -2px 4px #FFFFFF;
}

.bar-fill {
  width: 100%;
  border-radius: 10px;
  transition: height 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset -2px -4px 6px rgba(0,0,0,0.16), 
              inset 2px 4px 6px rgba(255,255,255,0.4), 
              0px 4px 8px rgba(0,0,0,0.06);
}

.fill-purple { background: linear-gradient(to top, var(--purple), var(--purple-light)); }
.fill-pink { background: linear-gradient(to top, var(--pink), var(--pink-light)); }
.fill-yellow { background: linear-gradient(to top, var(--yellow), var(--yellow-light)); }
.fill-green { background: linear-gradient(to top, var(--green), var(--green-light)); }
.fill-blue { background: linear-gradient(to top, var(--blue), var(--blue-light)); }

.bar-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Doughnut Chart 3D */
.doughnut-chart-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  padding: 10px 0;
}

.doughnut-3d-ring {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: conic-gradient(
    var(--purple) 0% 40%, 
    var(--pink) 40% 65%, 
    var(--yellow) 65% 80%, 
    var(--green) 80% 90%, 
    var(--blue) 90% 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 6px 12px rgba(106, 95, 138, 0.05), 
              inset 0px -4px 8px rgba(0, 0, 0, 0.15), 
              inset 0px 4px 8px rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

.doughnut-center-hole {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 4px 4px 8px rgba(106, 95, 138, 0.06), 
              inset -4px -4px 8px #FFFFFF;
}

.doughnut-number {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-primary);
  line-height: 1;
}

.doughnut-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.doughnut-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

.legend-color {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0px -1px 2px rgba(0,0,0,0.1), inset 0px 1px 2px rgba(255,255,255,0.5);
}

.color-purple { background: var(--purple); }
.color-pink { background: var(--pink); }
.color-yellow { background: var(--yellow); }
.color-green { background: var(--green); }
.color-blue { background: var(--blue); }

.legend-name {
  color: var(--text-secondary);
  flex: 1;
}

.legend-pct {
  color: var(--text-primary);
  font-weight: 700;
}

/* Listas de Temas e Desafio */
.lists-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .lists-row {
    grid-template-columns: 1fr;
  }
}

.recent-list-card, .daily-mix-card {
  background: var(--bg-card);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow-clay-card);
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.btn-see-all {
  border: none;
  background: #F3EEFF;
  color: var(--purple);
  padding: 6px 14px;
  border-radius: 12px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.03), inset 0 2px 4px white;
}

.recent-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recent-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  background: var(--bg-panel);
  border-radius: 20px;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.02), inset 0 2px 4px white;
}

.recent-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.05), inset 0 2px 4px white;
}

.bg-soft-purple { background: var(--purple-soft); }
.bg-soft-pink { background: var(--pink-soft); }
.bg-soft-yellow { background: var(--yellow-soft); }

.recent-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.recent-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.recent-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.btn-play-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #FFFFFF;
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 2px 3px 6px rgba(106, 95, 138, 0.05), inset 0 -2px 4px rgba(0,0,0,0.05);
  transition: all 0.2s;
}

.btn-play-small:hover {
  transform: scale(1.1);
  color: var(--pink);
}

/* Desafio Diário */
.daily-status-tag {
  background: var(--pink);
  color: white;
  padding: 4px 10px;
  border-radius: 10px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 3px 6px rgba(255, 77, 121, 0.25);
}

.daily-challenge-panel {
  background: linear-gradient(135deg, #FFF6E5 0%, #FFE9BF 100%);
  border-radius: 20px;
  padding: 20px;
  box-shadow: inset 0 -4px 8px rgba(0,0,0,0.04), inset 0 4px 8px white;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.challenge-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.05rem;
  color: #8C5300;
  margin-bottom: 4px;
}

.challenge-desc {
  font-size: 0.88rem;
  color: #B27C24;
  line-height: 1.45;
}

.challenge-exp {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--yellow);
  background: white;
  padding: 4px 10px;
  border-radius: 8px;
  margin-top: 6px;
  box-shadow: inset 0 -1px 2px rgba(0,0,0,0.02);
}

.btn-challenge-solve {
  align-self: flex-start;
  background: var(--yellow);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 10px 18px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 8px rgba(255, 176, 32, 0.25), inset 0 -3px 6px rgba(0,0,0,0.15), inset 0 3px 6px rgba(255,255,255,0.4);
}

.btn-challenge-solve:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 176, 32, 0.35), inset 0 -3px 6px rgba(0,0,0,0.15), inset 0 3px 6px rgba(255,255,255,0.4);
}

/* Banner de Rodapé */
.footer-banner-bar {
  background: var(--purple-soft);
  border-radius: 24px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.03), inset 0 3px 6px white;
}

@media (max-width: 600px) {
  .footer-banner-bar {
    flex-direction: column;
    text-align: center;
  }
}

.footer-banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.star-badge-3d {
  width: 44px;
  height: 44px;
  background: #FFF1CD;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: inset 0 -2px 4px rgba(255, 176, 32, 0.2);
}

.footer-banner-text h4 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1rem;
  color: var(--purple);
}

.footer-banner-text p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.btn-footer-cta {
  background: var(--purple);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 12px 20px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-clay-btn-purple);
  flex-shrink: 0;
}

.btn-footer-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(115, 76, 236, 0.35), inset 0 -4px 8px rgba(0,0,0,0.2), inset 0 4px 8px rgba(255,255,255,0.4);
}


/* ================= ABA 2: INTERFACE DE SIMULADO ================= */
.quiz-interface-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quiz-interface-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.quiz-title-badge {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--text-primary);
  font-size: 0.95rem;
  box-shadow: 3px 3px 6px rgba(106, 95, 138, 0.02), inset 0 2px 4px white;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.animate-pulse {
  animation: pulseEffect 2s infinite;
}

@keyframes pulseEffect {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(11, 196, 117, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(11, 196, 117, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(11, 196, 117, 0); }
}

.quiz-time-tracker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quiz-timer-clay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow-soft);
  color: #9C6700;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 6px 16px;
  border-radius: 14px;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.03), inset 0 2px 4px white;
  border: 1px solid rgba(255, 176, 32, 0.1);
}

.timer-clock-icon {
  color: var(--yellow);
}

.quiz-progress-indicator {
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Barra de Progresso 3D */
.progress-bar-container-3d {
  width: 100%;
  height: 12px;
  background: #ECE8E5;
  border-radius: 8px;
  box-shadow: inset 2px 2px 4px rgba(0,0,0,0.08), inset -2px -2px 4px #FFFFFF;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill-3d {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-light), var(--purple));
  border-radius: 8px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset -2px -2px 4px rgba(0,0,0,0.2), inset 2px 2px 4px rgba(255,255,255,0.4);
}

/* Card da Questão */
.quiz-main-card {
  background: var(--bg-card);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow-clay-card);
}

.quiz-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid #F1ECE8;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.quiz-card-lbl {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.text-resizer {
  display: flex;
  gap: 6px;
}

.btn-resize-txt {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: var(--bg-panel);
  color: var(--text-secondary);
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.03), inset 0 2px 4px white;
}

.btn-resize-txt:hover {
  background: #FFFFFF;
  color: var(--purple);
  box-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

.question-body-panel {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.option-card-3d {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  border: 1.5px solid transparent;
  background: var(--bg-panel);
  border-radius: 20px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 4px 8px rgba(106, 95, 138, 0.02), 
              -4px -4px 8px #FFFFFF, 
              inset 0px -3px 6px rgba(0, 0, 0, 0.04), 
              inset 0px 3px 6px #FFFFFF;
  text-align: left;
}

.option-card-3d:hover:not(.disabled) {
  transform: translateY(-2px);
  box-shadow: 6px 8px 16px rgba(115, 76, 236, 0.08), 
              -6px -6px 16px #FFFFFF, 
              inset 0px -3px 6px rgba(0, 0, 0, 0.02), 
              inset 0px 3px 6px #FFFFFF;
  border-color: rgba(115, 76, 236, 0.15);
}

.option-card-3d:active:not(.disabled) {
  transform: translateY(1px);
  box-shadow: inset 2px 2px 4px rgba(106, 95, 138, 0.05), inset -2px -2px 4px #FFFFFF;
}

.option-badge-3d {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--text-secondary);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.05), inset 0 2px 4px white;
  flex-shrink: 0;
  transition: all 0.2s;
}

.option-card-3d:hover:not(.disabled) .option-badge-3d {
  background: var(--purple);
  color: white;
  box-shadow: 0 3px 6px rgba(115, 76, 236, 0.25);
}

.option-text-3d {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
  flex: 1;
}

/* Estados da Opção pós-seleção */
.option-card-3d.correct {
  background: var(--green-soft) !important;
  border-color: var(--green) !important;
  box-shadow: 0 4px 10px rgba(11, 196, 117, 0.15), inset 0 -3px 6px rgba(0,0,0,0.02);
}

.option-card-3d.correct .option-badge-3d {
  background: var(--green) !important;
  color: white !important;
}

.option-card-3d.incorrect {
  background: var(--pink-soft) !important;
  border-color: var(--pink) !important;
  box-shadow: 0 4px 10px rgba(255, 77, 121, 0.15), inset 0 -3px 6px rgba(0,0,0,0.02);
}

.option-card-3d.incorrect .option-badge-3d {
  background: var(--pink) !important;
  color: white !important;
}

.option-card-3d.disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Painel de Explicação Slide Up */
.explanation-slide-panel {
  margin-top: 24px;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.explanation-clay-card {
  padding: 22px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1.5px solid transparent;
}

.explanation-clay-card.correct-feedback {
  background: var(--green-soft);
  border-color: rgba(11, 196, 117, 0.2);
}

.explanation-clay-card.incorrect-feedback {
  background: var(--pink-soft);
  border-color: rgba(255, 77, 121, 0.2);
}

.feedback-tag-3d {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 10px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.correct-feedback .feedback-tag-3d {
  background: var(--green);
  color: white;
  box-shadow: 0 3px 6px rgba(11, 196, 117, 0.25);
}

.incorrect-feedback .feedback-tag-3d {
  background: var(--pink);
  color: white;
  box-shadow: 0 3px 6px rgba(255, 77, 121, 0.25);
}

.explanation-card-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.explanation-card-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.explanation-card-body strong {
  color: var(--text-primary);
}

.quiz-action-bar {
  display: flex;
  justify-content: flex-end;
}

.btn-primary-3d {
  border: none;
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple) 100%);
  color: white;
  border-radius: 16px;
  padding: 14px 28px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-clay-btn-purple);
}

.btn-primary-3d:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(115, 76, 236, 0.35), inset 0 -4px 8px rgba(0,0,0,0.2), inset 0 4px 8px rgba(255,255,255,0.4);
}

.btn-primary-3d:active {
  transform: translateY(1px);
}


/* ================= ABA 3: RANKING ================= */
.ranking-interface-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ranking-header-block {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--purple-soft);
  border-radius: 24px;
  padding: 24px;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.03), inset 0 3px 6px white;
}

.trophy-badge-3d {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #FFF1CD;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  box-shadow: inset 0 -3px 6px rgba(255,176,32,0.2);
}

.ranking-intro {
  display: flex;
  flex-direction: column;
}

.ranking-table-card {
  background: var(--bg-card);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow-clay-card);
}

.table-scroller {
  overflow-x: auto;
}

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

.ranking-clay-table th {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 14px 18px;
  border-bottom: 2px solid #F1ECE8;
}

.ranking-clay-table td {
  padding: 14px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1.5px solid #F6F1ED;
}

.ranking-clay-table tbody tr:last-child td {
  border-bottom: none;
}

.ranking-clay-table tr.current-user {
  background: var(--purple-soft);
}

.ranking-clay-table tr.current-user td {
  color: var(--purple);
}

.rank-badge {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--bg-panel);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.05);
}

tr:nth-child(1) .rank-badge { background: #FFF1CD; color: #B38600; }
tr:nth-child(2) .rank-badge { background: #ECECEC; color: #666666; }
tr:nth-child(3) .rank-badge { background: #FFE0D1; color: #B35100; }


/* ================= ABA 4: AJUSTES ================= */
.settings-interface-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.settings-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-clay-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.toggle-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-panel);
  padding: 12px 18px;
  border-radius: 18px;
  margin-top: 8px;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.03);
}

.toggle-label {
  font-weight: 700;
  font-size: 0.92rem;
}

/* Switch Neumorphic */
.switch-neumorphic {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.switch-neumorphic input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-switch {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ECE8E5;
  transition: .3s;
  border-radius: 34px;
  box-shadow: inset 1px 2px 4px rgba(0,0,0,0.08), inset -1px -2px 4px #FFFFFF;
}

.slider-switch:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1), inset 0 2px 2px white;
}

input:checked + .slider-switch {
  background-color: var(--purple-light);
}

input:checked + .slider-switch:before {
  transform: translateX(24px);
  background-color: var(--purple);
}

.btn-action-danger {
  border: none;
  background: var(--pink-soft);
  color: var(--pink);
  border-radius: 16px;
  padding: 14px 20px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.03), inset 0 2px 4px white;
  margin-top: 10px;
}

.btn-action-danger:hover {
  background: var(--pink);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 77, 121, 0.25);
}


/* ================= TELA DE RESULTADOS DO QUIZ ================= */
.results-layout-container {
  display: flex;
  justify-content: center;
}

.results-left-card {
  background: var(--bg-card);
  border-radius: 32px;
  padding: 32px;
  box-shadow: var(--shadow-clay-card);
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.results-main-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.85rem;
  margin-bottom: 6px;
}

.radial-score-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0;
}

.radial-score-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.radial-score-svg .score-circle-bg {
  fill: none;
  stroke: var(--bg-panel);
  stroke-width: 9;
}

.radial-score-svg .score-circle-fill {
  fill: none;
  stroke: linear-gradient(135deg, var(--purple), var(--pink));
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 452.4; /* Circunferência para r=72 */
  stroke-dashoffset: 452.4;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.radial-score-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.radial-score-percent {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 2.8rem;
  color: var(--text-primary);
  line-height: 1;
}

.radial-score-fraction {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.results-feedback-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--purple);
  margin-bottom: 6px;
}

.results-feedback-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 20px;
}

.results-metrics-row {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-bottom: 24px;
}

.results-metric-pill {
  flex: 1;
  background: var(--bg-panel);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.03), inset 0 2px 4px white;
}

.metric-pill-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.metric-pill-val {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
}

/* Bloco CTA Premium */
.cta-premium-block {
  background: var(--pink-soft);
  border-radius: 24px;
  padding: 24px;
  width: 100%;
  box-shadow: inset 0 -4px 8px rgba(0,0,0,0.03), inset 0 4px 8px white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cta-badge {
  background: var(--pink);
  color: white;
  padding: 4px 10px;
  border-radius: 8px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.cta-premium-block h3 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--pink);
}

.cta-premium-block p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.btn-cta-whatsapp-premium {
  width: 100%;
  border: none;
  background: linear-gradient(135deg, var(--pink-light) 0%, var(--pink) 100%);
  color: white;
  border-radius: 16px;
  padding: 14px 20px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-clay-btn-pink);
  text-decoration: none;
}

.btn-cta-whatsapp-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 77, 121, 0.35), inset 0 -4px 8px rgba(0,0,0,0.2), inset 0 4px 8px rgba(255,255,255,0.4);
}

.btn-retry-quiz {
  border: none;
  background: #FFFFFF;
  color: var(--text-secondary);
  border-radius: 14px;
  padding: 10px 18px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 2px 4px 8px rgba(0,0,0,0.03), inset 0 -2px 4px rgba(0,0,0,0.03), inset 0 2px 4px white;
  transition: all 0.2s;
}

.btn-retry-quiz:hover {
  color: var(--purple);
  transform: scale(1.02);
}


/* --- RODAPÉ DE PÁGINA --- */
.app-footer {
  text-align: center;
  padding: 15px 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: auto;
  border-top: 1.5px solid #F1ECE8;
  flex-shrink: 0;
}


/* ================= MODAL CAPTURA DE LEAD ================= */
.lead-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(45, 37, 68, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.3s ease-out;
}

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

.lead-modal-card {
  background: var(--bg-card);
  border-radius: 32px;
  padding: 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: 15px 15px 35px rgba(45, 37, 68, 0.15), 
              inset -4px -6px 12px rgba(0, 0, 0, 0.02), 
              inset 4px 4px 12px #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: modalScaleUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScaleUp {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lead-modal-decor {
  width: 58px;
  height: 58px;
  background: var(--purple-soft);
  color: var(--purple);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 16px;
  box-shadow: inset 0 -3px 6px rgba(115, 76, 236, 0.15);
}

.lead-modal-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.lead-modal-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 24px;
}

/* Inputs Neumorphic */
.input-neumorphic-group {
  position: relative;
  margin-bottom: 20px;
  width: 100%;
}

.input-neumorphic {
  width: 100%;
  padding: 16px 18px;
  background: var(--bg-panel);
  border: 1.5px solid transparent;
  border-radius: 18px;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  box-shadow: inset 2px 3px 6px rgba(106, 95, 138, 0.05), inset -2px -3px 6px #FFFFFF;
  transition: all 0.2s;
}

.input-neumorphic:focus {
  border-color: var(--purple-light);
  background: #FFFFFF;
  box-shadow: 0 4px 10px rgba(115, 76, 236, 0.05), inset 0 2px 4px rgba(255,255,255,0.8);
}

.label-neumorphic {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-neumorphic:focus ~ .label-neumorphic,
.input-neumorphic:not(:placeholder-shown) ~ .label-neumorphic {
  top: 0px;
  left: 14px;
  transform: translateY(-50%) scale(0.85);
  background: #FFFFFF;
  padding: 0 6px;
  color: var(--purple);
  font-weight: 700;
}

.privacy-notice {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.35;
}

/* Efeito Shimmer de Brilho nos Botões */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 30%;
  height: 200%;
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(30deg);
  animation: shimmerEffect 4s infinite linear;
}

@keyframes shimmerEffect {
  0% { left: -60%; }
  25% { left: 150%; }
  100% { left: 150%; }
}


/* ================= DISPOSITIVOS MÓVEIS (RESPONSIVIDADE) ================= */
@media (max-width: 768px) {
  .app-layout {
    flex-direction: column;
    padding: 10px;
    height: 100vh;
    overflow: hidden;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-radius: 20px;
    gap: 10px;
  }
  
  .profile-section {
    padding: 0;
  }
  
  .profile-info {
    display: none; /* Esconde texto em telas pequenas */
  }
  
  .sidebar-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }
  
  .sidebar-nav ul {
    flex-direction: row;
    gap: 4px;
  }
  
  .nav-item {
    padding: 8px 12px;
    border-radius: 12px;
    gap: 0;
  }
  
  .nav-item span {
    display: none; /* Apenas ícones */
  }
  
  .premium-card {
    display: none; /* Oculta card premium lateral no mobile */
  }
  
  .content-panel {
    border-radius: 20px;
    padding: 16px 20px;
    height: calc(100vh - 120px);
  }
  
  .welcome-banner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 16px;
    padding: 20px;
  }
  
  .welcome-image-container {
    width: 100%;
    height: 100px;
  }
  
  .welcome-text-container {
    max-width: 100%;
  }
  
  .welcome-title {
    font-size: 1.6rem;
  }
  
  .bar-chart-3d {
    height: 150px;
  }
  
  .doughnut-chart-wrapper {
    flex-direction: column;
    align-items: center;
  }
}
