/* ============================================
   Kumon Digital - Matemática Progressiva
   Tema: Azul e Violeta
   ============================================ */

/* =========================
   1. TOKENS DE DESIGN
   ========================= */

:root {
  /* Paleta Lilás */
  --green-50: #faf5ff;
  --green-100: #f3e8ff;
  --green-200: #e9d5ff;
  --green-300: #a78bfa;
  --green-400: #c084fc;
  --green-500: #64748b;
  --green-600: #475569;
  --green-700: #334155;
  --green-800: #1e293b;
  --green-900: #0f172a;

  /* Cores principais */
  --bg-page: #faf5ff;
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #f3e8ff;
  --accent: #8b5cf6;
  --accent-dark: #7c3aed;

  /* Cores de texto */
  --text-white: #FFFFFF;
  --text-dark: #0f172a;
  --text-muted: #1e293b;
  --text-light: #334155;

  /* Cores de status */
  --status-success: #22c55e;
  --status-warning: #f59e0b;
  --status-danger: #ef4444;
  --status-info: #3b82f6;

  /* Componentes */
  --card-bg: #ffffff;
  --navbar-bg: linear-gradient(135deg, #2563eb, #3b82f6, #8b5cf6);
  --gradient: linear-gradient(135deg, #2563eb, #3b82f6, #8b5cf6);
  --gradient-dark: linear-gradient(135deg, #3b82f6, #60a5fa, #8b5cf6);

  /* Espaçamentos */
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 20px;
  --spacing-lg: 28px;
  --spacing-xl: 36px;

  /* Bordas */
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --radius-full: 999px;

  /* Sombras */
  --shadow-soft: 0 4px 20px rgba(71, 85, 105, 0.1);
  --shadow-medium: 0 8px 30px rgba(71, 85, 105, 0.15);
  --shadow-card: 0 2px 12px rgba(71, 85, 105, 0.08);
  --shadow-btn: 0 4px 15px rgba(71, 85, 105, 0.3);
}

/* =========================
   2. RESET E ESTILOS GLOBAIS
   ========================= */

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

body {
  background-color: var(--bg-page);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: contain;
}

html {
  overscroll-behavior-y: contain;
}

h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--text-dark);
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* =========================
   3. NAVBAR
   ========================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(71, 85, 105, 0.1);
  box-shadow: 0 2px 12px rgba(71, 85, 105, 0.08);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  box-shadow: var(--shadow-btn);
}

.navbar-logo .logo-text {
  font-size: 20px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.nav-link i {
  font-size: 18px;
}

.nav-link:hover {
  background: var(--green-100);
  color: var(--primary-dark);
}

.nav-link.active {
  background: var(--gradient);
  color: white;
  box-shadow: var(--shadow-btn);
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-streak {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
}

.user-streak i {
  color: #f59e0b;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--green-100);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-profile:hover {
  background: var(--green-200);
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

/* =========================
   4. LAYOUT PRINCIPAL
   ========================= */

.app-container {
  padding-top: 80px;
  min-height: 100vh;
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* =========================
   5. CARDS
   ========================= */

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(71, 85, 105, 0.08);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-title i {
  font-size: 24px;
  color: var(--primary);
}

.card-title h2 {
  font-size: 18px;
  font-weight: 700;
}

/* =========================
   6. DASHBOARD - BOAS VINDAS
   ========================= */

.welcome-section {
  background: var(--gradient);
  border-radius: var(--radius);
  padding: var(--spacing-xl);
  color: white;
  margin-bottom: var(--spacing-lg);
  position: relative;
  overflow: hidden;
}

.welcome-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.welcome-content {
  position: relative;
  z-index: 1;
}

.welcome-section h1 {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.welcome-section p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 20px;
}

.welcome-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.welcome-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.15);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
}

.welcome-stat i {
  font-size: 24px;
}

.welcome-stat-info span {
  display: block;
  font-size: 12px;
  opacity: 0.8;
}

.welcome-stat-info strong {
  font-size: 18px;
  font-weight: 700;
}

/* =========================
   7. GRID DE NÍVEIS
   ========================= */

.levels-section {
  margin-bottom: var(--spacing-lg);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title i {
  font-size: 24px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title h2 {
  font-size: 20px;
  font-weight: 700;
}

.fase-badge {
  padding: 6px 14px;
  background: var(--gradient);
  color: white;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.level-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: var(--spacing-lg);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.level-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.level-card.current {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(71, 85, 105, 0.1);
}

.level-card.locked {
  opacity: 0.6;
  pointer-events: none;
}

.level-card.locked::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(2px);
}

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

.level-icon {
  width: 48px;
  height: 48px;
  background: var(--green-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
}

.level-card.current .level-icon {
  background: var(--gradient);
  color: white;
}

.level-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.level-status.completed {
  background: var(--green-100);
  color: var(--primary-dark);
}

.level-status.in-progress {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}

.level-status.locked {
  background: #f3e8ff;
  color: #64748b;
}

.level-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.level-description {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.level-progress {
  margin-bottom: 16px;
}

.progress-bar {
  height: 8px;
  background: var(--green-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.level-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.level-days {
  display: flex;
  gap: 6px;
}

.day-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-muted);
}

.day-dot.completed {
  background: var(--gradient);
  color: white;
}

.btn-practice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--gradient);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-btn);
}

.btn-practice:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(71, 85, 105, 0.4);
}

.level-card.locked .btn-practice {
  background: #c084fc;
  box-shadow: none;
}

/* =========================
   8. CONQUISTAS
   ========================= */

.achievements-section {
  margin-bottom: var(--spacing-lg);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.achievement-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: var(--spacing-md);
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.achievement-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.achievement-card.unlocked {
  border-color: var(--primary);
}

.achievement-card.locked {
  opacity: 0.5;
  filter: grayscale(1);
}

.achievement-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  background: var(--green-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.achievement-card.unlocked .achievement-icon {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(71, 85, 105, 0.3);
}

.achievement-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.achievement-description {
  font-size: 12px;
  color: var(--text-muted);
}

/* =========================
   9. ESTATÍSTICAS RÁPIDAS
   ========================= */

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-card);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.stat-icon.green {
  background: var(--gradient);
}

.stat-icon.yellow {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.stat-icon.blue {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.stat-icon.purple {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.stat-info h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
}

.stat-info span {
  font-size: 14px;
  color: var(--text-muted);
}

/* =========================
   10. GRÁFICO DE EVOLUÇÃO
   ========================= */

.chart-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-card);
}

.chart-container {
  height: 300px;
  position: relative;
}

.chart-placeholder {
  height: 100%;
  background: var(--green-50);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

/* =========================
   11. BOTÕES
   ========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(71, 85, 105, 0.4);
}

.btn-secondary {
  background: var(--green-100);
  color: var(--primary-dark);
}

.btn-secondary:hover {
  background: var(--green-200);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--green-100);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* =========================
   12. FORMULÁRIOS
   ========================= */

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--green-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(71, 85, 105, 0.1);
}

/* =========================
   13. MODAIS
   ========================= */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: var(--radius);
  padding: var(--spacing-xl);
  max-width: 500px;
  width: 90%;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
}

.modal-close {
  width: 36px;
  height: 36px;
  background: var(--green-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--green-200);
  color: var(--primary-dark);
}

/* =========================
   14. TOAST NOTIFICATIONS
   ========================= */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-medium);
  transform: translateX(120%);
  transition: transform 0.3s ease;
}

.toast.show {
  transform: translateX(0);
}

.toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.toast.success .toast-icon {
  background: var(--status-success);
}

.toast.error .toast-icon {
  background: var(--status-danger);
}

.toast.warning .toast-icon {
  background: var(--status-warning);
}

.toast-message {
  font-size: 14px;
  font-weight: 500;
}

/* =========================
   15. AUTH OVERLAY
   ========================= */

#auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(139, 92, 246, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.auth-card {
  background: white;
  border-radius: var(--radius);
  padding: var(--spacing-xl);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-medium);
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-logo-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}

.auth-logo-text {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-title {
  text-align: center;
  font-size: 22px;
  margin-bottom: 8px;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.auth-field {
  margin-bottom: 16px;
}

.auth-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.auth-field input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--green-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(71, 85, 105, 0.1);
}

.auth-msg {
  padding: 12px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}

.auth-msg:not(:empty) {
  display: block;
}

.auth-msg-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.auth-msg-success {
  background: var(--green-100);
  color: var(--primary-dark);
  border: 1px solid var(--green-300);
}

.auth-btn {
  width: 100%;
  padding: 14px;
  background: var(--gradient);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-btn);
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(71, 85, 105, 0.4);
}

.auth-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.auth-toggle {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-toggle button {
  background: none;
  color: var(--primary);
  font-weight: 600;
  margin-left: 4px;
}

.auth-toggle button:hover {
  text-decoration: underline;
}

.auth-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.auth-overlay-hide {
  animation: fadeOut 0.4s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Auth Dropdown */
.auth-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-medium);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1001;
}

.auth-dropdown-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.auth-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.auth-dropdown-avatar {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.auth-dropdown-info {
  display: flex;
  flex-direction: column;
}

.auth-dropdown-nome {
  font-size: 14px;
  font-weight: 600;
}

.auth-dropdown-email {
  font-size: 12px;
  color: var(--text-muted);
}

.auth-dropdown-divider {
  height: 1px;
  background: var(--green-100);
}

.auth-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  background: none;
  font-size: 14px;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.auth-dropdown-btn:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* Avatar com iniciais */
.avatar-iniciais {
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
}

/* =========================
   16. BOTÃO VOLTAR LUMED
   ========================= */

.btn-back-lumed {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #2563eb, #3b82f6, #8b5cf6);
  color: white;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-back-lumed:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-back-lumed i {
  font-size: 16px;
}

/* Botão flutuante (treino/resultado) */
.btn-back-lumed-float {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #2563eb, #3b82f6, #8b5cf6);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
}

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

.btn-back-lumed-float i {
  font-size: 16px;
}

/* =========================
   17. HAMBURGER MENU
   ========================= */

.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--green-100);
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 20px;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.hamburger-btn:hover {
  background: var(--green-200);
}

/* =========================
   18. RESPONSIVO
   ========================= */

@media (max-width: 1024px) {
  .hamburger-btn {
    display: flex;
  }

  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 12px 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border-top: 1px solid rgba(71, 85, 105, 0.1);
    z-index: 999;
  }

  .navbar-menu.open {
    display: flex;
  }

  .navbar-menu .nav-link {
    padding: 12px 16px;
    border-radius: var(--radius-xs);
    width: 100%;
  }

  .levels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 16px;
  }

  .welcome-section {
    padding: var(--spacing-lg);
  }

  .welcome-section h1 {
    font-size: 22px;
  }

  .welcome-section p {
    font-size: 14px;
  }

  .welcome-stats {
    flex-direction: column;
    gap: 12px;
  }

  .welcome-stat {
    padding: 10px 16px;
  }

  .levels-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card {
    padding: var(--spacing-md);
  }

  .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .stat-info h3 {
    font-size: 22px;
  }

  .navbar-logo .logo-text {
    display: none;
  }

  .user-name {
    display: none;
  }

  .level-card {
    padding: var(--spacing-md);
  }

  .level-card:hover {
    transform: none;
  }

  .btn-practice {
    min-height: 44px;
    padding: 10px 16px;
  }

  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .achievement-card:hover {
    transform: none;
  }

  .btn-back-lumed span {
    display: none;
  }
}

@media (max-width: 480px) {
  .app-container {
    padding-top: 70px;
  }

  .navbar-container {
    padding: 10px 16px;
  }

  .card {
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
  }

  .welcome-section {
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
  }

  .welcome-section h1 {
    font-size: 20px;
  }

  .welcome-stat-info strong {
    font-size: 16px;
  }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-info h3 {
    font-size: 20px;
  }

  .section-title h2 {
    font-size: 17px;
  }

  .level-title {
    font-size: 15px;
  }

  .level-description {
    font-size: 13px;
  }

  .btn-practice {
    width: 100%;
    justify-content: center;
  }

  .level-footer {
    flex-direction: column;
    gap: 12px;
  }

  .level-days {
    justify-content: center;
  }

  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .achievement-icon {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .chart-container {
    height: 220px;
  }

  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    width: 100%;
  }

  .modal-content {
    padding: var(--spacing-lg);
  }
}

@media (max-width: 360px) {
  .main-content {
    padding: 12px;
  }

  .welcome-section {
    padding: 16px;
  }

  .welcome-section h1 {
    font-size: 18px;
  }

  .welcome-section p {
    font-size: 13px;
  }

  .stat-info h3 {
    font-size: 18px;
  }

  .stat-info span {
    font-size: 12px;
  }

  .section-title h2 {
    font-size: 16px;
  }

  .level-card {
    padding: 16px;
  }

  .level-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .achievement-card {
    padding: 12px;
  }

  .achievement-name {
    font-size: 12px;
  }

  .achievement-description {
    font-size: 11px;
  }

  .fase-badge {
    font-size: 11px;
    padding: 4px 10px;
  }
}
