:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --success: #10b981;
  --success-dark: #059669;
  --danger: #ef4444;
  --warning: #f59e0b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f8f9fa;
  min-height: 100vh;
  color: var(--gray-900);
  padding-top: 84px;
  padding-bottom: 80px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px 16px 16px;
}

/* === HEADER === */
.app-header {
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
  padding: 0;
  color: var(--white);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}

.app-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  pointer-events: none;
}

.header-content {
  max-width: 100%;
  margin: 0 auto;
  padding: 12px 16px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.header-info {
  flex: 1;
  min-width: 0;
}

.header-info h1 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.header-info .subtitle {
  font-size: 12px;
  opacity: 0.9;
  font-weight: 500;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.header-streak {
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.25) 0%, rgba(249, 115, 22, 0.25) 100%);
  padding: 5px 8px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-profile {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 3px 8px 3px 3px;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.header-profile:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.profile-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.profile-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 20px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.profile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
}

.profile-menu-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  flex-shrink: 0;
}

.profile-menu-info {
  flex: 1;
  min-width: 0;
}

.profile-menu-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu-email {
  font-size: 13px;
  color: var(--gray-600);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 0 12px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
  text-align: left;
}

.profile-menu-item:hover {
  background: var(--gray-50);
}

.profile-menu-item:first-of-type {
  border-radius: 0 0 16px 16px;
}

.profile-menu-item svg {
  width: 20px;
  height: 20px;
  color: var(--gray-500);
}

.profile-menu-item:hover svg {
  color: var(--primary);
}

.header-streak-icon {
  font-size: 16px;
  line-height: 1;
}

.header-streak-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.header-streak-number {
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.header-streak-label {
  font-size: 8px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* === GAMIFICATION CARD === */
.gamification-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin-bottom: 12px;
  box-shadow: none;
  border: none;
  position: relative;
}

.gamification-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.03) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* === DAILY PROGRESS BAR === */
.daily-progress {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 12px;
  padding: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 2px solid #fbbf24;
}

.daily-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.daily-progress-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
}

.daily-progress-icon {
  font-size: 16px;
}

.daily-progress-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
}

.daily-progress-percent {
  background: rgba(255, 255, 255, 0.6);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
}

.daily-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 6px;
}

.daily-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f87171 0%, #ef4444 100%);
  border-radius: 6px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

/* Estados de progresso com cores diferentes */
.daily-progress-fill[data-progress="low"] {
  background: linear-gradient(90deg, #f87171 0%, #ef4444 100%);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

.daily-progress-fill[data-progress="medium"] {
  background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.daily-progress-fill[data-progress="high"] {
  background: linear-gradient(90deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.daily-progress-fill[data-progress="complete"] {
  background: linear-gradient(90deg, #60a5fa 0%, #3b82f6 100%);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
  }
}

.daily-progress-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #92400e;
  opacity: 0.8;
}

.daily-progress-separator {
  opacity: 0.5;
}

.streak-banner {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  color: var(--white);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  transition: transform 0.2s ease;
}

.streak-banner:hover {
  transform: scale(1.02);
}

.streak-banner::before {
  content: '🔥';
  position: absolute;
  font-size: 90px;
  opacity: 0.15;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
}

.streak-number {
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.streak-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  opacity: 0.95;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.stat-box {
  background: linear-gradient(to bottom, var(--white) 0%, var(--gray-50) 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
  transition: left 0.5s ease;
}

.stat-box:hover::before {
  left: 100%;
}

.stat-box:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.stat-box .value {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-box .label {
  font-size: 10px;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.queue-summary {
  background: linear-gradient(to bottom, var(--gray-50) 0%, var(--white) 100%);
  border-radius: 10px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.queue-summary-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-600);
  font-weight: 700;
  margin-bottom: 12px;
}

.queue-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  transition: background 0.2s ease;
}

.queue-row:hover {
  background: rgba(99, 102, 241, 0.05);
  margin: 0 -8px;
  padding: 9px 8px;
  border-radius: 6px;
}

.queue-row:not(:last-child) {
  border-bottom: 1px solid var(--gray-200);
}

.queue-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-700);
}

.queue-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--white);
}

.queue-dot.learn {
  background: var(--primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.queue-dot.review {
  background: var(--success);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.queue-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  background: var(--gray-100);
  padding: 2px 10px;
  border-radius: 8px;
  min-width: 32px;
  text-align: center;
}

/* === DECK SECTION === */
.deck-section {
  background: var(--white);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 
    0 3px 10px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top-color: rgba(255, 255, 255, 0.6);
  border-bottom-color: rgba(0, 0, 0, 0.12);
  position: relative;
  overflow-x: hidden;
}

.deck-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-100);
}

.deck-title-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.deck-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  position: relative;
}

.deck-icon svg {
  width: 18px;
  height: 18px;
  stroke: white;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: relative;
  z-index: 1;
}

.deck-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
}

.deck-icon.learn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.deck-icon.review {
  background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
}

.deck-icon.queue {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.deck-title-text h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1px;
}

.deck-title-text p {
  font-size: 10px;
  color: var(--gray-500);
}

.deck-count {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* === VERSE CARD === */
.verse-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);
  border-top-color: rgba(255, 255, 255, 0.5);
  border-bottom-color: rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
  max-width: 100%;
}

.verse-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  transition: width 0.3s ease;
}

.verse-card::after {
  content: '→';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--gray-400);
  opacity: 0;
  transition: all 0.3s ease;
}

.verse-card.learn::before {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.verse-card.review::before {
  background: linear-gradient(180deg, var(--success) 0%, var(--success-dark) 100%);
}

.verse-card:hover {
  border-color: var(--primary);
  transform: translateX(3px);
  box-shadow: -3px 0 12px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  background: linear-gradient(to right, var(--white) 0%, rgba(99, 102, 241, 0.02) 100%);
}

.verse-card:hover::before {
  width: 5px;
}

.verse-card:hover::after {
  opacity: 1;
  right: 12px;
}

.verse-card:last-child {
  margin-bottom: 0;
}

.verse-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.verse-reference {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 3px;
  letter-spacing: -0.3px;
  word-break: break-word;
  max-width: 100%;
}

.verse-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
}

.verse-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.verse-badge.learn {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.verse-badge.review {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.verse-due {
  font-size: 9px;
  color: var(--gray-600);
  font-weight: 500;
}

.progress-bar {
  display: flex;
  gap: 2px;
  align-items: center;
  background: var(--gray-100);
  padding: 4px 5px;
  border-radius: 6px;
}

.progress-step {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gray-300);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-step.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  width: 12px;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

/* === CARDS POR DIA (Opacidade Gradativa) === */
.verse-card.day-today {
  background: #FFFFFF;
}

.verse-card.day-yesterday {
  background: #F8F7F5;
}

.verse-card.day-daybefore {
  background: #F0EDE8;
}

/* === BADGES DE DIA === */
.day-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.day-badge.today {
  background: linear-gradient(135deg, #28A745 0%, #20C997 100%);
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.day-badge.yesterday {
  background: linear-gradient(135deg, #FFC107 0%, #FFD54F 100%);
  box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.day-badge.daybefore {
  background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
  box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

.verse-card:hover .day-badge {
  transform: scale(1.1);
}

/* === MODAL === */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s ease;
  overflow-y: auto;
}

.modal-overlay::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(79, 70, 229, 0.1) 0%, transparent 50%);
  pointer-events: none;
  animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-overlay.closing {
  opacity: 0;
}

.modal-content {
  background: var(--white);
  border-radius: 20px;
  padding: 22px 20px;
  max-width: 500px;
  width: 100%;
  max-height: 92vh;
  overflow: hidden;
  box-shadow: 
    0 24px 70px rgba(0, 0, 0, 0.22), 
    0 0 0 1px rgba(99, 102, 241, 0.3), 
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 0 4px rgba(99, 102, 241, 0.15),
    0 0 20px rgba(99, 102, 241, 0.2);
  transform: scale(1);
  transition: transform 0.25s ease;
  margin: auto;
  position: relative;
  border: 2px solid transparent;
}

.modal-content::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.8), 
    rgba(147, 51, 234, 0.6),
    rgba(59, 130, 246, 0.6),
    rgba(99, 102, 241, 0.8));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.8;
  pointer-events: none;
  animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

.modal-content::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.12), transparent);
  pointer-events: none;
  border-radius: 20px 20px 0 0;
}

.modal-overlay.active .modal-content {
  animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.closing .modal-content {
  transform: scale(0.95);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  text-align: center;
  margin-bottom: 18px;
  position: relative;
  padding: 18px 16px;
  background: linear-gradient(135deg, #fafbff 0%, #f0f4ff 100%);
  border-radius: 16px;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 
    0 2px 8px rgba(99, 102, 241, 0.08), 
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 0 1px rgba(99, 102, 241, 0.1);
  position: relative;
  overflow: hidden;
}

.modal-header::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.6), 
    rgba(147, 51, 234, 0.4),
    rgba(59, 130, 246, 0.4),
    rgba(99, 102, 241, 0.6));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.modal-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.4;
}

.modal-header-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.modal-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  border-radius: 12px;
  box-shadow: 
    0 4px 14px rgba(99, 102, 241, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 0 0 2px rgba(99, 102, 241, 0.2);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.modal-header-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.modal-header-icon svg {
  width: 20px;
  height: 20px;
  color: white;
  stroke-width: 2.5;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.modal-header-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
  letter-spacing: -0.4px;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  position: relative;
}

.modal-header .meta {
  font-size: 12px;
  color: var(--gray-600);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 0 1px rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.08);
}

.verse-container {
  margin-bottom: 18px;
}

.verse-display {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  border: 3px solid #FFD700;
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  min-height: 200px;
  max-height: 55vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(0, 0, 0, 0.02), 0 0 20px rgba(255, 215, 0, 0.15);
}

.verse-display.hidden {
  cursor: pointer;
  background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
  box-shadow: 
    0 2px 10px rgba(99, 102, 241, 0.15), 
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(99, 102, 241, 0.2),
    0 0 20px rgba(99, 102, 241, 0.1);
}

.verse-display.hidden::before {
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.8), 
    rgba(147, 51, 234, 0.6),
    rgba(59, 130, 246, 0.6),
    rgba(99, 102, 241, 0.8));
  animation: borderPulse 3s ease-in-out infinite;
}

@keyframes borderPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.verse-display.hidden:hover {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 12px 35px rgba(99, 102, 241, 0.3), 
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(99, 102, 241, 0.3),
    0 0 30px rgba(99, 102, 241, 0.2);
}

.verse-display.hidden:hover::before {
  animation: borderPulse 1.5s ease-in-out infinite;
}

.reveal-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

.reveal-icon {
  width: 44px;
  height: 44px;
  color: var(--primary);
  stroke-width: 2;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 6px rgba(99, 102, 241, 0.2));
}

.verse-display.hidden:hover .reveal-icon {
  transform: scale(1.1);
  color: #4f46e5;
}

.reveal-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  letter-spacing: -0.2px;
  margin: 0;
}

.verse-display .text {
  font-size: 22px;
  line-height: 1.75;
  color: var(--gray-900);
  font-weight: 500;
  max-width: 100%;
  margin: 0;
  padding: 0 8px;
  letter-spacing: -0.1px;
  text-align: center;
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  white-space: pre-wrap;
}

/* Efeito de revelação premium com múltiplas camadas */
.verse-display .text.revealing {
  animation: revealText 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  position: relative;
  overflow: hidden;
}

/* Cortina principal com gradiente divino (fogo e raios) */
.verse-display .text.revealing::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 0;
  width: 120%;
  height: 120%;
  background: linear-gradient(110deg, 
    transparent 0%,
    rgba(255, 215, 0, 0.2) 15%,
    rgba(255, 255, 255, 0.9) 25%,
    rgba(255, 180, 50, 0.4) 40%,
    rgba(255, 215, 0, 0.5) 50%,
    rgba(255, 140, 0, 0.4) 60%,
    rgba(255, 255, 255, 0.9) 75%,
    rgba(255, 215, 0, 0.2) 90%,
    transparent 100%);
  animation: curtainReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  z-index: 3;
  filter: blur(1px);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5), 0 0 50px rgba(255, 140, 0, 0.3);
}

/* Efeito de brilho secundário */
.verse-display .text.revealing::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 40%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0.4) 60%,
    transparent 100%);
  animation: shineReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
  z-index: 4;
  transform: skewX(-20deg);
  filter: blur(2px);
}

@keyframes revealText {
  0% {
    opacity: 0;
    filter: blur(15px) brightness(1.5);
    transform: scale(0.92) translateY(10px);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.9), 0 0 50px rgba(255, 140, 0, 0.6);
  }
  30% {
    opacity: 0.2;
    filter: blur(8px) brightness(1.3);
  }
  60% {
    opacity: 0.7;
    filter: blur(2px) brightness(1.1);
  }
  100% {
    opacity: 1;
    filter: blur(0) brightness(1);
    transform: scale(1) translateY(0);
    text-shadow: 0 2px 20px rgba(255, 215, 0, 0.15), 0 4px 30px rgba(255, 140, 0, 0.08);
  }
}

@keyframes curtainReveal {
  0% {
    transform: translateX(-100%) skewX(-10deg);
    opacity: 1;
  }
  50% {
    opacity: 1;
    filter: blur(1px) brightness(1.2);
  }
  100% {
    transform: translateX(100%) skewX(10deg);
    opacity: 0;
    filter: blur(2px) brightness(1);
  }
}

@keyframes shineReveal {
  0% {
    left: -100%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

/* Animação das partículas de brilho */
@keyframes sparkleFloat {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0) rotate(0deg);
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translate(
      calc(var(--endX) - 50%), 
      calc(var(--endY) - 50%)
    ) scale(1.5) rotate(var(--rotation));
  }
}

.sparkle-particle {
  animation: sparkleFloat 1s ease-out forwards;
}

.verse-display .text::before {
  content: '"';
  position: absolute;
  left: -12px;
  top: -8px;
  font-size: 36px;
  color: var(--primary);
  opacity: 0.12;
  font-family: Georgia, serif;
  line-height: 1;
}

.verse-display .text::after {
  content: '"';
  position: absolute;
  right: -12px;
  bottom: -20px;
  font-size: 36px;
  color: var(--primary);
  opacity: 0.12;
  font-family: Georgia, serif;
  line-height: 1;
}

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

/* Modal Actions - Botões Lembrei/Esqueci */
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  width: 100%;
}

.btn-action {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 18px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn-action::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn-action:hover::before:not(:disabled) {
  opacity: 1;
}

.btn-action svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.5;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.btn-action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.6);
}

.btn-forgot {
  background: linear-gradient(135deg, #fca5a5 0%, #f87171 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.btn-forgot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-forgot:hover:not(:disabled)::after {
  opacity: 1;
}

.btn-forgot:hover:not(:disabled) {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-forgot:hover:not(:disabled) svg {
  transform: rotate(-5deg) scale(1.05);
}

.btn-forgot:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.btn-remembered {
  background: linear-gradient(135deg, #6ee7b7 0%, #34d399 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.btn-remembered::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-remembered:hover:not(:disabled)::after {
  opacity: 1;
}

.btn-remembered:hover:not(:disabled) {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-remembered:hover:not(:disabled) svg {
  transform: rotate(5deg) scale(1.05);
}

.btn-remembered:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.btn-close {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: var(--white);
  border: none;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 10px;
  box-shadow: 
    0 4px 14px rgba(99, 102, 241, 0.3), 
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-close svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
  transition: transform 0.3s ease;
}

.btn-close::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

.btn-close:hover::before {
  left: 100%;
}

.btn-close:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(99, 102, 241, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.btn-close:hover svg {
  transform: rotate(90deg);
}

.btn-close:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 8px rgba(99, 102, 241, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Success feedback */
.modal-content.success-flash {
  animation: successFlash 0.6s ease;
  position: relative;
}

.modal-content.success-flash::after {
  content: '✨';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 80px;
  opacity: 0;
  animation: sparkle 0.6s ease;
  pointer-events: none;
}

@keyframes successFlash {
  0% {
    background: var(--white);
    box-shadow: 
      0 24px 70px rgba(0, 0, 0, 0.22), 
      0 0 0 1px rgba(0, 0, 0, 0.06), 
      inset 0 1px 0 rgba(255, 255, 255, 0.8),
      0 0 0 3px rgba(99, 102, 241, 0.08);
  }
  20% {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    transform: scale(1.015);
    box-shadow: 
      0 24px 70px rgba(16, 185, 129, 0.3), 
      0 0 0 1px rgba(16, 185, 129, 0.2), 
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 0 0 3px rgba(16, 185, 129, 0.2);
  }
  100% {
    background: var(--white);
    transform: scale(1);
    box-shadow: 
      0 24px 70px rgba(0, 0, 0, 0.22), 
      0 0 0 1px rgba(0, 0, 0, 0.06), 
      inset 0 1px 0 rgba(255, 255, 255, 0.8),
      0 0 0 3px rgba(99, 102, 241, 0.08);
  }
}

@keyframes sparkle {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2) rotate(180deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8) rotate(360deg);
  }
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--white);
  color: var(--gray-900);
  padding: 16px 24px;
  border-radius: 14px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.2), 
    0 2px 10px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  z-index: 10000;
  font-size: 15px;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  max-width: 90%;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-notification.toast-success {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #065f46;
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 
    0 10px 30px rgba(16, 185, 129, 0.2), 
    0 2px 10px rgba(16, 185, 129, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.toast-notification.toast-error {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: #991b1b;
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 
    0 10px 30px rgba(239, 68, 68, 0.2), 
    0 2px 10px rgba(239, 68, 68, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-close:active {
  transform: translateY(0);
}

/* === NAVIGATION === */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--gray-200);
  padding: 8px 20px 8px 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  z-index: 100;
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .bottom-nav {
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-500);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 10px;
  position: relative;
  min-width: 64px;
}

.nav-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 3px 3px;
  transition: width 0.3s ease;
}

.nav-btn:hover {
  background: var(--gray-100);
}

.nav-btn.active {
  color: var(--primary);
}

.nav-btn.active::before {
  width: 32px;
}

.nav-icon {
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform 0.3s ease;
}

.nav-btn:active .nav-icon {
  transform: scale(0.9);
}

.nav-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all 0.3s ease;
}

.nav-btn.active .nav-icon svg {
  stroke-width: 2.5;
}

.nav-btn:hover .nav-icon svg {
  stroke-width: 2.5;
}

.nav-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* === SCREENS === */
.screen {
  display: none;
}

.screen.active {
  display: block;
}

/* Exibir FILAS DE MEMORIZAÇÃO somente na aba Stats */
.memory-queues {
  display: none;
}

#screen-stats .memory-queues {
  display: block;
}


/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--gray-500);
}

.empty-state .icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 18px;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  color: var(--gray-500);
}

/* === FORM === */
.form-card {
  background: var(--white);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.form-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.03) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.form-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}

/* ========== LOGIN SCREEN ========== */
.login-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-overlay.active {
  display: flex;
}

.login-container {
  background: var(--white);
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: loginIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes loginIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 36px;
}

.login-icon {
  font-size: 56px;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.login-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.login-header p {
  font-size: 15px;
  color: var(--gray-600);
  font-weight: 500;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-900);
  transition: all 0.2s ease;
  background: var(--white);
}

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

.form-input::placeholder {
  color: var(--gray-400);
}

.btn-login {
  padding: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 8px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
}

.btn-login:hover::before {
  transform: translateX(0);
}

.btn-login:active {
  transform: translateY(0);
}

.btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-login span {
  position: relative;
  z-index: 1;
}

.login-error {
  padding: 12px 16px;
  background: #fee;
  color: #c00;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border: 1px solid #fcc;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.login-footer {
  margin-top: 32px;
  text-align: center;
}

.login-footer p {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
}

.form-group {
  margin-bottom: 14px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-submit {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-submit:active {
  transform: translateY(0);
}

/* === LIST VIEW === */
.book-group {
  margin-bottom: 12px;
}

.book-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  padding: 5px 10px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
  border-radius: 7px;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.book-count {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  padding: 1px 5px;
  border-radius: 8px;
  margin-left: auto;
}

.list-item-compact {
  padding: 6px 10px;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.2s ease;
  cursor: pointer;
}

.list-item-compact:hover {
  background: var(--gray-50);
}

.list-item-compact:last-child {
  border-bottom: none;
}

.list-item-compact-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.list-item-compact-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-900);
}

.list-item-status-compact {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.list-item-status-compact.learn {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
}

.list-item-status-compact.review {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
}

.list-item-status-compact.inactive {
  background: var(--gray-200);
  color: var(--gray-600);
}

.list-item-compact-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--gray-600);
}

.verse-catalog-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 2px 0 4px;
}

#screen-verses .container {
  max-width: 960px;
}

@media (min-width: 1024px) {
  #screen-verses .container {
    max-width: 1200px;
  }
}

.verse-catalog-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  padding: 12px 14px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.verse-catalog-item:hover {
  background: var(--white);
  border-color: var(--primary-100, #dbeafe);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.verse-catalog-reference {
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 6px;
}

.verse-catalog-text {
  color: var(--gray-800);
  font-size: 14px;
  line-height: 1.55;
}

.verse-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  justify-content: flex-end;
}

.verse-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.18);
}

.verse-icon-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.24);
}

/* Modal editar verso */
#editVerseModal .modal-content {
  max-width: 700px;
}

#editVerseText {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  min-height: 150px;
}

#editVerseRef {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--gray-100);
  border-radius: 8px;
  background: var(--gray-50);
  color: var(--gray-700);
}

#editVerseModal .modal-actions .btn-action {
  min-width: 110px;
}

@media (min-width: 1024px) {
  .verse-catalog-item {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    align-items: center;
    gap: 12px;
  }

  .verse-catalog-reference {
    margin-bottom: 0;
    text-align: left;
  }

  .verse-catalog-text {
    font-size: 15px;
  }
}

@media (min-width: 1280px) {
  #screen-verses .container {
    max-width: 1400px;
  }

  #screen-verses .list-card {
    padding: 16px 20px;
  }

  .verse-catalog-item {
    grid-template-columns: 200px 1fr auto;
    gap: 18px;
  }
}

/* Totais de versos */
.verse-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.verse-total-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.verse-total-card.highlight {
  border-color: var(--primary-100, #dbeafe);
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
}

.verse-total-label {
  font-size: 12px;
  color: var(--gray-600);
  font-weight: 600;
}

.verse-total-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
}

@media (min-width: 1280px) {
  .verse-totals {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
  }
}

.list-card {
  background: var(--white);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.list-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.03) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.list-card h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.list-item {
  padding: 12px;
  border-bottom: 1px solid var(--gray-200);
  cursor: pointer;
  transition: all 0.2s ease;
}

.list-item:hover {
  background: var(--gray-50);
}

.list-item:last-child {
  border-bottom: none;
}

.list-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.list-item-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
}

.list-item-status {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
}

.list-item-status.learn {
  background: #eff6ff;
  color: var(--primary);
}

.list-item-status.review {
  background: #ecfdf5;
  color: var(--success);
}

.list-item-status.inactive {
  background: var(--gray-100);
  color: var(--gray-500);
}

.list-item-meta {
  font-size: 13px;
  color: var(--gray-600);
}

/* === STATS VIEW === */
.stats-card {
  background: var(--white);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.stats-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.03) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.stats-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 14px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.stat-row:not(:last-child) {
  border-bottom: 1px solid var(--gray-200);
}

.stat-row-label {
  font-size: 14px;
  color: var(--gray-700);
}

.stat-row-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
}

/* Contador de versos para revisar novamente - Design Premium */
.retry-counter {
  background: linear-gradient(135deg, #ffffff 0%, #fffef9 100%);
  border: 2px solid #FFD700;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 16px;
  box-shadow: 
    0 4px 16px rgba(255, 215, 0, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: center;
}

.retry-header {
  margin-bottom: 8px;
}

.retry-label {
  font-size: 12px;
  font-weight: 600;
  color: #B8860B;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.retry-timer-display {
  margin-bottom: 12px;
}

.retry-timer-value {
  font-size: 56px;
  font-weight: 700;
  color: #B8860B;
  letter-spacing: 4px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  text-shadow: 0 2px 8px rgba(184, 134, 11, 0.15);
  display: inline-block;
  min-width: 140px;
}

.retry-info {
  font-size: 14px;
  color: #8B6914;
  font-weight: 500;
}

.retry-count {
  font-size: 20px;
  font-weight: 700;
  color: #B8860B;
}

.retry-text {
  color: #8B6914;
  font-weight: 500;
}

/* Queue Section - Área de scroll */
.queue-section {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Scrollbar customizado */
.queue-section::-webkit-scrollbar,
.priority-section::-webkit-scrollbar,
.deck-section .verse-card-container::-webkit-scrollbar {
  width: 6px;
}

.queue-section::-webkit-scrollbar-track,
.priority-section::-webkit-scrollbar-track,
.deck-section .verse-card-container::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 10px;
}

.queue-section::-webkit-scrollbar-thumb,
.priority-section::-webkit-scrollbar-thumb,
.deck-section .verse-card-container::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 10px;
}

.queue-section::-webkit-scrollbar-thumb:hover,
.priority-section::-webkit-scrollbar-thumb:hover,
.deck-section .verse-card-container::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* Versão Firefox */
.queue-section,
.priority-section,
.deck-section .verse-card-container {
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) var(--gray-100);
}

/* Queue Cards Dinâmicos */
.queue-card {
  background: var(--white);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top-color: rgba(255, 255, 255, 0.5);
  border-bottom-color: rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Card de retry (versos errados para revisar novamente) */
.queue-card.retry-card {
  background: linear-gradient(135deg, #fffbf0 0%, #fff9e6 100%);
  border: 2px solid #FFD700;
  box-shadow: 
    0 3px 8px rgba(255, 215, 0, 0.2),
    0 1px 3px rgba(255, 140, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.queue-card.retry-card:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 16px rgba(255, 215, 0, 0.3),
    0 2px 6px rgba(255, 140, 0, 0.2);
  border-color: #FFC700;
}
  border-bottom-color: rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: all 0.2s ease;
}

.queue-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

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

.verse-ref {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.3px;
}

.mode-badge {
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 5px;
  font-weight: 600;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.2);
  letter-spacing: 0.2px;
}

.queue-preview {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 6px;
  line-height: 1.5;
}

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

.next-review {
  font-size: 10px;
  color: var(--gray-500);
  font-weight: 500;
}

/* === SISTEMA DE ESTEIRA === */

.priority-section {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.priority-header {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  padding: 8px 0;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.priority-count {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 12px;
  font-weight: 500;
}

.priority-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* === RESPONSIVO - MOBILE === */
@media (max-width: 640px) {
  .modal-overlay {
    padding: 12px;
    align-items: flex-start;
    padding-top: 20px;
  }
  
  .modal-content {
    padding: 18px 16px;
    border-radius: 18px;
    max-height: 90vh;
  }
  
  .modal-header {
    padding: 16px 14px;
    margin-bottom: 16px;
  }
  
  .modal-header h3 {
    font-size: 18px;
    letter-spacing: -0.3px;
  }
  
  .modal-header .meta {
    font-size: 11px;
    padding: 4px 10px;
  }
  
  .verse-container {
    margin-bottom: 16px;
  }
  
  .verse-display {
    padding: 28px 20px;
    min-height: 160px;
    max-height: 50vh;
    border-radius: 14px;
  }
  
  .verse-display .text {
    font-size: 20px;
    line-height: 1.7;
    padding: 0 4px;
  }
  
  .verse-display .text::before,
  .verse-display .text::after {
    font-size: 30px;
  }
  
  .verse-display .text::before {
    left: -10px;
    top: -6px;
  }
  
  .verse-display .text::after {
    right: -10px;
    bottom: -18px;
  }
  
  .reveal-icon {
    width: 40px;
    height: 40px;
  }
  
  .reveal-text {
    font-size: 13px;
  }
  
  .reveal-prompt {
    gap: 14px;
  }
  
  .modal-actions {
    gap: 8px;
    margin-top: 16px;
  }
  
  .btn-action {
    padding: 12px 14px;
    font-size: 13px;
    border-radius: 11px;
  }
  
  .btn-action svg {
    width: 19px;
    height: 19px;
  }
  
  .btn-close {
    padding: 13px;
    font-size: 14px;
    border-radius: 12px;
  }
  
  .toast-notification {
    font-size: 14px;
    padding: 14px 20px;
    border-radius: 10px;
    top: 80px;
  }
}

@media (max-width: 480px) {
  .modal-overlay {
    padding: 8px;
    padding-top: 16px;
  }
  
  .modal-content {
    padding: 16px 14px;
    border-radius: 16px;
  }
  
  .verse-display {
    padding: 24px 18px;
    min-height: 140px;
  }
  
  .verse-display .text {
    font-size: 18px;
    line-height: 1.65;
  }
  
  .btn-action {
    font-size: 12px;
    padding: 11px 12px;
  }
}

/* ========== SCHEDULE REPORT - 30 DIAS ========== */

/* Resumo do Agendamento */
.schedule-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
  padding: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
}

.schedule-summary-item {
  text-align: center;
}

.schedule-summary-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 4px;
  font-weight: 500;
}

.schedule-summary-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: white;
}

.schedule-summary-value.learning {
  color: #fbbf24;
}

.schedule-summary-value.review {
  color: #34d399;
}

/* === TABELA DE AGENDAMENTO === */
.schedule-table-wrapper {
  overflow-x: auto;
  margin-top: 16px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 14px;
}

.schedule-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.schedule-table th {
  padding: 12px 8px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}

.schedule-table th.hide-mobile {
  display: table-cell;
}

.schedule-table tbody tr {
  border-bottom: 1px solid var(--gray-200);
  transition: background 0.2s;
}

.schedule-table tbody tr:hover {
  background: var(--gray-50);
}

.schedule-table tbody tr:last-child {
  border-bottom: none;
}

.schedule-table td {
  padding: 10px 8px;
}

.schedule-table td.hide-mobile {
  display: table-cell;
}

.schedule-table .badge-learning,
.schedule-table .badge-review {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.schedule-table .badge-learning {
  background: #fef3c7;
  color: #92400e;
}

.schedule-table .badge-review {
  background: #d1fae5;
  color: #065f46;
}

/* Responsividade da Tabela */
@media (max-width: 768px) {
  .schedule-summary {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
  }
  
  .schedule-summary-label {
    font-size: 11px;
  }
  
  .schedule-summary-value {
    font-size: 20px;
  }
  
  .schedule-table th.hide-mobile,
  .schedule-table td.hide-mobile {
    display: none;
  }
  
  .schedule-table th,
  .schedule-table td {
    padding: 10px 6px;
    font-size: 13px;
  }
  
  .schedule-table .badge-learning,
  .schedule-table .badge-review {
    padding: 3px 8px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .schedule-summary {
    grid-template-columns: 1fr 1fr;
  }
  
  .schedule-summary-value {
    font-size: 18px;
  }
  
  .schedule-table th,
  .schedule-table td {
    padding: 8px 4px;
    font-size: 12px;
  }
  
  .schedule-table .badge-learning,
  .schedule-table .badge-review {
    padding: 2px 6px;
    font-size: 10px;
  }
}
