/* ======================================================
   OLHAR DIFERENCIADO – Estilos Globais
   ====================================================== */

:root {
  --primary: #4A90D9;
  --primary-dark: #2C6FAB;
  --primary-light: #E8F4FD;
  --secondary: #6C63FF;
  --accent: #FF6B6B;
  --success: #27AE60;
  --warning: #F39C12;
  --danger: #E74C3C;
  --info: #3498DB;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --font-main: 'Inter', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.2);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Utility Classes ── */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.text-center { text-align: center; }
.text-left   { text-align: left; }
.hidden      { display: none !important; }
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(74,144,217,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74,144,217,0.5);
}
.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover {
  background: var(--primary-light);
}
.btn-accent {
  background: linear-gradient(135deg, #FF6B6B, #ee5a24);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(255,107,107,0.4);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,107,0.5);
}
.btn-success {
  background: linear-gradient(135deg, var(--success), #1e8449);
  color: var(--white);
}
.btn-success:hover { transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border: 2px solid var(--gray-300);
}
.btn-ghost:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
}
.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}
.btn-full { width: 100%; }
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
}
.card-elevated {
  box-shadow: var(--shadow-lg);
}

/* ── Form Elements ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
}
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74,144,217,0.15);
}
.form-input.error, .form-select.error {
  border-color: var(--danger);
}
.form-error {
  font-size: 0.8rem;
  color: var(--danger);
  display: none;
}
.form-error.show { display: block; }
.form-hint {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* Checkbox */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--primary);
}
.checkbox-label {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.5;
}

/* ── Progress Bar ── */
.progress-container {
  background: var(--gray-200);
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 100px;
  transition: width 0.5s ease;
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}
.badge-blue   { background: var(--primary-light); color: var(--primary-dark); }
.badge-green  { background: #d4edda; color: #155724; }
.badge-yellow { background: #fff3cd; color: #856404; }
.badge-red    { background: #f8d7da; color: #721c24; }
.badge-purple { background: #ede7f6; color: #5e35b1; }

/* ── Alert boxes ── */
.alert {
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.alert-warning {
  background: #fff3cd;
  border-left: 4px solid var(--warning);
  color: #6d4c00;
}
.alert-danger {
  background: #f8d7da;
  border-left: 4px solid var(--danger);
  color: #58151c;
}
.alert-success {
  background: #d4edda;
  border-left: 4px solid var(--success);
  color: #0f5132;
}
.alert-info {
  background: #cce5ff;
  border-left: 4px solid var(--info);
  color: #084298;
}
.alert-icon { font-size: 1.2rem; min-width: 24px; }

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--gray-200);
  margin: 24px 0;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ── Loading Spinner ── */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-200);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast Notification ── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--gray-800);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  max-width: 320px;
  animation: slideInRight 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast-success { background: var(--success); }
.toast-error   { background: var(--danger); }
.toast-warning { background: var(--warning); color: var(--gray-800); }
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ── SCREENS ── */
.screen {
  display: none !important;
  min-height: 100vh;
  animation: fadeIn 0.4s ease;
}
.screen.active {
  display: block !important;
  flex-direction: column;
}
/* Screens that need flex layout */
#screen-cadastro.active,
#screen-paywall.active,
#screen-sos.active {
  display: flex !important;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── TOP NAV BAR ── */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-dark);
  cursor: pointer;
}
.top-bar-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.top-bar-actions { display: flex; align-items: center; gap: 12px; }

/* ── LANDING PAGE ── */
#screen-landing {
  background: linear-gradient(160deg, #f0f9ff 0%, #e8eaf6 50%, #fce4ec 100%);
}
.hero-section {
  padding: 120px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary-light), #ede7f6);
  color: var(--primary-dark);
  border: 1px solid rgba(74,144,217,0.3);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
  animation: pulse 3s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,144,217,0.2); }
  50%       { box-shadow: 0 0 0 10px rgba(74,144,217,0); }
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 20px;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--gray-600);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 60px;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Features */
.features-section {
  padding: 80px 20px;
  background: var(--white);
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 500px;
  margin: 0 auto 48px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.fi-blue   { background: var(--primary-light); }
.fi-purple { background: #ede7f6; }
.fi-green  { background: #d4edda; }
.fi-red    { background: #fce4ec; }
.fi-orange { background: #fff3e0; }
.fi-teal   { background: #e0f2f1; }
.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Tests Section */
.tests-section {
  padding: 80px 20px;
  background: var(--gray-50);
}
.tests-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.test-tab {
  padding: 10px 24px;
  border-radius: 100px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-600);
}
.test-tab.active, .test-tab:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.test-card-mini {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 2px solid var(--gray-200);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.test-card-mini:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.test-card-mini .tc-icon { font-size: 1.8rem; margin-bottom: 8px; }
.test-card-mini .tc-name { font-size: 0.9rem; font-weight: 600; color: var(--gray-700); }
.test-card-mini .tc-age  { font-size: 0.75rem; color: var(--gray-400); margin-top: 4px; }

/* Pricing */
.pricing-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f0f9ff, #ede7f6);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  border: 2px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}
.pricing-card.featured::before {
  content: "⭐ Mais Popular";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}
.pricing-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.pricing-price span {
  font-size: 1rem;
  color: var(--gray-500);
  font-weight: 400;
}
.pricing-desc {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 24px;
  line-height: 1.5;
}
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}
.pricing-features li {
  font-size: 0.9rem;
  color: var(--gray-700);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--gray-100);
}
.pricing-features li .check { color: var(--success); font-size: 0.9rem; }

/* Differentials */
.diff-section {
  padding: 80px 20px;
  background: var(--white);
}
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.diff-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}
.diff-icon { font-size: 1.4rem; }
.diff-title { font-size: 0.95rem; font-weight: 700; color: var(--gray-800); }
.diff-desc  { font-size: 0.85rem; color: var(--gray-500); line-height: 1.5; }

/* CTA Section */
.cta-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
  text-align: center;
  color: var(--white);
}
.cta-section .section-title { color: var(--white); }
.cta-section .section-subtitle { color: rgba(255,255,255,0.8); }

/* Footer */
footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 40px 20px;
  text-align: center;
}
footer .footer-logo {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
footer .footer-disclaimer {
  font-size: 0.8rem;
  max-width: 600px;
  margin: 12px auto 0;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ── SCREEN: CADASTRO ── */
#screen-cadastro {
  background: linear-gradient(160deg, #f0f9ff 0%, #e8eaf6 100%);
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 40px 36px;
  width: 100%;
  max-width: 480px;
}
.auth-header {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}
.auth-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}
.auth-subtitle {
  font-size: 0.9rem;
  color: var(--gray-500);
}
.profile-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}
.profile-option {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  background: var(--white);
}
.profile-option:hover { border-color: var(--primary); background: var(--primary-light); }
.profile-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(74,144,217,0.15);
}
.profile-option .po-icon { font-size: 1.6rem; margin-bottom: 6px; }
.profile-option .po-label { font-size: 0.8rem; font-weight: 600; color: var(--gray-700); }
.lgpd-box {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--gray-200);
  margin-bottom: 16px;
}
.lgpd-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lgpd-items {
  list-style: none;
  margin-bottom: 12px;
}
.lgpd-items li {
  font-size: 0.8rem;
  color: var(--gray-600);
  padding: 4px 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.lgpd-items li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  min-width: 14px;
  margin-top: 2px;
}
.passport-animation {
  text-align: center;
  padding: 32px 0;
}
.passport-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin: 16px 0;
  position: relative;
  overflow: hidden;
}
.passport-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}
.passport-card::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -10px;
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

/* ── SCREEN: SELEÇÃO DE TESTE ── */
#screen-selecao {
  background: var(--gray-50);
  padding-top: 80px;
}
.selecao-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 24px 20px;
  text-align: center;
}
.selecao-greeting {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 4px;
}
.selecao-hint {
  font-size: 0.9rem;
  color: var(--gray-500);
}
.selecao-content {
  padding: 24px 20px;
  max-width: 960px;
  margin: 0 auto;
  flex: 1;
}
.category-section {
  margin-bottom: 32px;
}
.category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gray-200);
}
.category-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-800);
}
.category-count {
  font-size: 0.75rem;
  color: var(--gray-400);
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: 100px;
}
.tests-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.test-select-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  border: 2px solid var(--gray-200);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  position: relative;
}
.test-select-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.test-select-card .tsc-icon { font-size: 2rem; }
.test-select-card .tsc-name { font-size: 0.9rem; font-weight: 700; color: var(--gray-800); }
.test-select-card .tsc-desc { font-size: 0.75rem; color: var(--gray-500); line-height: 1.4; }
.test-select-card .tsc-time {
  font-size: 0.72rem;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
}
.test-select-card.locked {
  opacity: 0.8;
  cursor: not-allowed;
}
.test-select-card.locked::after {
  content: '🔒';
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.9rem;
}

/* ── SCREEN: QUESTIONÁRIO ── */
#screen-questionario {
  background: var(--gray-50);
  padding-top: 65px;
}
.quiz-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 20px;
  position: sticky;
  top: 65px;
  z-index: 50;
}
.quiz-title-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.quiz-icon {
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quiz-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
}
.quiz-faixa {
  font-size: 0.8rem;
  color: var(--gray-500);
}
.quiz-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 6px;
}

/* Age Range Selector */
.age-range-box {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 20px;
}
.age-range-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 14px;
  text-align: center;
}
.age-range-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}
.age-btn {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  font-family: var(--font-main);
}
.age-btn:hover { border-color: var(--primary); background: var(--primary-light); }
.age-btn.active { border-color: var(--primary); background: var(--primary); color: var(--white); }
.age-btn .ab-icon { font-size: 1.4rem; display: block; margin-bottom: 4px; }
.age-btn .ab-label { font-size: 0.8rem; font-weight: 600; }

/* Question */
.question-container {
  padding: 24px 20px;
  max-width: 700px;
  margin: 0 auto;
  flex: 1;
}
.question-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  border: 2px solid transparent;
  transition: var(--transition);
}
.question-card.answered { border-color: var(--primary-light); }
.question-number {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.question-text {
  font-size: 1rem;
  color: var(--gray-800);
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 20px;
}
.question-critical-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  background: #fff3cd;
  color: #856404;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
  margin-bottom: 10px;
}
.answer-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.answer-btn {
  padding: 12px 6px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.answer-btn .ab-emoji { font-size: 1rem; }
.answer-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}
.answer-btn.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}
.answer-btn.val-0.selected { background: #27AE60; border-color: #27AE60; }
.answer-btn.val-1.selected { background: #82b96d; border-color: #82b96d; }
.answer-btn.val-2.selected { background: #F39C12; border-color: #F39C12; }
.answer-btn.val-3.selected { background: #e67e22; border-color: #e67e22; }
.answer-btn.val-4.selected { background: #E74C3C; border-color: #E74C3C; }

.quiz-nav {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  position: sticky;
  bottom: 0;
}

/* ── SCREEN: RESULTADO ── */
#screen-resultado {
  background: var(--gray-50);
  padding-top: 65px;
}
.resultado-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
  padding: 40px 20px;
  text-align: center;
  color: var(--white);
}
.resultado-titulo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.resultado-subtitulo {
  font-size: 0.9rem;
  opacity: 0.85;
}
.resultado-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}
.resultado-nivel-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border-top: 6px solid var(--primary);
}
.nivel-icon { font-size: 3rem; margin-bottom: 12px; }
.nivel-label {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.nivel-badge-baixo   { color: #27AE60; }
.nivel-badge-leve    { color: #82b96d; }
.nivel-badge-moderado { color: #E67E22; }
.nivel-badge-elevado  { color: #E74C3C; }
.nivel-top-baixo    { border-top-color: #27AE60; }
.nivel-top-leve     { border-top-color: #82b96d; }
.nivel-top-moderado { border-top-color: #E67E22; }
.nivel-top-elevado  { border-top-color: #E74C3C; }
.nivel-score-bar {
  background: var(--gray-100);
  border-radius: 100px;
  height: 10px;
  margin: 12px 0;
  overflow: hidden;
}
.nivel-score-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 1.5s ease;
}
.nivel-pontuacao { font-size: 0.85rem; color: var(--gray-500); }
.resultado-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.resultado-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eixo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.eixo-label {
  font-size: 0.85rem;
  color: var(--gray-700);
  width: 160px;
  min-width: 130px;
  font-weight: 500;
}
.eixo-bar-wrap {
  flex: 1;
  background: var(--gray-100);
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
}
.eixo-bar {
  height: 100%;
  border-radius: 100px;
  transition: width 1s ease;
}
.eixo-score {
  font-size: 0.8rem;
  color: var(--gray-500);
  min-width: 30px;
  text-align: right;
}
.profissional-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.prof-card {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.prof-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.prof-icon { font-size: 1.8rem; margin-bottom: 6px; }
.prof-name { font-size: 0.8rem; font-weight: 700; color: var(--gray-700); }
.prof-priority {
  font-size: 0.7rem;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 600;
}
.pp-alta   { background: #f8d7da; color: #721c24; }
.pp-media  { background: #fff3cd; color: #856404; }
.pp-baixa  { background: #d4edda; color: #155724; }

/* Aviso Legal */
.aviso-legal {
  background: linear-gradient(135deg, #fff3cd, #fce4ec);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 2px solid #f8c471;
  margin-bottom: 20px;
}
.aviso-legal-title {
  font-size: 1rem;
  font-weight: 700;
  color: #7b4c00;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.aviso-legal p {
  font-size: 0.85rem;
  color: #7b4c00;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* CVV Alert */
.cvv-alert {
  background: #f8d7da;
  border: 2px solid #E74C3C;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}
.cvv-alert h3 { color: #721c24; font-size: 1rem; margin-bottom: 8px; }
.cvv-alert p  { color: #721c24; font-size: 0.85rem; }
.cvv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #E74C3C;
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 12px;
}

/* SOS Button */
.sos-box {
  background: linear-gradient(135deg, #E74C3C, #c0392b);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  color: var(--white);
  margin-bottom: 20px;
}
.sos-btn {
  background: var(--white);
  color: #E74C3C;
  border: none;
  padding: 14px 32px;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 12px;
  transition: var(--transition);
}
.sos-btn:hover { transform: scale(1.05); }

/* ── SCREEN: PAYWALL ── */
#screen-paywall {
  background: linear-gradient(160deg, #f0f9ff, #ede7f6);
  align-items: center;
  justify-content: center;
  padding: 100px 20px 40px;
}
.paywall-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 40px 32px;
  max-width: 500px;
  width: 100%;
  text-align: center;
}
.paywall-icon { font-size: 3rem; margin-bottom: 16px; }
.paywall-title { font-size: 1.4rem; font-weight: 800; color: var(--gray-900); margin-bottom: 8px; }
.paywall-subtitle { font-size: 0.95rem; color: var(--gray-500); margin-bottom: 28px; }
.pack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.pack-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.pack-card:hover { border-color: var(--primary); background: var(--primary-light); }
.pack-card.selected { border-color: var(--primary); background: var(--primary-light); }
.pack-card.featured-pack { border-color: var(--secondary); }
.pack-card.featured-pack::before {
  content: "✨";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.1rem;
}
.pack-tests { font-size: 1.4rem; font-weight: 800; color: var(--primary-dark); }
.pack-label { font-size: 0.7rem; color: var(--gray-500); margin-bottom: 8px; }
.pack-price { font-size: 1.1rem; font-weight: 700; color: var(--gray-800); }
.pack-unit  { font-size: 0.7rem; color: var(--gray-400); }

/* ── SCREEN: SOS/RESPIRAÇÃO ── */
#screen-sos {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.sos-content {
  text-align: center;
  color: var(--white);
  max-width: 400px;
}
.breathing-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(74,144,217,0.2);
  border: 4px solid var(--primary);
  margin: 32px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  animation: breathe 8s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  40%       { transform: scale(1.3); opacity: 1; }
  70%       { transform: scale(1.15); opacity: 0.9; }
}
.sos-phrases { list-style: none; margin: 24px 0; }
.sos-phrases li {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ── SCREEN: DASHBOARD ── */
#screen-dashboard {
  background: var(--gray-100);
  padding-top: 65px;
}
.dash-header {
  background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
  padding: 24px 20px;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.dash-header h1 { font-size: 1.2rem; font-weight: 700; }
.dash-header p  { font-size: 0.85rem; opacity: 0.7; }
.dash-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.metric-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
}
.metric-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gray-900);
}
.metric-label {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 4px;
}
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.chart-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.chart-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart-canvas-wrap {
  position: relative;
  height: 220px;
}

/* ── CONTEÚDOS ── */
#screen-conteudos {
  background: var(--gray-50);
  padding-top: 65px;
}
.conteudos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 24px 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.conteudo-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.conteudo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.conteudo-thumb {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.ct-blue   { background: linear-gradient(135deg, #74b9ff, #0984e3); }
.ct-purple { background: linear-gradient(135deg, #a29bfe, #6c5ce7); }
.ct-green  { background: linear-gradient(135deg, #55efc4, #00b894); }
.ct-red    { background: linear-gradient(135deg, #fd79a8, #e84393); }
.ct-orange { background: linear-gradient(135deg, #fdcb6e, #e17055); }
.conteudo-body { padding: 16px; }
.conteudo-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.conteudo-title { font-size: 0.95rem; font-weight: 700; color: var(--gray-800); margin-bottom: 6px; }
.conteudo-desc  { font-size: 0.8rem; color: var(--gray-500); line-height: 1.5; }

/* ── MAPA ── */
.mapa-box {
  background: var(--gray-200);
  border-radius: var(--radius-md);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.mapa-placeholder {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.9rem;
}
.servicos-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.servico-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.servico-item:hover { border-color: var(--primary); }
.servico-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.si-blue   { background: var(--primary-light); }
.si-green  { background: #d4edda; }
.si-purple { background: #ede7f6; }
.servico-info .si-name    { font-size: 0.9rem; font-weight: 700; color: var(--gray-800); }
.servico-info .si-type    { font-size: 0.78rem; color: var(--gray-500); }
.servico-info .si-dist    { font-size: 0.75rem; color: var(--primary); font-weight: 600; margin-top: 2px; }

/* ── RELATÓRIO ── */
.relatorio-preview {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 24px;
}
.relatorio-header-band {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
  padding: 24px;
  color: var(--white);
}
.relatorio-body { padding: 24px; }
.relatorio-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
}
.relatorio-row-key {
  font-weight: 600;
  color: var(--gray-600);
  min-width: 120px;
}
.relatorio-row-value { color: var(--gray-800); }

/* ── MOBILE TWEAKS ── */
@media (max-width: 600px) {
  .auth-card { padding: 28px 20px; }
  .answer-options {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }
  .answer-btn { padding: 8px 2px; font-size: 0.68rem; }
  .pack-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: scale(1); }
  .hero-actions { flex-direction: column; align-items: center; }
  .tests-list { grid-template-columns: 1fr 1fr; }
  .age-range-options { grid-template-columns: 1fr 1fr 1fr; }
  .eixo-label { min-width: 100px; width: 100px; font-size: 0.78rem; }
  .profissional-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Panic SOS Modal ── */
.panic-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.panic-modal.open { display: flex; }
.panic-inner {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.panic-steps { list-style: none; margin: 20px 0; }
.panic-steps li {
  font-size: 1rem;
  color: var(--gray-700);
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 10px;
}
.panic-steps li .ps-num {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Print Styles ── */
@media print {
  .top-bar, .quiz-nav, .btn, #toast-container { display: none !important; }
  .screen { display: block !important; }
}
