/* ==========================================================================
   SISTEMA DE DESIGN: REINO INTERIOR & REPROGRAMAÇÃO DA REALIDADE V3
   Paleta: Ouro Nobre (#C6A15B / #E5C378), Azul Abissal (#0D172B / #1B2F5C),
   Preto Cósmico (#070B12), Superfícies Glassmorphism e Tipografia Cinzel/Jost
   ========================================================================== */

:root {
  --primary-gold: #C6A15B;
  --gold-glow: #F2D082;
  --gold-dark: #8C6A29;
  
  --bg-cosmic: #070A11;
  --card-bg: rgba(16, 25, 44, 0.75);
  --card-border: rgba(198, 161, 91, 0.25);
  --card-hover: rgba(26, 38, 66, 0.9);
  
  --text-primary: #F8F9FA;
  --text-secondary: #C8D1E0;
  --text-muted: #8E9AAB;
  
  --royal-blue: #1B2F5C;
  --royal-blue-glow: #2A488B;
  
  --success-emerald: #10B981;
  --amber-warning: #F59E0B;
  --purple-regal: #8B5CF6;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-gold: 0 0 25px rgba(198, 161, 91, 0.22);
  --shadow-ambient: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
  --glass-blur: blur(14px);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Classe Utilitária Global para Ocultar Elementos */
.hidden {
  display: none !important;
}

body {
  background-color: var(--bg-cosmic);
  color: var(--text-primary);
  font-family: 'Jost', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Fundo Dinâmico com Partículas e Brilho */
.stars-bg {
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 140px 70px, rgba(242, 208, 130, 0.8), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 250px 160px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 350px 290px, rgba(198, 161, 91, 0.6), rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 400px 400px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.light-beam {
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(circle, rgba(27, 47, 92, 0.45) 0%, rgba(198, 161, 91, 0.08) 45%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

/* App Container Centralizado */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 16px 110px 16px;
}

/* Top Header */
.royal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-ambient);
}

.profile-compact {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-ring {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--primary-gold);
  box-shadow: var(--shadow-gold);
  padding: 2px;
  background: #000;
  flex-shrink: 0;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.level-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: linear-gradient(135deg, var(--gold-glow), var(--gold-dark));
  color: #070B12;
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  border: 1px solid #fff;
}

.user-meta .greeting-time {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-gold);
  font-weight: 600;
  display: block;
}

.user-title {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  color: #fff;
  line-height: 1.2;
}

.user-identity {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Wallet Bar */
.wallet-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.token-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(198, 161, 91, 0.12);
  border: 1px solid rgba(198, 161, 91, 0.4);
  padding: 8px 14px;
  border-radius: var(--radius-full);
}

.token-icon {
  font-size: 18px;
  color: var(--gold-glow);
}

.token-info {
  display: flex;
  flex-direction: column;
}

.token-val {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  color: #fff;
}

.token-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.streak-pill {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
}

/* Medidor de Soberania */
.sovereignty-meter-card {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-ambient);
}

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

.meter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meter-percentage {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: var(--gold-glow);
  font-size: 16px;
}

.progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1B2F5C, var(--primary-gold), var(--gold-glow));
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(198, 161, 91, 0.6);
}

.meter-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.next-rank-tag {
  color: var(--primary-gold);
  font-weight: 500;
}

/* ÁREA DO CHECK-IN EMOCIONAL */
.daily-checkin-card {
  position: relative;
  background: linear-gradient(145deg, rgba(27, 47, 92, 0.4), rgba(16, 25, 44, 0.9));
  border: 1px solid var(--primary-gold);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  margin-bottom: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-gold), var(--shadow-ambient);
}

.card-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(198, 161, 91, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.ritual-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold-glow);
  display: inline-block;
  margin-bottom: 8px;
  background: rgba(198, 161, 91, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.question-title {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  color: #fff;
  margin-bottom: 6px;
}

.question-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 720px;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.state-btn {
  background: rgba(16, 25, 44, 0.8);
  border: 1px solid rgba(198, 161, 91, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.state-btn:hover {
  transform: translateY(-3px);
  border-color: var(--primary-gold);
  background: rgba(27, 47, 92, 0.5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.state-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.option-letter {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-gold);
  letter-spacing: 0.1em;
}

.state-name {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 18px;
  color: #fff;
  margin-bottom: 4px;
}

.state-hint {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
}

.badge-frequencia {
  margin-top: auto;
  align-self: flex-start;
  font-size: 10px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

/* Resposta Terapêutica / Decreto */
.frequency-response-box {
  background: rgba(10, 16, 28, 0.95);
  border: 1px solid var(--primary-gold);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 18px;
  animation: fadeIn 0.5s ease-out;
}

.freq-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold-glow);
  border-bottom: 1px solid var(--primary-gold);
  padding-bottom: 4px;
  margin-bottom: 12px;
}

.response-headline {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  color: #fff;
  margin-bottom: 14px;
}

.scriptural-davar {
  background: rgba(27, 47, 92, 0.4);
  border-left: 3px solid var(--primary-gold);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 16px;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  line-height: 1.6;
  color: #F3F4F6;
  font-style: italic;
}

.neuro-neuroscience-note,
.practical-activation {
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.checkin-reward-box {
  background: rgba(198, 161, 91, 0.15);
  border: 1px dashed var(--primary-gold);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reward-amount {
  color: var(--gold-glow);
  font-family: 'Cinzel', serif;
  font-size: 15px;
}

/* NAVEGAÇÃO ENTRE NÍVEIS (TABS) */
.levels-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: 1px solid rgba(198, 161, 91, 0.2);
  color: var(--text-secondary);
  font-family: 'Cinzel', serif;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: var(--transition);
}

.tab-btn:hover {
  border-color: var(--primary-gold);
  color: #fff;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--royal-blue), #233c75);
  border-color: var(--primary-gold);
  color: #fff;
  box-shadow: 0 0 15px rgba(198, 161, 91, 0.3);
}

/* CONTAINER DE FASES (CARDS) */
.phases-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

.phase-card {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}

.phase-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-gold);
  background: var(--card-hover);
  box-shadow: var(--shadow-ambient), var(--shadow-gold);
}

.phase-card.completed {
  border-color: var(--success-emerald);
}

.phase-card.completed::after {
  content: '✓ CONCLUÍDO';
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  font-weight: 700;
  color: var(--success-emerald);
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* FASE BLOQUEADA (TRILHA LINEAR) */
.phase-card.locked {
  opacity: 0.55;
  filter: grayscale(0.5);
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(10, 16, 28, 0.6);
}

.phase-card.locked:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.phase-card.locked::after {
  content: '🔒 BLOQUEADO';
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* ABA BLOQUEADA POR PLANO */
.tab-btn.tab-locked {
  opacity: 0.65;
  border-style: dashed;
}

/* BARRA DE PROGRESSO DE ROLAGEM / LEITURA */
.reading-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.reading-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--royal-blue), var(--primary-gold), #fff);
  transition: width 0.15s ease-out;
}

.reading-indicator {
  font-size: 12px;
  color: var(--gold-glow);
  font-weight: 600;
}

/* PILL DO PLANO NO TOPO */
.plan-pill {
  cursor: pointer;
  background: rgba(27, 47, 92, 0.4);
  border-color: var(--primary-gold);
  transition: var(--transition);
}

.plan-pill:hover {
  background: rgba(27, 47, 92, 0.7);
  box-shadow: 0 0 10px rgba(198, 161, 91, 0.4);
}

/* DESTAQUE DO EXERCÍCIO QUANDO ROLADO */
.exercise-section.unlocked-pulse {
  border-color: var(--primary-gold);
  box-shadow: 0 0 20px rgba(198, 161, 91, 0.3);
  animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
  from { box-shadow: 0 0 10px rgba(198, 161, 91, 0.2); }
  to { box-shadow: 0 0 25px rgba(198, 161, 91, 0.6); }
}

.phase-chapter-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-gold);
  margin-bottom: 6px;
}

.phase-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.phase-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.phase-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 12px;
}

.phase-reward {
  color: var(--gold-glow);
  font-weight: 600;
}

/* BOTÕES GERAIS */
.action-btn {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.action-btn.primary-gold {
  background: linear-gradient(135deg, var(--gold-glow), var(--primary-gold));
  color: #070B12;
  box-shadow: 0 4px 15px rgba(198, 161, 91, 0.35);
}

.action-btn.primary-gold:hover {
  background: linear-gradient(135deg, #fff, var(--gold-glow));
  box-shadow: 0 6px 20px rgba(198, 161, 91, 0.5);
  transform: translateY(-2px);
}

.action-btn.secondary-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.action-btn.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* MODAIS */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-card {
  background: #0D1628;
  border: 1px solid var(--primary-gold);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-gold), 0 25px 50px rgba(0,0,0,0.8);
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--primary-gold);
  color: #000;
}

.modal-level-tag {
  padding: 20px 24px 0 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold-glow);
}

.modal-title {
  padding: 4px 24px 10px 24px;
  font-family: 'Cinzel', serif;
  font-size: 22px;
  color: #fff;
}

.modal-progress-strip {
  padding: 8px 24px;
  background: rgba(198, 161, 91, 0.08);
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(198, 161, 91, 0.15);
}

.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.7;
  color: #E2E8F0;
  background: transparent;
}

/* Padronização Real: Fundo Azul e Letras Brancas para todo o material (Básico, Médio e Avançado) */
.lesson-content .eusou-material,
.modal-body .eusou-material {
  background: transparent !important;
  padding: 10px 0 !important;
}

.lesson-content .eusou-conteudo,
.modal-body .eusou-conteudo {
  color: #F8F9FA !important;
  background: transparent !important;
  max-width: 100% !important;
  padding: 0 !important;
  font-family: 'Jost', Georgia, serif !important;
}

.lesson-content .eusou-conteudo p,
.modal-body .eusou-conteudo p {
  color: #E2E8F0 !important;
  line-height: 1.8 !important;
}

.lesson-content .eusou-conteudo h1,
.lesson-content .eusou-conteudo h2,
.lesson-content .eusou-conteudo h3,
.lesson-content .eusou-conteudo h4,
.modal-body .eusou-conteudo h1,
.modal-body .eusou-conteudo h2,
.modal-body .eusou-conteudo h3,
.modal-body .eusou-conteudo h4 {
  color: #F2D082 !important;
  font-family: 'Cinzel', Georgia, serif !important;
}

.lesson-content .eusou-conteudo blockquote,
.modal-body .eusou-conteudo blockquote {
  background: rgba(27, 47, 92, 0.4) !important;
  border-left: 3px solid var(--primary-gold) !important;
  color: #FFFFFF !important;
  padding: 12px 18px !important;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
}

.lesson-content .eusou-conteudo blockquote p,
.modal-body .eusou-conteudo blockquote p {
  color: #FFFFFF !important;
}

.lesson-content .eusou-conteudo .hb,
.lesson-content .eusou-conteudo .gr,
.modal-body .eusou-conteudo .hb,
.modal-body .eusou-conteudo .gr {
  color: #F2D082 !important;
}

.lesson-content .eusou-conteudo strong,
.modal-body .eusou-conteudo strong {
  color: #FFFFFF !important;
}

.lesson-content .eusou-conteudo em,
.modal-body .eusou-conteudo em {
  color: #CBD5E1 !important;
}

.lesson-content .eusou-conteudo table,
.modal-body .eusou-conteudo table {
  width: 100% !important;
  border-collapse: collapse !important;
  background: rgba(13, 22, 40, 0.9) !important;
  border: 1px solid rgba(198, 161, 91, 0.3) !important;
}

.lesson-content .eusou-conteudo th,
.modal-body .eusou-conteudo th {
  background: rgba(27, 47, 92, 0.8) !important;
  color: #F2D082 !important;
  border: 1px solid rgba(198, 161, 91, 0.3) !important;
}

.lesson-content .eusou-conteudo td,
.modal-body .eusou-conteudo td {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #E2E8F0 !important;
  background: transparent !important;
}

.lesson-content .eusou-conteudo tr:nth-child(even) td,
.modal-body .eusou-conteudo tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.03) !important;
}

.study-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--primary-gold);
  border-left: 2px solid var(--primary-gold);
  padding-left: 16px;
  margin-bottom: 18px;
}

.exercise-section {
  background: rgba(27, 47, 92, 0.3);
  border: 1px solid rgba(198, 161, 91, 0.3);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 24px;
}

.exercise-title {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  color: var(--gold-glow);
  margin-bottom: 8px;
}

.decree-box {
  background: #060A12;
  border: 1px solid var(--primary-gold);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  margin: 12px 0;
  box-shadow: inset 0 0 15px rgba(198, 161, 91, 0.2);
}

.reflection-input-group label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.reflection-input-group textarea {
  width: 100%;
  height: 80px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 10px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  resize: vertical;
}

.reflection-input-group textarea:focus {
  outline: none;
  border-color: var(--primary-gold);
}

.modal-footer {
  padding: 16px 24px;
  background: rgba(10, 16, 28, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* SINCRONIZAÇÃO WORDPRESS */
.sync-desc {
  padding: 0 24px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.sync-form-group {
  padding: 0 24px;
  margin-bottom: 14px;
}

.sync-form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.sync-form-group input {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(198, 161, 91, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
}

.sync-status-box {
  margin: 16px 24px 0 24px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success-emerald);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success-emerald);
  box-shadow: 0 0 8px var(--success-emerald);
}

/* BARRA INFERIOR (BOTTOM DOCK) */
.bottom-dock {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 22, 40, 0.85);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--primary-gold);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  display: flex;
  gap: 20px;
  z-index: 90;
  box-shadow: var(--shadow-ambient), var(--shadow-gold);
}

.dock-item {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: var(--transition);
  padding: 4px 8px;
}

.dock-item:hover,
.dock-item.active {
  color: var(--gold-glow);
  transform: translateY(-2px);
}

.dock-icon {
  font-size: 20px;
}

.dock-label {
  font-size: 11px;
  font-weight: 500;
}

/* ANIMAÇÕES */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ESTILOS ESPECIAIS: PROTOCOLO DA REPROGRAMAÇÃO TOTAL DA REALIDADE V3 */
.protocolo-v3-container {
  background: rgba(8, 14, 25, 0.95);
  border: 1px solid var(--primary-gold);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 10px;
  line-height: 1.8;
}

.protocolo-badge-soberania {
  background: linear-gradient(135deg, var(--gold-glow), var(--primary-gold));
  color: #070A11;
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  text-align: center;
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(198, 161, 91, 0.4);
}

.protocolo-v3-container h3 {
  font-family: 'Cinzel', serif;
  color: var(--gold-glow);
  font-size: 20px;
  margin: 26px 0 12px 0;
  border-bottom: 1px solid rgba(198, 161, 91, 0.2);
  padding-bottom: 6px;
}

.protocolo-v3-container h4 {
  font-family: 'Cinzel', serif;
  color: #fff;
  font-size: 16px;
  margin: 18px 0 8px 0;
}

.protocolo-v3-container p {
  margin-bottom: 14px;
  color: #E2E8F0;
  text-align: justify;
}

/* RESPONSIVIDADE (Mobile & Tablets) */
@media (max-width: 640px) {
  .royal-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .wallet-bar {
    width: 100%;
    justify-content: space-between;
    margin-top: 8px;
  }
  .question-title {
    font-size: 20px;
  }
  .phases-container {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PORTÃO DE AUTENTICAÇÃO & PROTEÇÃO DE ACESSO (GATEKEEPER)
   ========================================================================== */
.auth-gate-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(13, 22, 40, 0.96) 0%, rgba(7, 10, 17, 0.98) 100%);
  backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.auth-gate-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-gate-card {
  background: rgba(13, 22, 40, 0.9);
  border: 1px solid var(--primary-gold);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 0 30px rgba(198, 161, 91, 0.3), 0 30px 60px rgba(0, 0, 0, 0.9);
  animation: slideUp 0.4s ease-out;
  position: relative;
}

.auth-royal-crown {
  font-size: 54px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 15px rgba(198, 161, 91, 0.6));
}

.auth-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-glow);
  background: rgba(198, 161, 91, 0.12);
  border: 1px solid rgba(198, 161, 91, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.auth-title {
  font-family: 'Cinzel', serif;
  font-size: 26px;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.25;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 26px;
}

.auth-input-group {
  text-align: left;
  margin-bottom: 16px;
}

.auth-input-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--primary-gold);
  margin-bottom: 8px;
}

.auth-input-group input {
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(198, 161, 91, 0.4);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  transition: var(--transition);
}

.auth-input-group input:focus {
  outline: none;
  border-color: var(--gold-glow);
  box-shadow: 0 0 15px rgba(198, 161, 91, 0.4);
}

.auth-error-msg {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #EF4444;
  color: #FCA5A5;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  text-align: left;
}

.auth-btn-submit {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
}

.auth-footer-divider {
  display: flex;
  align-items: center;
  margin: 28px 0 18px 0;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.15em;
}

.auth-footer-divider::before,
.auth-footer-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-footer-divider span {
  padding: 0 12px;
}

.auth-plans-preview p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.auth-links-grid {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.auth-tier-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(198, 161, 91, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  color: var(--text-secondary);
}

/* ACESSIBILIDADE: Indicador de Foco Visível para Teclado (AUD-045) */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--primary-gold) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 12px rgba(198, 161, 91, 0.6) !important;
}

/* ACESSIBILIDADE: Respeito a Movimento Reduzido (AUD-050) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .stars-bg,
  .light-beam {
    display: none !important;
  }
}



