/* Reset & Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg-primary: #f3f4f6; /* Cinza Claro do mockup */
  --bg-secondary: #ffffff;
  --bg-card: #ffffff; /* Cartão sólido como no mockup */
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-card-subtle: rgba(13, 19, 43, 0.03);
  --border-color: rgba(13, 19, 43, 0.08);
  --border-color-glow: rgba(37, 99, 235, 0.3);
  
  --color-primary: #2563eb; /* Azul Elétrico */
  --color-primary-glow: rgba(37, 99, 235, 0.15);
  --color-secondary: #10b981; /* Verde Menta */
  --color-secondary-glow: rgba(16, 185, 129, 0.15);
  --color-accent: #ff4d8d; /* Rosa Coral */
  --color-text-main: #0d132b; /* Azul Marinho (Contraste Máximo) */
  --color-text-muted: #4b5563; /* Cinza de apoio */
  
  --color-success: #10b981;
  --color-warning: #facc15; /* Amarelo Sol */
  --color-danger: #ef4444;
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --sidebar-width: 260px;

  --bg-sidebar: #0d132b; /* Azul Marinho (Sidebar sempre escura para contraste premium) */
  --bg-lock-cover: rgba(243, 244, 246, 0.95);
  --logo-gradient-start: #ffffff;
  --logo-gradient-end: rgba(255, 255, 255, 0.7);
  
  --menu-text-color: rgba(255, 255, 255, 0.6);
  --menu-hover-bg: rgba(255, 255, 255, 0.05);
  --menu-hover-color: #ffffff;
  --menu-active-bg: #2563eb; /* Azul Elétrico */
  --menu-active-color: #ffffff;
  --sidebar-border-color: rgba(255, 255, 255, 0.08);
  
  --profile-widget-bg: rgba(255, 255, 255, 0.04);
  --profile-switcher-bg: rgba(0, 0, 0, 0.2);
  --mindmap-bg: #f3f4f6;
  --textarea-bg: #ffffff;
  --table-row-hover-bg: rgba(13, 19, 43, 0.02);
  --progress-bg: rgba(13, 19, 43, 0.05);
  --radial-bg: #ffffff;
  --logo-badge-color: #0d132b;
  --button-selected-text: #ffffff;
  --bg-gradient-1: rgba(37, 99, 235, 0.05);
  --bg-gradient-2: rgba(124, 58, 237, 0.04);
  --card-shadow: 0 4px 20px rgba(13, 19, 43, 0.04);
}

body.dark-theme {
  --bg-primary: #090c15; /* Azul Marinho super escuro */
  --bg-secondary: #0f1424;
  --bg-card: rgba(15, 20, 36, 0.6);
  --bg-card-hover: rgba(21, 28, 51, 0.85);
  --bg-card-subtle: rgba(255, 255, 255, 0.02);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-glow: rgba(124, 58, 237, 0.4);
  
  --color-primary: #7c3aed; /* Roxo Vibrante no modo escuro */
  --color-primary-glow: rgba(124, 58, 237, 0.2);
  --color-secondary: #10b981; /* Verde Menta */
  --color-secondary-glow: rgba(16, 185, 129, 0.2);
  --color-accent: #ff4d8d; /* Rosa Coral */
  --color-text-main: #f3f4f6; /* Cinza Claro */
  --color-text-muted: #9ca3af;
  
  --bg-sidebar: #060914; /* Tom mais escuro para sidebar */
  --bg-lock-cover: rgba(9, 12, 21, 0.95);
  --logo-gradient-start: #ffffff;
  --logo-gradient-end: rgba(255, 255, 255, 0.7);
  
  --menu-text-color: rgba(255, 255, 255, 0.6);
  --menu-hover-bg: rgba(255, 255, 255, 0.03);
  --menu-hover-color: #ffffff;
  --menu-active-bg: rgba(124, 58, 237, 0.2);
  --menu-active-color: #ffffff;
  --sidebar-border-color: rgba(255, 255, 255, 0.05);
  
  --profile-widget-bg: rgba(255, 255, 255, 0.02);
  --profile-switcher-bg: rgba(0, 0, 0, 0.3);
  --mindmap-bg: rgba(0, 0, 0, 0.2);
  --textarea-bg: rgba(0, 0, 0, 0.3);
  --table-row-hover-bg: rgba(255, 255, 255, 0.01);
  --progress-bg: rgba(255, 255, 255, 0.05);
  --radial-bg: #0f1424;
  --logo-badge-color: #060914;
  --button-selected-text: #ffffff;
  --bg-gradient-1: rgba(124, 58, 237, 0.15);
  --bg-gradient-2: rgba(255, 77, 141, 0.1);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body {
  background-color: var(--bg-primary);
  color: var(--color-text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, var(--bg-gradient-1) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, var(--bg-gradient-2) 0%, transparent 45%);
  background-attachment: fixed;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Layout */
.app-container {
  display: flex;
  width: 100vw;
  min-height: 100vh;
  position: relative;
}

/* Sidebar */
aside.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--sidebar-border-color);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
}

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

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-title);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 4px 15px var(--color-primary-glow);
}

.logo-text {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 22px;
  background: linear-gradient(135deg, var(--logo-gradient-start) 40%, var(--logo-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease;
}

.logo-badge {
  font-size: 9px;
  text-transform: uppercase;
  background: var(--color-secondary);
  color: var(--logo-badge-color);
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: 700;
  margin-left: -4px;
  letter-spacing: 0.5px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

nav.menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--menu-text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.menu-item:hover {
  color: var(--menu-hover-color);
  background: var(--menu-hover-bg);
}

.menu-item.active {
  color: var(--menu-active-color);
  background: var(--menu-active-bg);
  border: 1px solid var(--color-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.menu-item.logout-btn:hover {
  background: rgba(239, 68, 68, 0.08) !important;
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.15) !important;
}

.menu-item.logout-btn:hover svg {
  stroke: #ef4444 !important;
}

.menu-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2px;
  fill: none;
  transition: transform 0.3s ease;
}

.menu-item:hover svg {
  transform: translateX(2px);
}

.menu-item.active svg {
  stroke: #ffffff;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.admin-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 8px 8px 0 0;
  margin-bottom: -1px;
}

.admin-tab:hover {
  color: var(--color-text);
  background: rgba(124, 58, 237, 0.05); /* very subtle hover */
}

.admin-tab.active {
  background: var(--bg-card-subtle);
  border-bottom: 3px solid var(--color-primary);
  color: var(--color-primary);
}

/* User Card / Profile Selector at Sidebar Bottom */
.user-profile-widget {
  margin-top: auto;
  background: var(--profile-widget-bg);
  border: 1px solid var(--sidebar-border-color);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a29bfe, #6c5ce7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #fff;
  font-size: 14px;
}

.user-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: #ffffff;
}

.user-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-badge.free {
  color: rgba(255, 255, 255, 0.5);
}

.user-badge.premium {
  color: #ffd700;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}

/* Switcher Button inside widget */
.profile-switcher {
  display: flex;
  background: var(--profile-switcher-bg);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--sidebar-border-color);
}

.switch-btn {
  flex: 1;
  text-align: center;
  padding: 6px 0;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--menu-text-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.switch-btn.active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

.switch-btn.active.premium-style {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #000;
  box-shadow: 0 2px 6px rgba(255, 165, 0, 0.4);
}

/* Main Content Area */
main.main-content {
  margin-left: var(--sidebar-width);
  flex-grow: 1;
  padding: 40px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Top Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.header-title h1 {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.header-title p {
  color: var(--color-text-muted);
  font-size: 15px;
}

.premium-cta-btn {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #09070f;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-family: var(--font-title);
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.premium-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 165, 0, 0.5);
}

/* Section Controls */
.content-section {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

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

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

/* Cards & Grid Systems */
.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.grid-3x1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-glow);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.08);
}

.card-title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Dashboard Welcomer card */
.welcome-card {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(0, 210, 211, 0.05));
  border: 1px solid rgba(108, 92, 231, 0.3);
  position: relative;
  overflow: hidden;
}

.welcome-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 210, 211, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Stats Badges */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-val {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--logo-gradient-start), var(--color-text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-lbl {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Simulation Area: Wizard Setup */
.sim-setup-box {
  max-width: 600px;
  margin: 0 auto;
}

.discipline-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.discipline-card {
  border: 1px solid var(--border-color);
  background: var(--bg-card-subtle);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.discipline-card:hover {
  background: var(--color-primary-glow);
  border-color: var(--color-primary);
}

.discipline-card.selected {
  background: rgba(37, 99, 235, 0.12);
  border-color: var(--color-primary);
  box-shadow: 0 0 15px var(--color-primary-glow);
}

.discipline-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.2s ease;
}

.discipline-card.selected .discipline-icon {
  background: var(--color-primary);
  color: #fff;
}

.question-count-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}

.q-count-btn {
  flex: 1;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--color-text-main);
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
}

.q-count-btn:hover {
  background: var(--menu-hover-bg);
}

.q-count-btn.selected {
  background: var(--color-secondary);
  color: var(--button-selected-text);
  border-color: var(--color-secondary);
  font-weight: 700;
}

.q-count-btn.premium-lock {
  border-color: rgba(238, 82, 83, 0.2);
}

.lock-badge {
  position: absolute;
  top: -8px;
  right: -4px;
  background: var(--color-danger);
  color: #fff;
  font-size: 8px;
  padding: 2px 4px;
  border-radius: 4px;
  text-transform: uppercase;
}

.action-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 12px;
  font-weight: 700;
  font-family: var(--font-title);
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--color-primary-glow);
  transition: all 0.3s ease;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.action-btn:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* Simulation Play Area */
.simulation-interface {
  max-width: 800px;
  margin: 0 auto;
}

.sim-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  background: var(--bg-card-subtle);
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.sim-timer {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-progress-wrapper {
  margin-bottom: 30px;
}

.sim-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.sim-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--progress-bg);
  border-radius: 3px;
  overflow: hidden;
}

.sim-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  width: 0%;
  transition: width 0.3s ease;
}

.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 24px;
}

.question-origin {
  display: inline-block;
  background: rgba(108, 92, 231, 0.15);
  color: var(--color-accent);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.question-text {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 24px;
}

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

.option-item {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border-color);
  background: var(--bg-card-subtle);
  padding: 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-item:hover {
  background: var(--menu-hover-bg);
  border-color: var(--border-color-glow);
}

.option-item.selected {
  background: rgba(108, 92, 231, 0.1);
  border-color: var(--color-primary);
}

.option-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--progress-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--color-text-muted);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.option-item.selected .option-marker {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.option-text {
  font-size: 15px;
  line-height: 1.4;
  flex-grow: 1;
}

.sim-nav-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.secondary-btn {
  background: var(--progress-bg);
  color: var(--color-text-main);
  border: 1px solid var(--border-color);
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.secondary-btn:hover {
  background: var(--menu-hover-bg);
  border-color: var(--border-color-glow);
}

/* Simulation Results & Feedback */
.results-card {
  text-align: center;
  padding: 40px;
}

.score-radial {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(var(--color-secondary) calc(var(--percentage) * 1%), var(--progress-bg) 0);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-radial::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg-secondary);
}

.score-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.score-number {
  font-family: var(--font-title);
  font-size: 36px;
  font-weight: 800;
  color: var(--color-text-main);
}

.score-label {
  font-size: 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.results-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 30px;
}

.review-answers-section {
  margin-top: 40px;
  text-align: left;
}

.review-question-item {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.review-question-item.correct {
  border-left: 4px solid var(--color-success);
}

.review-question-item.incorrect {
  border-left: 4px solid var(--color-danger);
}

.review-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.review-badge.correct {
  background: rgba(16, 172, 132, 0.15);
  color: var(--color-success);
}

.review-badge.incorrect {
  background: rgba(238, 82, 83, 0.15);
  color: var(--color-danger);
}

.explanation-box {
  background: rgba(108, 92, 231, 0.05);
  border: 1px solid rgba(108, 92, 231, 0.15);
  border-radius: 8px;
  padding: 14px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.explanation-box strong {
  color: var(--color-accent);
}

.premium-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.lock-screen-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-lock-cover);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  border: 1px solid var(--border-color);
}

.lock-icon-big {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(255, 165, 0, 0.4);
  font-size: 30px;
  color: #0c0a1a;
}

.lock-screen-cover h3 {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--color-text-main);
}

.lock-screen-cover p {
  color: var(--color-text-muted);
  max-width: 480px;
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 1.6;
}

/* AI Factory (NotebookLM Features) */
.ai-factory-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.ai-tab-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-title);
  cursor: pointer;
  padding: 6px 12px;
  position: relative;
  transition: all 0.2s ease;
}

.ai-tab-btn.active {
  color: var(--color-secondary);
}

.ai-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-secondary);
}

/* Audio Player component */
.audio-player-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.audio-player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.audio-wave-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
  margin: 10px 0;
  padding: 0 10px;
}

.wave-bar {
  flex: 1;
  background: var(--color-primary);
  border-radius: 2px;
  height: 10%;
  transition: height 0.1s ease;
}

.audio-player-container.playing .wave-bar {
  animation: waveMotion 1.2s ease-in-out infinite alternate;
}

/* Generates multiple delays and durations for bar animations for a realistic equalizer */
.audio-player-container.playing .wave-bar:nth-child(2n) { animation-delay: 0.15s; animation-duration: 0.9s; }
.audio-player-container.playing .wave-bar:nth-child(3n) { animation-delay: 0.3s; animation-duration: 1.4s; }
.audio-player-container.playing .wave-bar:nth-child(4n) { animation-delay: 0.45s; animation-duration: 0.7s; }
.audio-player-container.playing .wave-bar:nth-child(5n) { animation-delay: 0.05s; animation-duration: 1.1s; }
.audio-player-container.playing .wave-bar:nth-child(odd) { animation-duration: 1.0s; }

@keyframes waveMotion {
  0% { height: 12%; }
  100% { height: 100%; }
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.play-pause-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: var(--button-selected-text);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.play-pause-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px var(--color-secondary-glow);
}

.timeline-slider {
  flex-grow: 1;
  height: 4px;
  background: var(--progress-bg);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.timeline-progress {
  height: 100%;
  background: var(--color-secondary);
  border-radius: 2px;
  width: 0%;
}

.audio-duration {
  font-size: 12px;
  color: var(--color-text-muted);
  font-family: var(--font-title);
}

/* Mind Map Visualizer */
.mindmap-viewport {
  background: var(--mindmap-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  overflow: hidden;
  position: relative;
}

.mindmap-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.mindmap-root {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  padding: 16px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-family: var(--font-title);
  box-shadow: 0 4px 15px var(--color-primary-glow);
}

.mindmap-branches {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.mindmap-node {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  width: 220px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.mindmap-node:hover {
  transform: translateY(-4px);
  border-color: var(--color-secondary);
  background: rgba(0, 210, 211, 0.05);
}

.mindmap-node-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--color-secondary);
}

.mindmap-node-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* AI custom simulator box */
.ai-sim-factory-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.prompt-textarea {
  background: var(--textarea-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
  color: var(--color-text-main);
  font-family: inherit;
  font-size: 14px;
  resize: none;
  height: 100px;
  transition: border-color 0.2s ease;
}

.prompt-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* Ranking Table styles */
.ranking-table-container {
  overflow-x: auto;
}

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

table.ranking-table th {
  color: var(--color-text-muted);
  font-size: 12px;
  text-transform: uppercase;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

table.ranking-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

table.ranking-table tr:hover td {
  background: var(--table-row-hover-bg);
}

table.ranking-table tr.highlighted td {
  background: rgba(0, 210, 211, 0.05);
}

.rank-badge-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  background: var(--progress-bg);
}

table.ranking-table tr:nth-child(1) .rank-badge-number {
  background: #ffd700;
  color: #0c0a1a;
}
table.ranking-table tr:nth-child(2) .rank-badge-number {
  background: #c0c0c0;
  color: #0c0a1a;
}
table.ranking-table tr:nth-child(3) .rank-badge-number {
  background: #cd7f32;
  color: #0c0a1a;
}

/* Dashboard Analytics: SVG Charts */
.chart-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  position: relative;
}

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

.weakness-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 10px;
}

.weakness-subject {
  font-weight: 600;
  font-size: 14px;
}

.weakness-metric {
  color: var(--color-danger);
  font-size: 12px;
  font-weight: 700;
  background: rgba(238, 82, 83, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}

.study-plan-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.step-card {
  border-left: 3px solid var(--color-secondary);
  background: var(--bg-card-subtle);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
}

.step-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.step-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14px;
}

.step-meta {
  font-size: 11px;
  color: var(--color-secondary);
  text-transform: uppercase;
  font-weight: 700;
}

.step-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Pricing Upgrade Area */
.pricing-section-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.pricing-header {
  margin-bottom: 40px;
}

.pricing-header h2 {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1100px) {
  .pricing-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  min-height: 540px;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(13, 19, 43, 0.08);
}

.pricing-card.premium-glow {
  border-color: var(--color-primary);
  box-shadow: 0 8px 32px var(--color-primary-glow);
}

.pricing-card.premium-glow.featured {
  border-color: #ffd700;
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.15);
}

.pricing-card.premium-glow.featured::before {
  content: 'MAIS VENDIDO';
  position: absolute;
  top: 15px;
  right: -30px;
  background: #ffd700;
  color: #09070f;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 30px;
  transform: rotate(45deg);
  letter-spacing: 0.5px;
}

.plan-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--bg-card-subtle);
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.plan-badge.best-value {
  background: rgba(255, 215, 0, 0.15);
  color: #d97706;
}

.total-price {
  font-size: 11.5px;
  color: var(--color-text-muted);
  margin-top: -16px;
  margin-bottom: 12px;
  display: block;
}

.plan-promo {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--color-secondary);
  background: rgba(16, 185, 129, 0.08);
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px dashed rgba(16, 185, 129, 0.2);
}

.plan-name {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.pricing-card.premium-glow.featured .plan-name {
  color: #d97706;
}

.plan-price {
  font-family: var(--font-title);
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
}

.plan-price span {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 400;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-bottom: 24px;
  text-align: left;
}

.plan-feature-item {
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-main);
}

.plan-feature-item.disabled {
  color: var(--color-text-muted);
  opacity: 0.45;
  text-decoration: line-through;
}

.plan-feature-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-secondary);
  stroke-width: 3px;
  fill: none;
}

.plan-feature-item.disabled svg {
  stroke: var(--color-danger);
}

.pricing-btn {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--progress-bg);
  color: var(--color-text-main);
  border: 1px solid var(--border-color);
}

.pricing-btn:hover {
  background: var(--menu-hover-bg);
}

.pricing-btn.premium-action {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #0c0a1a;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.25);
}

.pricing-btn.premium-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 165, 0, 0.4);
}

/* Notifications Toast */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(26, 22, 53, 0.9);
  border: 1px solid var(--color-primary);
  border-radius: 10px;
  padding: 14px 20px;
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  z-index: 11000;
  animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

.toast-notification.success {
  border-color: var(--color-success);
}
.toast-notification.warning {
  border-color: var(--color-warning);
}
.toast-notification.danger {
  border-color: var(--color-danger);
}

/* Utility classes */
.flex-row-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.blur-background {
  filter: blur(4px);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--color-text-main);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle-btn:hover {
  background: var(--menu-hover-bg);
  border-color: var(--color-primary-glow);
  transform: scale(1.05);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.5s ease;
}

.theme-toggle-btn:hover svg {
  transform: rotate(45deg);
}

/* Header Actions container */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Brand Footer Banner */
.brand-footer-banner {
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 12px;
  padding: 14px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  color: #7c3aed;
  font-weight: 600;
  font-size: 13px;
  margin-top: 30px;
  font-family: var(--font-title);
  width: 100%;
}

.brand-footer-banner .divider {
  opacity: 0.3;
}

body.dark-theme .brand-footer-banner {
  background: rgba(124, 58, 237, 0.15);
  color: #ff9ff3;
  border-color: rgba(255, 77, 141, 0.2);
}

/* --- ESTILOS DO CRONOGRAMA --- */
.studyplan-phase-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.phase-tab-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--color-text-muted);
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.phase-tab-btn:hover {
  background: var(--menu-hover-bg);
  color: var(--color-text-main);
  border-color: var(--color-primary-glow);
}

.phase-tab-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px var(--color-primary-glow);
}

.studyplan-hero-card {
  background: linear-gradient(135deg, var(--color-primary-glow), var(--color-secondary-glow));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

body.dark-theme .studyplan-hero-card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(16, 185, 129, 0.08));
}

.studyplan-hero-info {
  flex: 1;
  min-width: 280px;
}

.studyplan-progress-widget {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  min-width: 220px;
  box-shadow: var(--card-shadow);
}

.studyplan-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.study-block-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.study-block-card.active-timer {
  border-color: var(--color-primary);
  box-shadow: 0 0 15px var(--color-primary-glow);
}

.studyplan-days-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

@media (max-width: 1200px) {
  .studyplan-days-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .studyplan-days-grid {
    grid-template-columns: 1fr;
  }
}

.studyplan-day-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--card-shadow);
}

.studyplan-day-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(13, 19, 43, 0.08);
  border-color: var(--color-primary-glow);
}

.studyplan-day-card.active-day {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-glow), 0 8px 30px rgba(13, 19, 43, 0.12);
}

body.dark-theme .studyplan-day-card.active-day {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2), 0 8px 30px rgba(124, 58, 237, 0.15);
}

.studyplan-day-card.completed-day {
  border-color: var(--color-secondary);
  background: rgba(16, 185, 129, 0.02);
}

.day-badge-hoje {
  position: absolute;
  top: -10px;
  right: 15px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 77, 141, 0.3);
  animation: pulse-badge 1.8s infinite;
}

@keyframes pulse-badge {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); box-shadow: 0 2px 12px rgba(255, 77, 141, 0.5); }
  100% { transform: scale(1); }
}

.day-badge-concluido {
  position: absolute;
  top: -10px;
  right: 15px;
  background: var(--color-secondary);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.studyplan-task-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12.5px;
  cursor: pointer;
  user-select: none;
}

.studyplan-task-checkbox {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: all 0.2s ease;
  background: var(--bg-secondary);
}

.studyplan-task-item:hover .studyplan-task-checkbox {
  border-color: var(--color-primary);
}

.studyplan-task-item.checked .studyplan-task-checkbox {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
}

.studyplan-task-item.checked .studyplan-task-checkbox::after {
  content: "✓";
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
}

.studyplan-task-item.checked .studyplan-task-text {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

.studyplan-day-footer {
  margin-top: 15px;
  border-top: 1px dashed var(--border-color);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Study Tips Modern Cards styling */
.tips-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.tips-intro-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--color-text-muted);
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tips-intro-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.tip-modern-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.tip-modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.tip-modern-card.priority-card::before {
  background: linear-gradient(180deg, #f59e0b, #d97706);
}

.tip-modern-card.guidelines-card::before {
  background: linear-gradient(180deg, var(--color-primary), #4f46e5);
}

.tip-modern-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.tip-modern-card.priority-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
}

.tip-modern-card.guidelines-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
}

.tip-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tip-card-icon {
  font-size: 16px;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.priority-card .tip-card-icon {
  background: rgba(245, 158, 11, 0.08);
  color: #d97706;
}

.guidelines-card .tip-card-icon {
  background: rgba(124, 58, 237, 0.08);
  color: var(--color-primary);
}

.tip-card-title {
  margin: 0;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: -0.1px;
}

.tip-card-body {
  font-size: 11px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.tip-card-body strong {
  color: inherit;
}

.tip-card-body ul, .tip-card-body ol {
  margin-top: 6px;
  margin-bottom: 6px;
  padding-left: 18px;
}

.tip-card-body li {
  margin-bottom: 6px;
}



.brand-logo { height: 32px; width: auto; margin-right: 8px; vertical-align: middle; display: inline-block; border-radius: 4px; }


/* --- MAPA DE PROGRESSO / BREADCRUMB --- */
.progress-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
}
.progress-breadcrumb span.clickable {
  cursor: pointer;
  color: var(--color-primary);
  transition: opacity 0.2s;
}
.progress-breadcrumb span.clickable:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* --- STUDY ITEMS MODAL --- */
.study-items-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.study-items-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.study-items-modal {
  background: var(--bg-card);
  width: 90%;
  max-width: 600px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.study-items-modal-overlay.active .study-items-modal {
  transform: translateY(0) scale(1);
}
.study-items-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.study-items-header h3 {
  margin: 0;
  font-size: 20px;
  color: var(--color-text-main);
  font-family: var(--font-title);
}
.study-items-close {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.study-items-close:hover {
  color: var(--color-text-main);
}
.study-items-body {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
}
.study-item-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-body);
}
.study-item-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.1);
}
.study-item-icon {
  font-size: 24px;
  background: var(--bg-card);
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-color);
}
.study-item-info h4 {
  margin: 0 0 4px 0;
  font-size: 15px;
  color: var(--color-text-main);
}
.study-item-info p {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}
