/* ==========================================================================
   ESTILOS PREMIUM - ANÁLISE INTELIGENTE DE SAÚDE CAPILAR
   Inspirado em Apple, Flo, Calm e Headspace
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #9B7BFF;
  --primary-rgb: 155, 123, 255;
  --primary-light: #F2EFFF;
  --primary-hover: #8660FF;
  --accent: #FFD6E7;
  --accent-rgb: 255, 214, 231;
  --accent-dark: #FF85BA;
  --bg: #FAFAFD;
  --bg-gradient: linear-gradient(135deg, #F8F6FF 0%, #FFF5F9 50%, #F5F7FF 100%);
  --card-bg: rgba(255, 255, 255, 0.75);
  --text-main: #2A1B4E;
  --text-light: #7E6E9F;
  --border-color: rgba(155, 123, 255, 0.15);
  --shadow: 0 10px 30px -10px rgba(155, 123, 255, 0.08);
  --shadow-hover: 0 25px 50px -12px rgba(155, 123, 255, 0.15);
  --font-title: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Reset Geral */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto; /* Permite scroll se o conteúdo for maior que a tela */
}

/* Elementos Flutuantes em Background */
.bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.55;
  mix-blend-mode: multiply;
}

.shape-1 {
  width: 450px;
  height: 450px;
  background: #E8DDFF;
  top: -100px;
  right: -100px;
  animation: floatShape 20s infinite alternate;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: #FFE3F0;
  bottom: -100px;
  left: -50px;
  animation: floatShape 25s infinite alternate-reverse;
}

.shape-3 {
  width: 350px;
  height: 350px;
  background: #E3F2FD;
  top: 40%;
  right: 20%;
  animation: floatShape 18s infinite alternate;
}

@keyframes floatShape {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(40px) scale(1.1); }
}

/* ==========================================================================
   TOPO (Navbar da Análise)
   ========================================================================== */
.header-analysis {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(155, 123, 255, 0.08);
  z-index: 10;
  transition: opacity 0.5s ease;
}

.header-container {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-icon {
  font-size: 18px;
}

.header-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.step-indicator {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.estimated-time {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 2px;
}

/* Barra de Progresso */
.progress-bar-container {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  background: rgba(155, 123, 255, 0.08);
  height: 6px;
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-dark) 100%);
  width: 0%;
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
}

/* ==========================================================================
   CONTEÚDO PRINCIPAL (TELA ÚNICA ADAPTATIVA)
   ========================================================================== */
.main-analysis {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 24px;
  position: relative;
  width: 100%;
}

.container-screen {
  max-width: 600px;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

/* Base das Telas */
.screen-panel {
  display: none; /* Inativo fica oculto para não ocupar espaço */
  width: 100%;
  background: var(--card-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  padding: 36px 32px;
  box-shadow: var(--shadow-hover);
}

.screen-panel.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  animation: fadeInSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInSlideUp {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Elementos de Texto */
.screen-headline {
  font-family: var(--font-title);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.screen-subtext {
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 1.55;
  margin-bottom: 24px;
}

/* ==========================================================================
   TELA 0: TELA DE BOAS-VINDAS
   ========================================================================== */
.welcome-badge-ai {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(255, 133, 186, 0.1) 100%);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 24px;
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  animation: shineBadge 4s infinite linear;
}

@keyframes shineBadge {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
  100% { filter: brightness(1); }
}

.welcome-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  margin-bottom: 36px;
}

.benefit-item {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(155, 123, 255, 0.08);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: all 0.3s ease;
}

.benefit-item:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.benefit-icon {
  color: #3CD070;
  font-weight: bold;
  font-size: 16px;
}

.benefit-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
}

/* Botões */
.btn-premium-solid {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-premium-solid:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 35px rgba(var(--primary-rgb), 0.35);
}

.btn-premium-solid:active {
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   TELA 1: CAMPO DE TEXTO (NOME)
   ========================================================================== */
.input-group-premium {
  width: 100%;
  margin-bottom: 24px;
  position: relative;
}

.input-text-premium {
  width: 100%;
  padding: 18px 24px;
  border-radius: 20px;
  border: 1.5px solid rgba(155, 123, 255, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  outline: none;
  transition: all 0.3s ease;
  text-align: center;
}

.input-text-premium:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 5px rgba(var(--primary-rgb), 0.15);
}

/* ==========================================================================
   PERGUNTAS DE MULTIPLA ESCOLHA (BOTÕES GRANDES)
   ========================================================================== */
.options-grid-premium {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Reduzido de 12px */
  width: 100%;
}

.btn-option-premium {
  width: 100%;
  padding: 13px 20px; /* Reduzido de 18px 24px */
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(155, 123, 255, 0.12);
  border-radius: 16px; /* Reduzido de 20px */
  font-family: var(--font-body);
  font-size: 13.5px; /* Reduzido de 14px */
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-option-premium:hover {
  background: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-option-premium.selected {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-hover);
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.1);
}

.btn-option-premium::after {
  content: "→";
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--primary);
  font-weight: bold;
}

.btn-option-premium:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   TELAS INTERMEDIÁRIAS (ANIMAÇÕES DISCRETAS)
   ========================================================================== */
.animation-circle-pulse {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
}

.circle-pulse-core {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%);
  border-radius: 50%;
  z-index: 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

.circle-pulse-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.3;
  z-index: 1;
  animation: pulseWave 2s infinite ease-out;
}

@keyframes pulseWave {
  0% { transform: scale(1); opacity: 0.45; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ==========================================================================
   TELA DE PROCESSAMENTO DA IA
   ========================================================================== */
.processing-panel {
  background: linear-gradient(145deg, #1b0f3a 0%, #0d0620 100%) !important;
  border: 1px solid rgba(155, 123, 255, 0.15) !important;
  color: white !important;
  min-height: 440px; /* Reduzido de 520px */
  justify-content: center;
}

.processing-panel .screen-headline {
  color: white;
}

.processing-panel .screen-subtext {
  color: #a496c5;
}

.ai-processing-icon {
  width: 70px; /* Reduzido de 100px */
  height: 70px; /* Reduzido de 100px */
  margin-bottom: 20px; /* Reduzido de 32px */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-icon-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.4) 0%, rgba(0,0,0,0) 70%);
  animation: pulseAIGlow 2s infinite alternate;
}

@keyframes pulseAIGlow {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 1; }
}

.ai-icon-svg {
  width: 36px; /* Reduzido de 50px */
  height: 36px; /* Reduzido de 50px */
  z-index: 2;
  filter: drop-shadow(0 0 12px var(--primary));
  animation: rotateSVG 15s infinite linear;
}

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

.processing-list {
  text-align: left;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px; /* Reduzido de 12px */
  position: relative;
}

.processing-item {
  display: flex;
  align-items: center;
  gap: 10px; /* Reduzido de 12px */
  font-size: 12.5px; /* Reduzido de 13px */
  font-weight: 500;
  color: #7b6d9e;
  opacity: 0.5;
  transform: translateX(-10px);
  transition: all 0.4s ease;
}

.processing-item.active {
  color: #dcd4ff;
  opacity: 0.85;
  transform: translateX(0);
}

.processing-item.completed {
  color: #3CD070;
  opacity: 1;
  transform: translateX(0);
}

.processing-check {
  font-size: 14px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.processing-item.completed .processing-check::before {
  content: "✓";
  font-weight: bold;
}

.processing-item.active .processing-check::before {
  content: "●";
  color: var(--primary);
  animation: blinkDot 1s infinite alternate;
}

@keyframes blinkDot {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

.processing-item:not(.active):not(.completed) .processing-check::before {
  content: "○";
}

.completion-success-view {
  display: none;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsividade Geral
   ========================================================================== */
@media (max-width: 600px) {
  body {
    overflow-y: auto; /* Permite scroll no celular se o teclado subir */
  }
  .logo-img {
    height: 34px;
  }
  
  .header-analysis {
    padding: 12px 16px;
  }
  
  .main-analysis {
    padding: 16px 12px;
    align-items: flex-start; /* Evita que o teclado corte o conteúdo */
  }
  
  .screen-panel {
    padding: 24px 20px;
    border-radius: 20px;
  }
  
  .screen-headline {
    font-size: 19px;
    margin-bottom: 6px;
  }
  
  .screen-subtext {
    font-size: 12.5px;
    margin-bottom: 18px;
    line-height: 1.45;
  }
  
  .welcome-badge-ai {
    padding: 6px 12px;
    font-size: 9.5px;
    margin-bottom: 14px;
  }
  
  .welcome-benefits-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 24px;
  }
  
  .benefit-item {
    padding: 8px 12px;
    border-radius: 12px;
  }
  
  .benefit-text {
    font-size: 11.5px;
  }
  
  .btn-premium-solid {
    padding: 13px 28px;
    font-size: 13.5px;
  }
  
  .btn-option-premium {
    padding: 10px 14px;
    font-size: 12.8px;
    border-radius: 12px;
  }
  
  .options-grid-premium {
    gap: 8px;
  }
  
  .input-text-premium {
    padding: 14px 18px;
    font-size: 14.5px;
    border-radius: 14px;
  }
  
  .processing-panel {
    min-height: auto;
    padding: 24px 18px;
  }
  
  .ai-processing-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 14px;
  }
  
  .ai-icon-svg {
    width: 28px;
    height: 28px;
  }
  
  .processing-list {
    gap: 8px;
  }
  
  .processing-item {
    font-size: 11.5px;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .header-analysis .brand-logo span {
    display: none;
  }
  .estimated-time {
    display: none;
  }
}

/* ==========================================================================
   ESTILOS DA PÁGINA DE RESULTADOS (resultado.html)
   ========================================================================== */

.body-results {
  overflow-y: auto; /* Permite scroll natural na página de resultados */
  background: var(--bg-gradient);
}

.header-results {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(155, 123, 255, 0.08);
  padding: 16px 24px;
  z-index: 100;
}

.header-results-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.results-hero-section {
  text-align: center;
  padding: 60px 24px 30px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.results-badge-clinic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(155, 123, 255, 0.08);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.results-headline {
  font-family: var(--font-title);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.results-subtext {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Grid do Painel de Resultados */
.results-dashboard-grid {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
  align-items: start;
}

.results-column-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.results-column-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Cartões Premium Glassmorphic */
.card-premium-results {
  background: var(--card-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.card-premium-results:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(155, 123, 255, 0.22);
}

.card-title-premium {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Radial Score Card */
.score-circle-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.radial-score-large {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

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

.radial-bg {
  fill: none;
  stroke: rgba(155, 123, 255, 0.08);
  stroke-width: 8;
}

.radial-progress {
  fill: none;
  stroke: var(--primary);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 251.2; /* 2 * PI * r (r=40) */
  transition: stroke-dashoffset 1s ease;
}

.radial-label-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.radial-score-large .radial-percent {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.score-meta-text h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.score-meta-text p {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.4;
}

.badge-clinical-results {
  display: inline-flex;
  gap: 6px;
  margin-top: 8px;
}

/* Parâmetros do Diagnóstico (Barras) */
.diagnostic-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(155, 123, 255, 0.03);
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(155, 123, 255, 0.05);
}

.diagnostic-metric-row {
  display: grid;
  grid-template-columns: 90px 1fr 60px;
  align-items: center;
  gap: 12px;
}

.diagnostic-metric-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-main);
}

.diagnostic-metric-bar-bg {
  background: rgba(155, 123, 255, 0.08);
  height: 6px;
  border-radius: 99px;
  overflow: hidden;
}

.diagnostic-metric-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.diagnostic-metric-bar-fill.purple {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-hover) 100%);
}

.diagnostic-metric-bar-fill.pink {
  background: linear-gradient(90deg, var(--accent-dark) 0%, #FF5252 100%);
}

.diagnostic-metric-val {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-light);
  text-align: right;
}

/* Relatório Científico Detalhado */
.report-detail-box {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 20px;
}

.report-detail-box h4 {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}

.report-detail-box p {
  font-size: 12.5px;
  color: var(--text-light);
  line-height: 1.55;
}

/* Timeline Vertical do Cronograma (30 dias) */
.timeline-weeks-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.results-week-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(155, 123, 255, 0.08);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
}

.results-week-card:hover {
  background: white;
  border-color: rgba(155, 123, 255, 0.16);
  box-shadow: var(--shadow);
}

.results-week-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(155, 123, 255, 0.06);
  padding-bottom: 10px;
}

.results-week-header h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.results-week-focus {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 10px;
  border-radius: 12px;
}

.results-week-desc {
  font-size: 11.5px;
  color: var(--text-light);
  line-height: 1.45;
}

.results-days-preview {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.results-day-bubble {
  flex: 1;
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(155, 123, 255, 0.08);
  border-radius: 14px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.2s ease;
}

.results-day-bubble .day-lbl {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.results-day-bubble .treatment-symbol {
  font-size: 16px;
  margin-bottom: 2px;
}

.results-day-bubble .treatment-lbl {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--text-main);
}

/* Cores por tratamento */
.results-day-bubble.bubble-H {
  border-left: 3px solid #4DA1FF;
}
.results-day-bubble.bubble-H .treatment-lbl {
  color: #0076FF;
}

.results-day-bubble.bubble-N {
  border-left: 3px solid #FF9F43;
}
.results-day-bubble.bubble-N .treatment-lbl {
  color: #D3741A;
}

.results-day-bubble.bubble-R {
  border-left: 3px solid #FF5252;
}
.results-day-bubble.bubble-R .treatment-lbl {
  color: #D32F2F;
}

.results-day-bubble.bubble-D {
  border-left: 3px solid var(--text-light);
  opacity: 0.7;
}

/* CTA Flutuante ou Fixo */
.results-cta-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-top: 1px solid rgba(155, 123, 255, 0.12);
  padding: 20px 24px;
  box-shadow: 0 -10px 30px rgba(155, 123, 255, 0.08);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.results-cta-container {
  max-width: 1100px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cta-text-side h4 {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.cta-text-side p {
  font-size: 12px;
  color: var(--text-light);
}

.btn-cta-glow {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  font-family: var(--font-title);
  font-size: 14.5px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-cta-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.35);
}

/* Espaço extra na página para não ser cortada pelo CTA fixo */
.spacing-block {
  height: 100px;
  width: 100%;
}

/* Responsividade do Painel */
@media (max-width: 800px) {
  .results-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 120px;
  }
  
  .results-cta-container {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .results-cta-footer {
    padding: 16px 20px;
  }
  
  .btn-cta-glow {
    width: 100%;
    justify-content: center;
  }
}

/* Otimizações Específicas para Celulares no Painel de Resultados */
@media (max-width: 768px) {
  .results-hero-section {
    padding: 24px 16px 12px 16px;
  }
  
  .results-headline {
    font-size: 20px;
    letter-spacing: -0.5px;
  }
  
  .results-subtext {
    font-size: 13px;
    line-height: 1.45;
  }
  
  .card-premium-results {
    padding: 20px 16px;
    border-radius: 20px;
  }
  
  .score-circle-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  
  .score-meta-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .diagnostic-metric-row {
    grid-template-columns: 80px 1fr 45px;
    gap: 8px;
  }
  
  .results-week-card {
    padding: 16px 12px;
    border-radius: 16px;
  }
  
  .results-week-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  
  .results-week-header h4 {
    font-size: 13px;
  }
  
  .results-week-focus {
    padding: 2px 8px;
    font-size: 10px;
  }
  
  .results-week-desc {
    font-size: 11px;
  }
  
  .results-days-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 8px;
  }
  
  .results-day-bubble {
    width: auto;
    flex: none;
    padding: 6px 2px;
    border-radius: 10px;
  }
  
  .results-day-bubble .day-lbl {
    font-size: 8px;
    margin-bottom: 2px;
  }
  
  .results-day-bubble .treatment-symbol {
    font-size: 14px;
    margin-bottom: 0px;
  }
  
  .results-day-bubble .treatment-lbl {
    font-size: 7.5px;
    letter-spacing: -0.3px;
  }
}

/* Botão Meus Planos na Navbar */
.nav-plans-link {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 12px;
  background: rgba(155, 123, 255, 0.05);
  border: 1px solid rgba(155, 123, 255, 0.08);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-plans-link:hover {
  background: rgba(155, 123, 255, 0.1);
  border-color: rgba(155, 123, 255, 0.2);
  color: var(--primary);
  transform: translateY(-1px);
}

@media (max-width: 580px) {
  .nav-plans-link {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 8px;
  }
}

