:root {
  --app-bottom-nav-height: 80px;
  --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: var(--app-bottom-nav-height);
}

.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;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: 0;
  padding: 4px;
  border-radius: 12px;
  background: #dde6ff;
  border: 1px solid #a5b4fc;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.16);
}

.header-nav-btn {
  flex-direction: row;
  gap: 0;
  padding: 7px 12px;
  min-width: auto;
  border-radius: 9px;
  color: #4338ca;
  text-shadow: none;
}

.header-nav-btn::before {
  display: none;
}

.header-nav-btn:hover {
  background: #e0e7ff;
  color: #3730a3;
  transform: translateY(-1px);
}

.header-nav-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(55, 48, 163, 0.3);
  text-shadow: none;
}

.header-nav-btn.active .header-nav-label {
  color: #fff;
}

.header-nav-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25px;
  line-height: 1;
}

.desktop-footer {
  display: none;
}

.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;
}

.verse-card.day-overdue {
  background: #FFF5F5;
}

/* === 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);
}

.day-badge.overdue {
  background: linear-gradient(135deg, #EF4444 0%, #F97316 100%);
  box-shadow: 0 2px 4px rgba(239, 68, 68, 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;
}

@media (min-width: 992px) {
  :root {
    --app-bottom-nav-height: 0px;
  }

  body {
    padding-bottom: 0;
  }

  .bottom-nav {
    display: none;
  }

  .header-nav {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }

  .header-content {
    gap: 12px;
    padding: 10px 16px;
  }

  .header-right {
    margin-left: auto;
    position: relative;
    z-index: 3;
  }

  .desktop-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 26px;
    background: #eef2ff;
    border-top: 1px solid #c7d2fe;
    color: #4b5563;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
    z-index: 95;
  }

  #screen-verses.screen.active {
    margin-top: 0;
    --verses-scroll-area-height: calc(100vh - 230px);
  }

  /* Fallback robusto: garante altura e barra visivel no desktop */
  .verse-library-layout {
    height: calc(100vh - 230px);
    min-height: calc(100vh - 230px);
    max-height: calc(100vh - 230px);
  }

  .verse-library-book-list,
  .verse-library-content {
    height: 100%;
    max-height: 100%;
    overflow-y: scroll !important;
    scrollbar-gutter: stable;
  }

  .verse-library-book-list::-webkit-scrollbar,
  .verse-library-content::-webkit-scrollbar {
    width: 10px;
  }

  .verse-library-book-list::-webkit-scrollbar-thumb,
  .verse-library-content::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 999px;
    border: 2px solid #eef2ff;
  }

  .verse-library-book-list::-webkit-scrollbar-track,
  .verse-library-content::-webkit-scrollbar-track {
    background: #eef2ff;
  }
}

@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;
}

/* Reader ocupa a altura total disponível */
#screen-reader.screen.active {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 84px - var(--app-bottom-nav-height));
  overflow: hidden;
  width: 100%;
}

/* 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;
}

/* === ADD HUB (URL #adicionar) === */
#screen-add .add-hub-container {
  max-width: 1180px;
}

#screen-add .add-hub-card {
  padding: 18px;
}

.add-hub-header {
  margin-bottom: 14px;
}

.add-hub-header h2 {
  margin-bottom: 6px;
}

.add-hub-header p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
}

.add-hub-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.9fr);
  gap: 14px;
}

.add-manual-main {
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 14px;
  padding: 16px;
  background:
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.12), transparent 44%),
    linear-gradient(145deg, #f8f9ff 0%, #f2f6ff 100%);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.14);
}

.add-manual-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .6px;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border-radius: 999px;
  padding: 4px 9px;
  margin-bottom: 10px;
}

.add-manual-main h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  color: #202f48;
}

.add-manual-description {
  margin: 0 0 12px;
  color: #4e5e75;
  line-height: 1.45;
  font-size: 14px;
}

.add-manual-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.add-manual-flow span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid #d5dcf3;
  background: #fff;
  color: #364662;
  font-size: 11px;
  font-weight: 700;
}

.add-manual-benefits {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.add-manual-benefits > div {
  padding: 8px 10px 8px 28px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(99, 102, 241, 0.12);
  color: #3d4d65;
  font-size: 13px;
  position: relative;
}

.add-manual-benefits > div::before {
  content: '✓';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.add-manual-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.add-manual-btn {
  width: 100%;
  min-width: 0;
  margin-top: 4px;
}

.add-verse-validation {
  display: none;
  margin: 4px 0 12px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.add-verse-validation.visible {
  display: block;
}

.add-verse-validation.info {
  border-color: #d5dcf3;
  background: #f7f9ff;
  color: #435678;
}

.add-verse-validation.loading {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e40af;
}

.add-verse-validation.success {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.add-verse-validation.error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.add-manual-link {
  border: 1px solid #cfd6e6;
  background: #fff;
  color: #3e4e66;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}

.add-manual-link:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.add-side-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.add-side-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 13px;
  background: #fff;
  padding: 14px;
  cursor: pointer;
  transition: all .2s ease;
}

.add-side-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(99, 102, 241, 0.12);
}

.add-side-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: linear-gradient(135deg, #eff3ff 0%, #e4ebff 100%);
  margin-bottom: 10px;
}

.add-side-card h4 {
  margin: 0 0 6px;
  color: #1f2f46;
  font-size: 16px;
  font-weight: 800;
}

.add-side-card p {
  margin: 0 0 9px;
  color: #5c6a7f;
  font-size: 13px;
  line-height: 1.45;
}

.add-side-link {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.add-side-tip {
  border-radius: 12px;
  border: 1px dashed rgba(99, 102, 241, 0.32);
  background: linear-gradient(145deg, #f7f8ff 0%, #f1f4ff 100%);
  color: #485772;
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.add-side-tip strong {
  color: #2c3e61;
}

@media (max-width: 980px) {
  .add-hub-layout {
    grid-template-columns: 1fr;
  }

  .add-manual-main h3 {
    font-size: 20px;
  }

  .add-manual-btn {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 560px) {
  #screen-add .add-hub-card {
    padding: 12px;
  }

  .add-manual-main {
    padding: 12px;
  }

  .add-manual-actions {
    gap: 8px;
  }

  .add-manual-link {
    width: 100%;
    text-align: center;
  }
}

/* ========== 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;
}

.add-manual-form textarea[readonly] {
  background: #f8fafc;
  color: #1e3a5f;
  border-color: #c7d2e5;
}

.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);
}

.btn-submit:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.btn-submit:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* === 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;
}

/* Modal favoritar verso (leitura) */
#favoriteVerseModal .modal-content {
  max-width: 560px;
}

.favorite-verse-modal-header .meta {
  margin-top: 2px;
}

.favorite-verse-modal-body {
  margin-bottom: 6px;
}

.favorite-verse-modal-reference {
  font-size: 20px;
  font-weight: 800;
  color: #1f3f5e;
  margin-bottom: 10px;
}

.favorite-verse-modal-text {
  margin: 0;
  border: 1px solid #dce8f2;
  border-radius: 12px;
  background: #f8fcff;
  color: #2b4661;
  font-size: 15px;
  line-height: 1.55;
  padding: 12px 14px;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
}

.favorite-verse-modal-actions {
  margin-top: 12px;
}

.favorite-verse-modal-actions .btn-action {
  min-height: 46px;
  flex: 1;
}

.favorite-verse-cancel {
  background: linear-gradient(135deg, #eef2f7 0%, #d9e3ef 100%);
  color: #314b66;
  border: 1px solid #c4d2e0;
}

.favorite-verse-cancel:hover:not(:disabled) {
  background: linear-gradient(135deg, #e3eaf2 0%, #ccd8e7 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(48, 73, 102, 0.14);
}

.favorite-verse-confirm {
  background: linear-gradient(135deg, #76d7a3 0%, #31b87c 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.favorite-verse-confirm:hover:not(:disabled) {
  background: linear-gradient(135deg, #4ecb90 0%, #1fa968 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(24, 147, 90, 0.25);
}

/* ========================================================
   Modal: comparar verso em todas as versões
   ======================================================== */
#verseVersionsModal .modal-content,
.verse-versions-modal-content {
  max-width: 1600px;
  width: 99vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.verse-versions-modal-header {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 10px 48px 10px 16px;
  margin-bottom: 0;
}

.verse-versions-modal-header .modal-header-title {
  display: contents;
}

.verse-versions-modal-header .modal-header-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex-shrink: 0;
}

.verse-versions-modal-header .modal-header-icon svg {
  width: 15px;
  height: 15px;
}

.verse-versions-modal-header h3 {
  font-size: 16px;
  flex-shrink: 0;
  margin: 0;
}

.verse-versions-modal-header .meta {
  font-size: 11px;
  margin: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.verse-versions-close-btn {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #d5e4f0;
  background: #f5f9fd;
  color: #4a6a88;
  cursor: pointer;
  transition: all .15s ease;
  padding: 0;
}

.verse-versions-close-btn:hover {
  background: #e8f0f8;
  border-color: #a8c4d8;
  color: #1e3a55;
}

.verse-versions-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 6px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.verse-versions-item {
  border: 1px solid #dde9f4;
  border-radius: 7px;
  padding: 6px 10px;
  background: #f9fcff;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
  transition: border-color .14s, background .14s, box-shadow .14s;
  cursor: pointer;
  user-select: none;
}

.verse-versions-item:hover {
  border-color: #9dc4e0;
  background: #f0f7ff;
}

.verse-versions-item.selected {
  border-color: #2b8fc4;
  background: #e8f4fb;
  box-shadow: 0 0 0 2px rgba(43,143,196,.25);
}

.verse-versions-item.selected .verse-versions-badge {
  background: linear-gradient(135deg, #1352a0 0%, #1e6fa8 100%);
  box-shadow: 0 2px 6px rgba(19,82,160,.35);
}

.verse-versions-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #1e63a8 0%, #2b8fc4 100%);
  color: #fff;
  border-radius: 5px;
  padding: 2px 7px;
  min-width: 46px;
  justify-content: center;
}

.verse-versions-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #1e3550;
}

.verse-versions-loading,
.verse-versions-empty {
  text-align: center;
  padding: 30px 0;
  color: #7a9bb8;
  font-size: 14px;
}

.verse-versions-modal-actions {
  margin-top: 0;
  padding: 6px 16px 8px;
  border-top: 1px solid #dce8f4;
  display: flex;
  gap: 10px;
}

.verse-versions-cancel {
  background: linear-gradient(135deg, #eef2f7 0%, #d9e3ef 100%);
  color: #314b66;
  border: 1px solid #c4d2e0;
  flex: 1;
  min-height: 32px;
  padding: 0 12px;
}

.verse-versions-cancel:hover:not(:disabled) {
  background: linear-gradient(135deg, #e3eaf2 0%, #ccd8e7 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(48, 73, 102, 0.14);
}

.verse-versions-confirm {
  background: linear-gradient(135deg, #76d7a3 0%, #31b87c 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  flex: 1;
  min-height: 32px;
  padding: 0 12px;
}

.verse-versions-confirm:hover:not(:disabled) {
  background: linear-gradient(135deg, #4ecb90 0%, #1fa968 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(24, 147, 90, 0.25);
}

#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);
}

/* ============================================
   LEITURA BÍBLICA
============================================ */
#screen-reader .container {
  max-width: none;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  align-self: stretch;
  margin: 0;
  padding: 0 8px 10px;
}

@media (min-width: 1200px) {
  #screen-reader .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

.reader-atlas-card {
  background: linear-gradient(180deg, rgba(102, 126, 234, 0.08) 0%, rgba(248, 250, 255, 0.95) 28%, #f8fafc 100%);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 16px;
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

.reader-atlas-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 10px;
  flex: 1;
  min-height: 0;
  align-items: stretch;
  width: 100%;
  overflow: hidden;
}

/* ── Sidebar ── */
.reader-atlas-sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  border: 1px solid rgba(102, 126, 234, 0.22);
  border-radius: 14px;
  padding: 8px 6px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 6px;
  overflow: hidden;
  min-height: 0;
  width: 260px;
  min-width: 260px;
  max-width: 260px;
}

.reader-sidebar-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 2px;
  color: #4c1d95;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.reader-sidebar-header svg {
  color: #667eea;
  flex-shrink: 0;
}

.reader-atlas-testament-switch {
  display: flex;
  gap: 5px;
  background: rgba(102, 126, 234, 0.12);
  border-radius: 9px;
  padding: 3px;
}

.reader-filter-btn {
  flex: 1;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #5b5f84;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 4px;
  cursor: pointer;
  transition: all .15s ease;
  letter-spacing: .02em;
}

.reader-filter-btn:hover {
  color: #4338ca;
}

.reader-filter-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.28);
}

.reader-book-grid {
  background: transparent;
  border: none;
  padding: 0 0 4px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-content: start;
  min-height: 0;
}

/* Testament separator */
.reader-testament-sep {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 3px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.reader-testament-sep::before,
.reader-testament-sep::after {
  content: '';
  flex: 1;
  height: 1px;
}

.reader-testament-sep--at {
  color: #b45309;
}

.reader-testament-sep--at span {
  background: #fef3c7;
  color: #92400e;
  border-radius: 4px;
  padding: 1px 6px;
  border: 1px solid #fde68a;
}

.reader-testament-sep--at::before,
.reader-testament-sep--at::after {
  background: #fde68a;
}

.reader-testament-sep--nt {
  color: #1d4ed8;
}

.reader-testament-sep--nt span {
  background: #eff6ff;
  color: #1e40af;
  border-radius: 4px;
  padding: 1px 6px;
  border: 1px solid #bfdbfe;
}

.reader-testament-sep--nt::before,
.reader-testament-sep--nt::after {
  background: #bfdbfe;
}

/* Group header */
.reader-book-group-header {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 4px 2px;
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.reader-book-group-header svg {
  flex-shrink: 0;
  opacity: .7;
}

.reader-book-group-header span {
  flex: 1;
}

.reader-book-group-header em {
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  background: #f1f5f9;
  color: #94a3b8;
  border-radius: 999px;
  padding: 1px 5px;
}

/* Book chips row */
.reader-book-chips-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 0 0 3px;
}

.reader-book-chip {
  border: 1px solid #d7def5;
  border-radius: 6px;
  background: #f7f9ff;
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  padding: 5px 3px;
  cursor: pointer;
  transition: all .12s ease;
  white-space: normal;
  word-break: break-word;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  min-height: 30px;
}

.reader-book-chip:hover {
  background: #eef2ff;
  color: #4338ca;
  border-color: #a5b4fc;
}

.reader-book-chip.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: #ffffff;
  font-weight: 800;
}

/* ── Main panel ── */
.reader-atlas-main {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 14px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.08);
}

/* ── Toolbar ── */
.reader-atlas-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(102, 126, 234, 0.16);
  background: linear-gradient(180deg, #f8f9ff 0%, #f5f7ff 100%);
}

.reader-toolbar-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.reader-toolbar-group-session {
  min-width: 136px;
}

.reader-toolbar-group label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  color: #5b5f84;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.reader-toolbar-group label svg {
  color: #667eea;
}

.reader-toolbar-group select {
  border: 1px solid #ced7f4;
  border-radius: 8px;
  background: #fff;
  color: #1e3550;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  min-width: 150px;
  outline: none;
  cursor: pointer;
  transition: border-color .14s, box-shadow .14s;
}

.reader-toolbar-group select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.18);
}

/* ── Reference + meta ── */
.reader-reference {
  margin: 0;
  padding: 8px 14px 6px;
  font-size: 15px;
  font-weight: 700;
  color: #312e81;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reader-session-save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #d2d9f7;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #eef2ff 100%);
  color: #3f3f8f;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  transition: border-color .14s, background .14s, box-shadow .14s;
  white-space: nowrap;
  width: 100%;
  min-height: 34px;
}

.reader-session-save-btn:hover {
  border-color: #9eaef0;
  background: linear-gradient(180deg, #f8f9ff 0%, #e6ecff 100%);
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.2);
}

.reader-session-save-btn:disabled {
  cursor: wait;
  opacity: .72;
}

.reader-verse-item.session-focus {
  background: #e7f1ff;
  border-color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}

.reader-meta {
  display: none;
}

/* ── Verse list ── */
.reader-verses {
  padding: 4px 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  min-height: 0;
}

.reader-verse-item {
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  padding: 5px 8px;
  cursor: pointer;
  transition: background .13s ease, border-color .13s ease;
}

.reader-verse-item:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.reader-verse-item.highlight {
  background: #eef2ff;
  border-color: #a5b4fc;
}

.reader-verse-item.favorited {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.reader-verse-item.favorited .reader-verse-number {
  background: #dcfce7;
  color: #15803d;
}

.reader-verse-item.is-favoriting {
  opacity: .6;
  pointer-events: none;
}

.reader-verse-line {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.reader-verse-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 1px 5px;
  border-radius: 5px;
  background: #e0e7ff;
  color: #4338ca;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  flex-shrink: 0;
}

.reader-verse-text {
  font-size: 14.5px;
  line-height: 1.4;
  color: #1e3550;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.reader-verse-text.strong-mode {
  color: #172b3a;
  line-height: 1.52;
}

.reader-verse-text .reader-strong-plain {
  display: inline;
  background: none;
  border: none;
  color: inherit;
  border-radius: 0;
  padding: 0;
  font-weight: inherit;
  margin: 0;
}

.reader-verse-text .reader-strong-original {
  display: inline-block;
  background: #e9f7ee;
  border: 1px solid #9ed8b4;
  color: #0f5132;
  border-radius: 7px;
  padding: 0 5px;
  font-weight: 700;
  margin-right: 2px;
  margin-bottom: 2px;
}

.reader-verse-text .reader-strong-code {
  display: inline-block;
  background: linear-gradient(180deg, #f3f8ff 0%, #e8f1ff 100%);
  border: 1px solid #c9dcfb;
  color: #1d4ed8;
  border-radius: 6px;
  padding: 0 5px;
  font-size: 11px;
  font-family: "IBM Plex Mono", Consolas, monospace;
  letter-spacing: 0.02em;
  font-weight: 700;
  margin-right: 2px;
  margin-bottom: 2px;
  cursor: pointer;
}

.reader-verse-text .reader-strong-code:hover {
  background: linear-gradient(180deg, #ebf3ff 0%, #deebff 100%);
  border-color: #b4cff7;
}

.reader-atlas-empty {
  border: 1px dashed #d5e0ed;
  border-radius: 8px;
  background: transparent;
  color: #8ea3bb;
  padding: 16px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.reader-atlas-empty.loading {
  border-style: solid;
  border-color: #c7d2fe;
  color: #4338ca;
}

/* ── Chapter nav ── */
.reader-chapter-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 12px;
  border-top: 1px solid rgba(102, 126, 234, 0.16);
  background: linear-gradient(180deg, #f8f9ff 0%, #f4f6ff 100%);
  border-radius: 0 0 12px 12px;
}

.reader-chapter-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 8px;
  border: 1px solid #ced7f4;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .14s ease;
  user-select: none;
}

.reader-chapter-nav-btn:hover:not(:disabled) {
  border-color: #667eea;
  background: #eef2ff;
  color: #4338ca;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.reader-chapter-nav-btn:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.reader-chapter-nav-label {
  font-size: 12px;
  font-weight: 700;
  color: #4f46e5;
  flex: 1;
  text-align: center;
}

/* ── Scrollbars ── */
.reader-book-grid,
.reader-verses {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.reader-book-grid::-webkit-scrollbar,
.reader-verses::-webkit-scrollbar {
  width: 5px;
}

.reader-book-grid::-webkit-scrollbar-track,
.reader-verses::-webkit-scrollbar-track {
  background: transparent;
}

.reader-book-grid::-webkit-scrollbar-thumb,
.reader-verses::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.reader-book-grid::-webkit-scrollbar-thumb:hover,
.reader-verses::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

@media (max-width: 1024px) {
  .reader-atlas-layout {
    grid-template-columns: 1fr;
  }

  .reader-atlas-sidebar {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: none;
    grid-template-rows: auto auto auto;
  }

  .reader-book-grid {
    max-height: 200px;
  }

  .reader-atlas-main {
    min-height: 0;
    height: auto;
  }
}

@media (max-width: 768px) {
  /* Screen fills viewport correctly on mobile */
  #screen-reader.screen.active {
    height: calc(100vh - 140px);
  }

  /* Card: less padding */
  .reader-atlas-card {
    padding: 4px;
    gap: 4px;
    border-radius: 10px;
  }

  #screen-reader .container {
    padding-left: 4px;
    padding-right: 4px;
    padding-bottom: 8px;
  }

  /* Sidebar: compact, fixed small height */
  .reader-atlas-sidebar {
    padding: 6px;
    gap: 4px;
    border-radius: 8px;
  }

  /* Hide sidebar title label */
  .reader-sidebar-header {
    display: none;
  }

  /* AT/NT switch: more compact */
  .reader-atlas-testament-switch {
    padding: 2px;
    gap: 3px;
    border-radius: 7px;
  }

  .reader-filter-btn {
    font-size: 10.5px;
    padding: 4px 3px;
  }

  /* Book grid: shorter, horizontal feel */
  .reader-book-grid {
    max-height: 130px;
  }

  /* 3 columns on mobile for more books visible */
  .reader-book-chips-row {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2px;
  }

  .reader-book-chip {
    font-size: 11px;
    padding: 4px 2px;
    min-height: 26px;
    border-radius: 5px;
  }

  /* Testament separator: smaller margin */
  .reader-testament-sep {
    margin: 4px 0 2px;
    font-size: 9px;
  }

  /* Toolbar: all 3 selects on one row */
  .reader-atlas-toolbar {
    flex-direction: row;
    align-items: flex-end;
    flex-wrap: nowrap;
    gap: 5px;
    padding: 6px 8px;
  }

  .reader-toolbar-group {
    flex: 1;
    min-width: 0;
    gap: 2px;
  }

  .reader-toolbar-group-session {
    flex: 0.9;
    min-width: 96px;
  }

  .reader-toolbar-group label {
    font-size: 9px;
    gap: 2px;
    letter-spacing: .02em;
  }

  .reader-toolbar-group label svg {
    display: none;
  }

  .reader-toolbar-group select {
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 4px;
    min-width: 0;
    width: 100%;
    border-radius: 6px;
  }

  /* Reference: smaller */
  .reader-reference {
    font-size: 13px;
    padding: 6px 10px 4px;
  }

  .reader-session-save-btn {
    padding: 5px 8px;
    font-size: 10px;
    min-height: 30px;
  }

  /* Verses: tighter */
  .reader-verses {
    padding: 2px 5px 3px;
    gap: 2px;
  }

  .reader-verse-item {
    padding: 3px 6px;
  }

  .reader-verse-text {
    font-size: 13px;
    line-height: 1.38;
  }

  .reader-verse-text .reader-strong-original {
    padding: 0 4px;
    border-radius: 6px;
  }

  .reader-verse-text .reader-strong-plain {
    padding: 0;
    border-radius: 0;
  }

  .reader-verse-text .reader-strong-code {
    font-size: 10px;
    padding: 0 4px;
    border-radius: 5px;
  }

  .reader-verse-number {
    font-size: 9px;
    min-width: 18px;
    padding: 1px 3px;
  }

  /* Chapter nav: compact */
  .reader-chapter-nav {
    padding: 6px 10px;
  }

  .reader-chapter-nav-btn {
    font-size: 12px;
    padding: 4px 8px;
  }

  .reader-chapter-nav-label {
    font-size: 11px;
  }

  /* Verse versions modal: compact on mobile */
  .verse-versions-modal-body {
    padding: 3px 8px 4px;
    gap: 3px;
  }

  .verse-versions-item {
    padding: 4px 8px;
    gap: 6px;
    border-radius: 6px;
  }

  .verse-versions-text {
    font-size: 12.5px;
    line-height: 1.38;
  }

  .verse-versions-badge {
    font-size: 9px;
    padding: 1px 5px;
    min-width: 36px;
  }

  .strong-code-meta-grid {
    grid-template-columns: 1fr;
  }

  .strong-code-modal-body {
    padding: 10px;
  }
}

/* === 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) {
  .favorite-verse-modal-reference {
    font-size: 18px;
  }

  .favorite-verse-modal-text {
    font-size: 14px;
    line-height: 1.5;
    max-height: 180px;
  }

  .favorite-verse-modal-actions .btn-action {
    min-height: 44px;
  }

  .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;
  }
}

/* ============================================
   VERSOS - PROPOSTA 1 (BIBLIOTECA EDITORIAL)
============================================ */
#screen-verses.screen.active {
  display: flex;
  flex-direction: column;
  margin-top: -10px;
  height: calc(100vh - 84px - var(--app-bottom-nav-height));
  overflow: hidden;
  --verses-scroll-area-height: calc(100vh - 330px);
}

#screen-verses .container {
  max-width: none;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

@media (min-width: 1200px) {
  #screen-verses .container {
    padding-left: 6px;
    padding-right: 6px;
  }
}

#screen-verses .list-card {
  background:
    radial-gradient(circle at top right, rgba(102, 126, 234, 0.2), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f7f8ff 100%);
  border: 1px solid rgba(102, 126, 234, 0.22);
  box-shadow: 0 16px 34px rgba(79, 70, 229, 0.12);
  border-radius: 16px;
  margin: 0;
  padding: 16px;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#screen-verses .list-card > h2 {
  margin-bottom: 10px;
  font-size: 17px;
}

.verse-library-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  width: 100%;
  min-height: 0;
}

.verse-library-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 520px);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(102, 126, 234, 0.2);
  background: linear-gradient(145deg, #f8f9ff 0%, #eef2ff 100%);
}

.verse-library-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.verse-library-heading-main {
  min-width: 170px;
  max-width: 280px;
}

.verse-library-title {
  font-size: 17px;
  font-weight: 800;
  color: #312e81;
  margin-bottom: 4px;
}

.verse-library-subtitle {
  margin: 0;
  font-size: 12px;
  color: #57647a;
}

.verse-library-controls {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.verse-library-search {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ced7f4;
  border-radius: 11px;
  background: #fff;
  color: #243447;
  font-size: 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.verse-library-search:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.verse-library-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.verse-library-filter {
  border: 1px solid #d0d8f0;
  background: #fff;
  color: #43536a;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all .16s ease;
}

.verse-library-filter:hover {
  transform: translateY(-1px);
  border-color: #667eea;
}

.verse-library-filter.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.28);
}

.verse-library-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.verse-library-totals-inline {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.verse-library-total-card {
  background: #fff;
  border: 1px solid #dbe3f4;
  border-radius: 8px;
  padding: 5px 7px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.verse-library-totals-inline .verse-library-total-card {
  min-width: 72px;
  flex: 1;
}

.verse-library-total-card span {
  font-size: 9px;
  color: #65758a;
  text-transform: uppercase;
  letter-spacing: .35px;
  font-weight: 700;
}

.verse-library-total-card strong {
  font-size: 16px;
  color: #1f2a44;
  line-height: 1;
}

.verse-library-total-card.highlight {
  border-color: rgba(102, 126, 234, 0.28);
  background: linear-gradient(135deg, #edf1ff 0%, #e4eaff 100%);
}

.verse-library-layout {
  --library-column-height: 100%;
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.verse-library-books {
  border: 1px solid #d8e1f4;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.09);
  display: flex;
  flex-direction: column;
  flex: 0 0 230px;
  width: 230px;
  min-height: 0;
  overflow: hidden;
}

.verse-library-books h4 {
  margin: 0 0 8px;
  font-size: 11px;
  color: #66758a;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.verse-library-book-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: none;
  flex: 1;
  min-height: 0;
  overflow-y: auto !important;
  overflow-x: hidden;
  padding-right: 3px;
}

.verse-library-book-item {
  width: 100%;
  border: 1px solid #d8e0f2;
  border-radius: 9px;
  background: #fff;
  color: #334255;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 9px;
  cursor: pointer;
  transition: all .16s ease;
  text-align: left;
}

.verse-library-book-item span {
  font-size: 12px;
  font-weight: 700;
}

.verse-library-book-item strong {
  font-size: 10px;
  color: #5e6c81;
  background: #f2f4f8;
  border-radius: 999px;
  padding: 2px 7px;
}

.verse-library-book-item:hover {
  border-color: #8ea0f0;
  background: #eef2ff;
  transform: translateX(1px);
}

.verse-library-book-item.active {
  border-color: #667eea;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: inset 0 0 0 1px rgba(102, 126, 234, 0.28);
  color: #fff;
}

.verse-library-book-item.active strong {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.verse-library-content {
  border: 1px solid #d8e1f4;
  background: #fff;
  border-radius: 12px;
  padding: 9px;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.08);
  flex: 1 1 auto;
  width: 0;
  max-height: none;
  min-height: 0;
  overflow-y: auto !important;
  overflow-x: hidden;
  padding-right: 6px;
  overscroll-behavior: contain;
}

.verse-library-book-section + .verse-library-book-section {
  margin-top: 10px;
}

.verse-library-book-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #312e81;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 8px;
}

.verse-library-book-title span {
  font-size: 10px;
  color: #5a677a;
  background: #fff;
  border-radius: 999px;
  padding: 2px 6px;
}

.verse-library-cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.verse-library-card {
  border: 1px solid #d8e1f4;
  border-radius: 10px;
  padding: 8px 10px;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  box-shadow: 0 5px 12px rgba(79, 70, 229, 0.08);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.verse-library-card:hover {
  border-color: #a5b4fc;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.12);
}

.verse-library-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.verse-library-head-left {
  min-width: 0;
}

.verse-library-ref-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.verse-library-head-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.verse-library-ref {
  font-size: 14px;
  font-weight: 800;
  color: #312e81;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.verse-library-version-inline {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  color: #5f6b82;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  padding: 2px 7px;
  line-height: 1.1;
}

.verse-library-pill {
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 7px;
  text-transform: uppercase;
  letter-spacing: .35px;
  line-height: 1.1;
  white-space: nowrap;
}

.verse-library-pill.learning {
  background: #fff2d6;
  color: #885f10;
}

.verse-library-pill.review {
  background: #dcfce7;
  color: #0f5132;
}

.verse-library-pill.paused,
.verse-library-pill.mastered {
  background: #eceff4;
  color: #4e5c70;
}

.verse-library-meta {
  font-size: 11px;
  color: #6a788d;
  margin-bottom: 5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.verse-library-meta-status {
  font-weight: 700;
  color: #5a6678;
  text-transform: uppercase;
  letter-spacing: .25px;
}

.verse-library-meta-sep {
  color: #8f9bae;
}

.verse-library-text {
  margin: 2px 0 0;
  color: #1e3550;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.58;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #f7f9ff 0%, #eef2ff 100%);
  border: 1px solid #c7d2fe;
  border-left: 4px solid #667eea;
  border-radius: 9px;
  padding: 8px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.verse-library-actions {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.verse-library-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
  line-height: 1.1;
}

.verse-library-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.verse-library-btn.warning {
  background: #eef2ff;
  color: #3730a3;
  border-color: #c7d2fe;
}

.verse-library-btn.success {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: transparent;
}

.verse-library-btn.ghost {
  background: #fff;
  color: #3e4f63;
  border-color: #d5dde8;
}

.verse-library-empty {
  text-align: center;
  border: 1px dashed #c7d2fe;
  border-radius: 14px;
  background: #f8f9ff;
  padding: 34px 16px;
}

.verse-library-empty.compact {
  padding: 24px 14px;
}

.verse-library-empty-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.verse-library-empty-title {
  font-size: 18px;
  font-weight: 800;
  color: #2a3950;
  margin-bottom: 7px;
}

.verse-library-empty-text {
  font-size: 14px;
  color: #647389;
  margin-bottom: 14px;
}

@media (max-width: 1024px) {
  .verse-library-toolbar {
    grid-template-columns: 1fr;
  }

  .verse-library-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .verse-library-heading-main {
    max-width: 100%;
  }

  .verse-library-totals-inline {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }

  .verse-library-totals-inline .verse-library-total-card {
    min-width: 92px;
    flex: 1 1 120px;
  }

  .verse-library-controls {
    min-width: 0;
    width: 100%;
  }

  .verse-library-layout {
    flex-direction: column;
  }

  .verse-library-books {
    flex: 0 0 auto;
    width: 100%;
  }

  .verse-library-book-list {
    max-height: none;
    overflow-y: auto !important;
  }

  .verse-library-content {
    max-height: none;
    overflow-y: auto !important;
    overflow-x: hidden;
    padding-right: 8px;
  }
}

@media (max-width: 760px) {
  #screen-verses.screen.active {
    margin-top: -8px;
    height: calc(100vh - 140px);
    --verses-scroll-area-height: calc(100vh - 300px);
  }

  #screen-verses .container {
    padding-left: 2px;
    padding-right: 2px;
  }

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

  .verse-library-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .verse-library-title {
    font-size: 15px;
  }

  .verse-library-subtitle {
    font-size: 11px;
  }

  .verse-library-totals-inline {
    gap: 5px;
  }

  .verse-library-total-card {
    padding: 4px 6px;
  }

  .verse-library-total-card strong {
    font-size: 14px;
  }

  .verse-library-card-head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }

  .verse-library-head-right {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 5px;
  }

  .verse-library-ref {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .verse-library-pill {
    white-space: nowrap;
  }

  .verse-library-btn {
    white-space: nowrap;
    padding: 4px 8px;
  }

  .verse-library-text {
    font-size: 14px;
    line-height: 1.52;
    padding: 7px 9px;
  }
}

@media (max-width: 480px) {
  .verse-library-totals {
    grid-template-columns: 1fr;
  }

  .verse-library-search {
    font-size: 13px;
  }

  .verse-library-filter {
    font-size: 11px;
    padding: 5px 9px;
  }

  .verse-library-ref {
    font-size: 14px;
  }

  .verse-library-head-right .verse-library-btn {
    padding: 4px 7px;
  }
}

/* Fallback final (desktop): força scroll nas duas colunas da tela Versos */
@media (min-width: 992px) {
  #screen-verses .verse-library-layout {
    height: calc(100vh - 230px) !important;
    min-height: calc(100vh - 230px) !important;
    max-height: calc(100vh - 230px) !important;
  }

  #screen-verses .verse-library-book-list,
  #screen-verses .verse-library-content {
    height: calc(100vh - 250px) !important;
    min-height: calc(100vh - 250px) !important;
    max-height: calc(100vh - 250px) !important;
    overflow-y: scroll !important;
    overflow-x: hidden;
    scrollbar-gutter: stable;
  }

  #screen-verses .verse-library-book-list::-webkit-scrollbar,
  #screen-verses .verse-library-content::-webkit-scrollbar {
    width: 10px;
  }

  #screen-verses .verse-library-book-list::-webkit-scrollbar-thumb,
  #screen-verses .verse-library-content::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 999px;
    border: 2px solid #eef2ff;
  }

  #screen-verses .verse-library-book-list::-webkit-scrollbar-track,
  #screen-verses .verse-library-content::-webkit-scrollbar-track {
    background: #eef2ff;
  }
}

/* ========== FILA GERAL ========== */
.gq-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--gray-50, #f9fafb);
  border: 1px solid var(--gray-200, #e5e7eb);
  margin-bottom: 6px;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.gq-card:hover {
  background: var(--gray-100, #f3f4f6);
  border-color: var(--gray-300, #d1d5db);
}

.gq-ref {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800, #1f2937);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gq-date {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.gq-overdue {
  background: #fef2f2;
  color: #dc2626;
}

.gq-today {
  background: #fffbeb;
  color: #d97706;
}

.gq-future {
  background: #f0f9ff;
  color: #0284c7;
}

/* ═══════════════════════════════════════════════════════
   CROSS-REFERENCES — Accordion inline (Proposta 3)
   ═══════════════════════════════════════════════════════ */

.reader-verse-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px 5px 36px;
}

.reader-xref-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: linear-gradient(180deg, #fffdfa 0%, #fff8ee 100%);
  border: 1px solid #d9ccb2;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  color: #7c5416;
  cursor: pointer;
  transition: background .16s, border-color .16s, box-shadow .16s;
  font-family: inherit;
  line-height: 1.4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 1px rgba(124, 84, 22, 0.08);
}

.reader-xref-toggle:hover {
  background: linear-gradient(180deg, #fff7e5 0%, #ffefd2 100%);
  border-color: #c9922d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 1px 2px rgba(124, 84, 22, 0.14);
}

.reader-xref-toggle.open {
  background: linear-gradient(180deg, #fff4db 0%, #ffecc7 100%);
  border-color: #c9922d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 1px 2px rgba(124, 84, 22, 0.14);
}

.reader-versions-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: linear-gradient(180deg, #f9fcff 0%, #eef5ff 100%);
  border: 1px solid #bdcbe0;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  color: #2c4965;
  cursor: pointer;
  transition: background .16s, border-color .16s, box-shadow .16s;
  font-family: inherit;
  line-height: 1.4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 1px rgba(44, 73, 101, 0.08);
}

.reader-versions-toggle:hover {
  background: linear-gradient(180deg, #f1f7ff 0%, #e3efff 100%);
  border-color: #8fb0d8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 1px 2px rgba(44, 73, 101, 0.14);
}

.reader-xref-toggle-chevron {
  transition: transform .2s;
}

.reader-xref-toggle.open .reader-xref-toggle-chevron {
  transform: rotate(180deg);
}

.reader-xref-accordion {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s cubic-bezier(.4, 0, .2, 1);
  padding: 0 8px;
}

.reader-xref-accordion.open {
  max-height: 800px;
}

.reader-xref-inner {
  background: linear-gradient(135deg, #f6fdfe 0%, #fffaf4 100%);
  border: 1px solid #bde5f0;
  border-radius: 10px;
  padding: 10px 12px 9px;
  margin-bottom: 8px;
}

.reader-xref-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.reader-xref-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #0b5d6c;
}

.reader-xref-count {
  background: #0b5d6c;
  color: #fff;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 800;
}

.reader-xref-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #b0ccd6 transparent;
}

.reader-xref-grid::-webkit-scrollbar {
  width: 5px;
}

.reader-xref-grid::-webkit-scrollbar-track {
  background: transparent;
}

/* ═══════════════════════════════════════════════════════
   STRONG CODE MODAL
   ═══════════════════════════════════════════════════════ */

.strong-code-modal-content {
  max-width: 1180px;
}

.strong-code-modal-header {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 8px 46px 8px 12px;
  margin-bottom: 0;
  background: linear-gradient(135deg, #f7fbff 0%, #fef8ea 100%);
  border-bottom: 1px solid #e6eef4;
}

.strong-code-modal-header .modal-header-title {
  display: contents;
}

.strong-code-modal-header .modal-header-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex-shrink: 0;
}

.strong-code-modal-header .modal-header-icon svg {
  width: 15px;
  height: 15px;
}

.strong-code-modal-header h3 {
  font-size: 16px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.strong-code-header-inline-meta {
  font-size: 11px;
  font-weight: 600;
  color: #5b7182;
  background: #ffffff;
  border: 1px solid #d9e4ec;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 460px;
}

.strong-code-modal-body {
  padding: 12px 14px 8px;
  max-height: calc(88vh - 145px);
  overflow-y: auto;
  overflow-x: hidden;
}

.strong-code-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.strong-code-meta-item {
  border: 1px solid #d4e1ea;
  border-radius: 10px;
  background: #f8fbfd;
  padding: 8px;
}

.strong-code-meta-item strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #4d6677;
  margin-bottom: 3px;
}

.strong-code-meta-item span {
  font-size: 14px;
  font-weight: 700;
  color: #1f3c50;
}

.strong-code-meta-grid .strong-code-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.strong-code-meta-grid .strong-code-meta-item strong {
  display: inline;
  margin: 0;
  white-space: nowrap;
}

.strong-code-meta-grid .strong-code-meta-item span {
  display: inline;
  white-space: nowrap;
}

.strong-code-dictionary-card {
  border: 1px solid #cfdce7;
  border-radius: 12px;
  background: linear-gradient(180deg, #fefefe 0%, #f8fcff 100%);
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.strong-code-dictionary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.strong-code-dictionary-head strong {
  color: #1f4259;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.strong-code-dictionary-head span {
  border: 1px solid #a9c3d8;
  background: #eaf3fb;
  color: #1e4662;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
}

.strong-code-dictionary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.strong-code-dictionary-grid .strong-code-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.strong-code-dictionary-grid .strong-code-meta-item strong {
  display: inline;
  margin: 0;
  white-space: nowrap;
}

.strong-code-dictionary-grid .strong-code-meta-item span {
  display: inline;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.strong-code-dictionary-definition {
  border: 1px solid #cedce7;
  border-radius: 10px;
  background: #ffffff;
  color: #1d3344;
  font-size: 14px;
  line-height: 1.58;
  font-family: "Noto Serif", "Merriweather", Georgia, serif;
  font-weight: 500;
  padding: 12px;
  max-height: none;
  overflow: visible;
}

.strong-code-dictionary-definition.empty {
  color: #5f7a8c;
  font-style: italic;
}

.strong-code-dict-summary {
  margin: 0 0 10px;
  font-size: 14px;
  color: #17354a;
  font-weight: 700;
}

.strong-code-dict-paragraph {
  margin: 0 0 10px;
  color: #223c4f;
}

.strong-code-dict-list {
  margin: 0 0 6px 20px;
  padding: 0;
}

.strong-code-dict-list li {
  margin-bottom: 9px;
  color: #254257;
}

.strong-code-modal-body::-webkit-scrollbar {
  width: 8px;
}

.strong-code-modal-body::-webkit-scrollbar-thumb {
  background: #b8cbd9;
  border-radius: 999px;
}

.strong-code-dict-empty-text {
  margin: 0;
  color: #5f7a8c;
  font-style: italic;
}

.strong-code-modal-list {
  max-height: 360px;
  overflow: auto;
  border: 1px solid #d9e4ec;
  border-radius: 10px;
  background: #fff;
}

.strong-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid #edf2f6;
  font-size: 13px;
}

.strong-code-row:last-child {
  border-bottom: none;
}

.strong-code-row strong {
  color: #0e5a3a;
  font-size: 13px;
}

.strong-code-book-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.strong-code-book-name {
  font-weight: 700;
  color: #16394c;
}

.strong-code-book-load {
  border: 1px solid #bfd2e7;
  background: linear-gradient(180deg, #f8fbff 0%, #ebf3ff 100%);
  color: #24507b;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.35;
  transition: background .16s, border-color .16s;
}

.strong-code-book-load:hover {
  background: linear-gradient(180deg, #eff6ff 0%, #e1edff 100%);
  border-color: #9fbde0;
}

.strong-code-book-verses {
  margin-top: 12px;
  border: 1px solid #d9e4ec;
  border-radius: 10px;
  background: #fcfeff;
}

.strong-code-book-verses-header {
  padding: 9px 10px;
  border-bottom: 1px solid #e8f0f5;
  background: linear-gradient(180deg, #f8fcff 0%, #f2f8fe 100%);
}

.strong-code-book-verses-header strong {
  color: #264961;
  font-size: 12px;
  letter-spacing: .01em;
}

.strong-code-book-verses-list {
  max-height: 280px;
  overflow: auto;
}

.strong-code-verse-row {
  padding: 8px 10px;
  border-bottom: 1px solid #edf2f6;
}

.strong-code-verse-row:last-child {
  border-bottom: none;
}

.strong-code-verse-ref {
  font-size: 12px;
  font-weight: 700;
  color: #2a5776;
  margin-bottom: 2px;
}

.strong-code-verse-text {
  font-size: 13px;
  color: #264055;
  line-height: 1.5;
  display: block;
}

/* Tokens Strong dentro da listagem do modal */
.strong-code-verse-text .reader-strong-plain {
  color: inherit;
  font-weight: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  display: inline;
}

.strong-code-verse-text .reader-strong-original {
  display: inline-block;
  font-style: italic;
  font-weight: 800;
  color: #0f5132;
  background: linear-gradient(180deg, #ecfdf3 0%, #dcf7e7 100%);
  border: 1px solid #98ddb8;
  border-radius: 8px;
  padding: 0 6px;
  margin: 0 2px 2px 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 3px rgba(15, 81, 50, 0.12);
}

.strong-code-verse-text .reader-strong-original.strong-original-match {
  background: linear-gradient(180deg, #ddf8e9 0%, #c9f2dc 100%);
  border-color: #63c58d;
  color: #0b4a2d;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 2px 6px rgba(11, 74, 45, 0.18);
}

.strong-code-verse-text .reader-strong-code {
  display: inline-block;
  color: #1d4ed8;
  background: linear-gradient(180deg, #f3f8ff 0%, #e8f1ff 100%);
  border: 1px solid #c9dcfb;
  border-radius: 7px;
  padding: 0 6px;
  margin: 0 2px 2px 0;
  font-size: 11px;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-weight: 800;
  letter-spacing: .02em;
}

.strong-code-verse-text .reader-strong-code:hover {
  background: linear-gradient(180deg, #ebf3ff 0%, #deebff 100%);
  border-color: #b4cff7;
}

.strong-code-verse-text .reader-strong-code.strong-code-match {
  background: linear-gradient(180deg, #e5f0ff 0%, #d7e8ff 100%);
  border-color: #8eb7f8;
  color: #1e40af;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 1px 4px rgba(30, 64, 175, 0.14);
}

.strong-code-no-context {
  color: #8aa0b1;
  font-size: 12px;
  font-style: italic;
}

@media (max-width: 760px) {
  .strong-code-dictionary-grid {
    grid-template-columns: 1fr;
  }
}

.strong-code-loading,
.strong-code-empty {
  padding: 16px;
  text-align: center;
  color: #678194;
  font-size: 13px;
  font-weight: 600;
}

.reader-xref-grid::-webkit-scrollbar-thumb {
  background: #b0ccd6;
  border-radius: 999px;
}

.reader-xref-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fff;
  border: 1px solid #dde8ed;
  border-radius: 7px;
  padding: 7px 9px;
  cursor: default;
  transition: border-color .14s, box-shadow .14s;
}

.reader-xref-row:hover {
  border-color: #8dcfdf;
  box-shadow: 0 2px 7px rgba(11, 93, 108, .09);
}

.reader-xref-pill {
  flex-shrink: 0;
  background: #0b5d6c;
  color: #fff;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.5;
}

.reader-xref-body {
  flex: 1;
  min-width: 0;
}

.reader-xref-body-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: #314861;
  overflow-wrap: break-word;
}

.reader-xref-body-text em {
  color: #8fa3b5;
  font-size: 11.5px;
}

.reader-xref-votes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  font-size: 10px;
  color: #8fa3b5;
  vertical-align: middle;
  white-space: nowrap;
}

.reader-xref-vote-bar {
  display: inline-flex;
  height: 3px;
  width: 36px;
  border-radius: 999px;
  background: #e0eaf2;
  overflow: hidden;
}

.reader-xref-vote-fill {
  height: 100%;
  background: #bf8a43;
  border-radius: 999px;
}
