/* ================================================= */
/*  SCOPSY LAB – ESTILO OFICIAL 2025 (v3 FINAL)      */
/*  Baseado no design que você mais gostou           */
/* ================================================= */

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

:root {
  --purple: #8B5CF6;
  --blue: #3B82F6;
  --orange: #FB923C;
  --pink: #EC4899;
  --gradient-purple-blue: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
  --gradient-orange: linear-gradient(135deg, #FB923C 0%, #F97316 100%);
  --gradient-pink: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
  --bg: #FAFAFA;
  --card-bg: #FFFFFF;
  --text: #1F2937;
  --text-light: #6B7280;
  --border: rgba(139, 92, 246, 0.2);
  --shadow: 0 20px 40px rgba(139, 92, 246, 0.1);
  --radius: 28px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Header */
.header {
  background: #0F0F0F;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.header .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo h1 {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
}
.registered { font-size: .6em; vertical-align: super; }
.back-btn {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.back-btn:hover { background: rgba(255,255,255,.2); }

/* Page Hero */
.page-hero {
  text-align: center;
  padding: 80px 20px 40px;
  margin: 40px 20px 60px;
  background: linear-gradient(135deg, rgba(139,92,246,0.05) 0%, rgba(59,130,246,0.05) 100%);
  border-radius: 32px;
}
.page-hero h1 {
  font-size: 3.4rem;
  font-weight: 900;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 1.3rem;
  color: var(--text-light);
  max-width: 720px;
  margin: 0 auto;
}

/* Cards dos módulos (Dashboard + Raciocínio Clínico) */
.assistants-grid,
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 40px;
  padding: 0 20px;
}

.assistant-card,
.mode-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.assistant-card:hover,
.mode-card:hover {
  transform: translateY(-20px);
  box-shadow: 0 30px 60px rgba(139,92,246,.2);
  border-color: var(--purple);
}

/* Badge no topo */
.card-badge {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-purple-blue);
  color: #fff;
  padding: 8px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}

/* Ícone grande */
.mode-icon,
.card-icon {
  width: 100px;
  height: 100px;
  margin: 20px auto 0;
}

/* Título e descrição */
.mode-title,
.assistant-card h3 {
  font-size: 2rem;
  font-weight: 900;
  text-align: center;
  margin: 20px 0 16px;
}
.mode-description,
.card-description {
  font-size: 1.1rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Listas de características */
.mode-details,
.card-features {
  background: rgba(139,92,246,.05);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 28px;
}
.mode-details h4,
.card-features h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #333;
}
.mode-details ul,
.card-features ul {
  list-style: none;
  padding: 0;
}
.mode-details li,
.card-features li {
  padding: 10px 0 10px 32px;
  position: relative;
  font-size: 1rem;
}
.mode-details li::before,
.card-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--purple);
  font-weight: bold;
  font-size: 1.3em;
}

/* Botão */
.mode-btn,
.submit-btn,
.next-case-btn {
  background: var(--gradient-purple-blue);
  color: #fff;
  border: none;
  padding: 18px;
  border-radius: 16px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.mode-btn:hover,
.submit-btn:hover,
.next-case-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(139,92,246,.3);
}

/* Dica final */
.tip-box {
  text-align: center;
  margin: 80px 20px 40px;
  padding: 32px;
  background: rgba(139,92,246,.05);
  border-radius: 28px;
  font-size: 1.2rem;
  color: var(--text-light);
}
.tip-box strong { color: var(--purple); }

/* Progresso no Dashboard */
.progress-section h2 { text-align: center; margin: 80px 0 40px; font-size: 2.6rem; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  padding: 0 20px;
}
.stat-card {
  background: var(--gradient-purple-blue);
  color: #fff;
  padding: 40px;
  border-radius: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-card .lucide { width: 56px; height: 56px; margin-bottom: 16px; }
.stat-number { font-size: 3.6rem; font-weight: 900; }
.stat-label { font-size: 1.1rem; opacity: .9; }
/* Card do caso */
.case-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 48px;
    box-shadow: var(--shadow);
    text-align: left;
    margin-top: 40px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--purple);
    margin: 32px 0 16px;
}

.case-vignette {
    background: rgba(139,92,246,.05);
    padding: 24px;
    border-radius: 16px;
    border-left: 6px solid var(--purple);
    font-size: 1.1rem;
    line-height: 1.8;
}

.conceptualization-area {
    width: 100%;
    min-height: 300px;
    padding: 24px;
    border: 3px solid #e5e7eb;
    border-radius: 16px;
    font-family: inherit;
    font-size: 1.05rem;
    resize: vertical;
}

.conceptualization-area:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(139,92,246,.15);
}

.submit-concept-btn {
    background: var(--gradient);
    color: white;
    padding: 18px 48px;
    border: none;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 24px;
}

.submit-concept-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.loading {
    padding: 60px;
    color: var(--text-light);
    font-size: 1.3rem;
}
/* Responsivo */
@media (max-width: 768px) {
  .assistants-grid, .modes-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 2.6rem; }
  .stat-card { padding: 32px; }
}