@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- DESIGN SYSTEM TOKENS --- */
:root {
  --font-logo: 'Cinzel', serif;
  --font-header: 'Cormorant Garamond', serif; /* Elegant brush script for headers */
  --font-quote: 'Cormorant Garamond', serif;
  --font-body: 'Outfit', sans-serif;           /* Premium modern sans-serif for body/UI */

  /* Color Palette */
  --bg-app: #0D0E11;         /* Deep slate black */
  --bg-card: #16181F;        /* Dark gray card */
  --bg-input: #1C1E26;       /* Slightly lighter for inputs */
  --color-primary: #a48443;  /* Premium Gold */
  --color-primary-dark: #80642f;
  --color-accent: #c3a669;
  --color-success: #5e8b6f;  /* Success green */
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #8E929E;
  --color-text-muted: #5C5E66;
  --color-danger: #EF4444;   /* General danger alert color */

  /* Borders & Shadows */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-glow: 0 0 15px rgba(164, 132, 67, 0.15);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.4);

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & MOBILE PREVIEW CONTAINER --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: radial-gradient(circle at center, #1C1E26 0%, #08090B 100%);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Simulates a Premium Mobile Phone Frame for Desktop/TV browsers */
.device-container {
  width: 100%;
  max-width: 450px;
  height: 920px;
  max-height: 95vh;
  background-color: var(--bg-app);
  border: 10px solid #2C2E35;
  border-radius: 44px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(164, 132, 67, 0.08);
  display: flex;
  flex-direction: column;
  transition: max-width 0.3s, height 0.3s, border-radius 0.3s, border 0.3s;
}

/* --- RESPONSIVIDADE (MOBILE, TABLET, PC, TV) --- */

/* 1. Mobile: Celulares Android e iPhone (telas estreitas / retrato) */
@media (max-width: 600px) {
  body {
    background-color: var(--bg-app);
    overflow: auto;
  }
  
  .device-container {
    max-width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  
  /* Oculta a barra de status simulada, já que o aparelho móvel real já tem sua própria barra nativa */
  .status-bar {
    display: none !important;
  }
  
  .screens-wrapper {
    padding-bottom: 72px !important;
  }

  /* Logo da tela de login menor e mais no topo no celular */
  #screen-login {
    padding-top: 20px !important;
  }

  .login-brand {
    margin-top: 5px !important;
  }

  .login-logo-img {
    width: 122px !important; /* 10% menor que o anterior de 136px */
  }

  .login-tagline {
    font-size: 16px !important;
  }

  .login-form {
    margin-bottom: 20px !important; /* Mais abaixo, porém antes da dobra */
  }
}

/* 2. Tablets (telas médias) */
@media (min-width: 601px) and (max-width: 1024px) {
  .device-container {
    max-width: 500px;
    height: 90vh;
    border-radius: 36px;
    border-width: 8px;
  }
}

/* 3. Computador e Televisão (telas grandes / paisagem) */
@media (min-width: 1025px) {
  .device-container {
    max-width: 450px;
    height: 95vh;
    max-height: 960px;
  }
}

/* --- TOGGLE DE LAYOUT DESKTOP & FULLSCREEN --- */
.desktop-only-toggle {
  position: fixed;
  top: 16px;
  left: 16px;
  background: rgba(22, 24, 31, 0.85);
  border: 1px solid var(--color-primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 24px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.desktop-only-toggle:hover {
  background: var(--color-primary);
  color: #000;
  box-shadow: 0 4px 20px rgba(164, 132, 67, 0.4);
}

@media (max-width: 600px) {
  .desktop-only-toggle {
    display: none !important;
  }
}

body.desktop-fullscreen .device-container {
  max-width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.desktop-fullscreen .status-bar {
  display: none !important;
}

/* Status Bar Simulation */
.status-bar {
  height: 40px;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  z-index: 100;
  background: var(--bg-app);
}

.status-bar .icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.status-bar .icons span {
  font-size: 12px;
}

/* Screen Wrapper */
.screens-wrapper {
  flex: 1;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 80px; /* Space for bottom nav */
}

/* Hide scrollbar but keep functional for mobile view */
.screens-wrapper::-webkit-scrollbar {
  width: 4px;
}
.screens-wrapper::-webkit-scrollbar-track {
  background: transparent;
}
.screens-wrapper::-webkit-scrollbar-thumb {
  background: rgba(164, 132, 67, 0.2);
  border-radius: 2px;
}

/* --- NAVIGATION BARS --- */
.app-header {
  height: 60px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(13, 14, 17, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.app-header h1 {
  font-family: var(--font-header);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.header-btn {
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.header-btn:active {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background-color: rgba(22, 24, 31, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px 10px 10px; /* padding-bottom for mobile home indicator */
  z-index: 95;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.3);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 60px;
  height: 50px;
  border-radius: 12px;
  gap: 4px;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-text-secondary);
  stroke-width: 2;
  fill: none;
  transition: var(--transition-smooth);
}

.nav-item.active {
  color: var(--color-primary);
}

.nav-item.active svg {
  stroke: var(--color-primary);
  transform: translateY(-2px);
}

/* --- GLOBAL APP COMPONENTS & UTILITIES --- */
.screen {
  display: none;
  padding: 20px;
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  min-height: 100%;
}

.screen.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typography */
h2 {
  font-family: var(--font-header);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.subtitle {
  color: var(--color-text-secondary);
  font-family: var(--font-body); /* Outfit */
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Buttons */
.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #000;
  border: none;
  border-radius: var(--border-radius-md);
  padding: 16px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(164, 132, 67, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(164, 132, 67, 0.2);
}

.btn-secondary {
  width: 100%;
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: var(--border-radius-md);
  padding: 15px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-secondary:active {
  background-color: rgba(164, 132, 67, 0.05);
}

/* Glassmorphic Premium Cards */
.card, .program-card-small, .program-list-item, .health-menu-card, .journey-header-box, .stat-item-box, .chart-container-card, .diet-tip-card, .profile-card, .xp-container, .profile-menu-item, .meditation-audio-item, .lesson-row-item, .hero-banner {
  background: rgba(22, 24, 31, 0.65) !important;
  backdrop-filter: blur(16px) -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}


/* Inputs */
.input-group {
  margin-bottom: 20px;
  position: relative;
}

.input-group label {
  display: block;
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.input-field {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  padding: 16px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  transition: var(--transition-smooth);
}

.input-field:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--border-glow);
}

/* Status Badges */
.badge-count {
  background-color: var(--color-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  position: absolute;
  top: 4px;
  right: 4px;
}

/* --- TELA 01: LOGIN --- */
#screen-login {
  background: linear-gradient(180deg, rgba(13, 14, 17, 0.35) 0%, rgba(13, 14, 17, 0.96) 95%), 
              url('imagens/página 1.webp') center/cover;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 24px;
}

#screen-login.active {
  display: flex;
}

.login-brand {
  text-align: center;
  margin-top: 30px;
}

.login-logo-img {
  width: 170px;
  height: auto;
  margin: 0 auto 5px auto;
  display: block;
}

.login-tagline {
  color: var(--color-text-secondary);
  font-family: var(--font-quote);
  font-size: 19px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.5px;
  margin-top: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Inline Input Icons Styling */
.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  pointer-events: none;
  z-index: 5;
}

.input-icon svg {
  width: 18px;
  height: 18px;
}

.input-field.with-icon {
  padding-left: 48px !important;
}

/* Chinese traditional Red Stamp */
.chinese-stamp {
  position: absolute;
  bottom: 28px;
  right: 28px;
  background-color: rgba(185, 28, 28, 0.85);
  border: 1.5px solid #DC2626;
  padding: 4px 5px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
  z-index: 10;
  opacity: 0.9;
}

.chinese-stamp span {
  font-family: var(--font-logo);
  font-weight: 700;
  color: #FCA5A5;
  line-height: 1;
  font-size: 12px;
}



.login-form {
  margin-bottom: 40px;
}

.forgot-password {
  display: block;
  text-align: center;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 13px;
  margin-top: 20px;
  transition: var(--transition-smooth);
}

.forgot-password:hover {
  color: var(--color-primary);
}



/* --- TELA 02: HOME --- */
.home-hero {
  background: linear-gradient(180deg, rgba(13, 14, 17, 0.15) 0%, rgba(13, 14, 17, 0.65) 60%, #0D0E11 100%), 
              url('imagens/hero.png') center/cover no-repeat !important;
  margin: -20px -20px 16px -20px;
  height: 230px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.home-header-inside {
  width: 100%;
}

.home-header-inside h2 {
  font-family: var(--font-header);
  font-size: 24px; /* Increased slightly since serif font feels smaller */
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.home-header-inside h2 span {
  color: var(--color-primary);
  font-style: italic; /* Dynamic highlight style */
}

.home-streak {
  position: absolute;
  top: 16px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(164, 132, 67, 0.18);
  border: 1px solid rgba(164, 132, 67, 0.35);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-content {
  margin-top: 8px; /* Tagline logo abaixo */
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  max-width: 60%;
  text-align: left;
}

.hero-content h3 {
  font-family: var(--font-body); /* Outfit */
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.hero-content p {
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.5;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-title-row h3 {
  font-family: var(--font-header);
  font-size: 20px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.5px;
}

.section-title-row a {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 12px;
  text-decoration: none;
  font-weight: 500;
}

/* Home Grid for Programs */
.program-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.program-card-small {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 160px;
  position: relative;
  cursor: pointer;
  transition: var(--transition-smooth);
  overflow: hidden;
}

.program-card-small:active {
  transform: scale(0.97);
}

.program-card-small.full-width {
  grid-column: span 2;
}

.program-card-small[data-prog-id="cadeira"] {
  background: linear-gradient(180deg, rgba(22, 24, 31, 0.25) 0%, rgba(13, 14, 17, 0.95) 90%), 
              url('imagens/banner tai chi na cadeira.webp') center/cover no-repeat !important;
}

.program-card-small[data-prog-id="caminhada"] {
  background: linear-gradient(180deg, rgba(22, 24, 31, 0.25) 0%, rgba(13, 14, 17, 0.95) 90%), 
              url('imagens/banner caminha tai chi.webp') center/cover no-repeat !important;
}

.program-card-small[data-prog-id="metabolico"] {
  background: linear-gradient(180deg, rgba(22, 24, 31, 0.25) 0%, rgba(13, 14, 17, 0.95) 90%), 
              url('imagens/banner tai chi metabólico.webp') center/cover no-repeat !important;
}

.program-card-small[data-prog-id="noturno"] {
  background: linear-gradient(180deg, rgba(22, 24, 31, 0.25) 0%, rgba(13, 14, 17, 0.95) 90%), 
              url('imagens/banner tai chi noturno.webp') center/cover no-repeat !important;
}

.program-card-small[data-prog-id="ansiedade"] {
  background: linear-gradient(180deg, rgba(22, 24, 31, 0.25) 0%, rgba(13, 14, 17, 0.95) 90%), 
              url('imagens/banner tai chi anti ansiedade (1).webp') center/cover no-repeat !important;
}

.prog-icon-bg {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(164, 132, 67, 0.1);
  border: 1px solid rgba(164, 132, 67, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  overflow: hidden;
}

.program-card-small .prog-icon-bg {
  margin-bottom: 0;
  background-color: transparent !important;
  border: none !important;
  width: 36px;
  height: 36px;
  padding: 0;
}

.prog-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.prog-icon-bg svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-primary);
}

.prog-card-info {
  max-width: 90%;
  text-align: left;
}

.program-card-small h4 {
  font-family: var(--font-header);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.program-card-small p {
  color: var(--color-text-secondary);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- TELA 03: PROGRAMAS LIST --- */
.program-list-item {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.program-list-item:active {
  transform: translateX(4px);
}

.program-list-item .prog-img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #242630;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.program-list-item .prog-img svg {
  width: 30px;
  height: 30px;
  stroke: var(--color-primary);
}

.program-list-info {
  flex: 1;
}

.program-list-info h4 {
  font-family: var(--font-header);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.program-list-info p {
  color: var(--color-text-secondary);
  font-size: 12px;
  margin-bottom: 4px;
}

.program-list-info .lessons-count {
  font-size: 11px;
  color: var(--color-primary);
  font-weight: 500;
}

/* --- TELA 05: DETALHE DO PROGRAMA --- */
.prog-detail-header {
  position: relative;
  margin: -20px -20px 20px -20px;
  height: 220px;
  background: linear-gradient(180deg, rgba(13, 14, 17, 0.2) 0%, rgba(13, 14, 17, 1) 100%), 
              url('https://images.unsplash.com/photo-1544367567-0f2fcb009e0b?q=80&w=600&auto=format&fit=crop') center/cover;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

/* Tai Chi illustration backup styling if image offline */
.prog-illustration-seat {
  background: linear-gradient(180deg, rgba(13, 14, 17, 0) 0%, rgba(13, 14, 17, 1) 100%), 
              radial-gradient(circle at center, #1C1E26 0%, #0D0E11 100%);
}

.prog-detail-header h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

.prog-detail-header .prog-meta {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 500;
}

.benefits-row-detail {
  display: flex;
  justify-content: space-between;
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 12px;
  margin-bottom: 20px;
  gap: 8px;
}

.benefit-pill-detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.benefit-pill-detail svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-primary);
}

.benefit-pill-detail span {
  font-size: 9px;
  color: var(--color-text-secondary);
  font-weight: 500;
  line-height: 1.2;
}

.lessons-list-title {
  font-family: var(--font-header);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.lesson-row-item {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lesson-row-item:active {
  background-color: rgba(255, 255, 255, 0.02);
}

.lesson-status-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.lesson-status-icon.completed {
  background-color: rgba(94, 139, 111, 0.1);
  border: 1px solid rgba(94, 139, 111, 0.3);
}

.lesson-status-icon.completed svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-success);
}

.lesson-status-icon.current {
  background-color: rgba(164, 132, 67, 0.1);
  border: 1px solid rgba(164, 132, 67, 0.3);
}

.lesson-status-icon.current svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-primary);
}

.lesson-status-icon.locked {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lesson-status-icon.locked svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-text-muted);
}

.lesson-info-row {
  flex: 1;
}

.lesson-info-row h5 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
}

.lesson-info-row.locked h5 {
  color: var(--color-text-muted);
}

.lesson-info-row p {
  color: var(--color-text-secondary);
  font-size: 11px;
}

.lesson-info-row.locked p {
  color: var(--color-text-muted);
}

/* --- TELA 06: PLAYER DE AULA --- */
.player-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background-color: #000;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

/* --- SUPORTE A TELA CHEIA (FULLSCREEN API) --- */
.player-container:fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #000 !important;
}

.player-container:fullscreen .player-iframe-sim {
  width: 100vw !important;
  height: 100vh !important;
}

.player-container:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #000 !important;
}

.player-container:-webkit-full-screen .player-iframe-sim {
  width: 100vw !important;
  height: 100vh !important;
}

/* Simulator Webview for YouTube */
.player-iframe-sim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background-color: #111;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Video Thumbnail Mock */
.player-thumbnail-mock {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1544367567-0f2fcb009e0b?q=80&w=600&auto=format&fit=crop') center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.player-thumbnail-mock.playing {
  opacity: 0;
  pointer-events: none;
}

.play-center-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  border: 2px solid var(--color-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--border-glow);
  z-index: 10;
}

.play-center-btn svg {
  width: 24px;
  height: 24px;
  fill: var(--color-primary);
}

/* CRITICAL: YouTube Logo Block Overlay (Gradient Bottom) */
.yt-blocker-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 52px; /* Height to cover YouTube bottom bar / watermark */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(13, 14, 17, 1) 90%);
  pointer-events: auto; /* Block touch gestures to YouTube logo area */
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.player-container.playing .yt-blocker-overlay {
  display: none !important;
}

.player-controls-row {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  width: 100%;
}

.player-progress-bar {
  flex: 1;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.player-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 35%; /* Sample current progress */
  background-color: var(--color-primary);
  border-radius: 2px;
}

.player-time-display {
  font-size: 11px;
  font-family: var(--font-body);
  color: var(--color-text-secondary);
}

/* Custom Play Controllers on top of Blocker */
.player-control-button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.player-control-button svg {
  width: 18px;
  height: 18px;
}

.player-tabs-header {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 16px;
}

.player-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.player-tab-btn.active {
  color: var(--color-primary);
}

.player-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  width: 60%;
  height: 2px;
  background-color: var(--color-primary);
}

.player-tab-content {
  display: none;
}

.player-tab-content.active {
  display: block;
}

.benefits-checklist {
  margin-top: 16px;
}

.benefits-checklist h4 {
  font-family: var(--font-header);
  font-size: 14px;
  margin-bottom: 12px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.checklist-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-success);
  flex-shrink: 0;
}

/* --- TELA 15: MENU SAÚDE E BEM-ESTAR --- */
.health-menu-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.health-menu-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.health-menu-card:active {
  transform: scale(0.98);
}

.health-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50% !important;
  background-color: rgba(164, 132, 67, 0.08);
  border: 1px solid rgba(164, 132, 67, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.health-card-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Circular pulsing highlight on hover/select */
.health-menu-card:hover .health-card-icon {
  transform: scale(1.1);
  background-color: rgba(164, 132, 67, 0.15);
  border-color: var(--color-primary);
  animation: healthIconPulse 1.5s infinite alternate;
}

.health-menu-card:active .health-card-icon {
  transform: scale(0.95);
}

@keyframes healthIconPulse {
  0% {
    box-shadow: 0 0 4px rgba(164, 132, 67, 0.2);
  }
  100% {
    box-shadow: 0 0 16px rgba(164, 132, 67, 0.7);
  }
}

.health-card-info {
  flex: 1;
}

.health-card-info h3 {
  font-family: var(--font-header);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.health-card-info p {
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

/* --- TELA 16: SESSÃO DE RESPIRAÇÃO (PRANAMETRO) --- */
.breathing-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 380px;
  position: relative;
}

/* Pulsing Circle Animation Container */
.breath-circle-container {
  width: 240px;
  height: 240px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.breath-circle-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 175, 55, 0.08) 0%, rgba(214, 175, 55, 0) 70%);
  border: 1px solid rgba(214, 175, 55, 0.15);
  transition: transform 4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.8);
}

/* Circular ring indicator */
.breath-ring-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.breath-ring-circle {
  fill: none;
  stroke: #5e8b6f !important;
  stroke-width: 6 !important;
  stroke-dasharray: 690;
  stroke-dashoffset: 690;
  transition: stroke-dashoffset 0.1s linear;
  filter: drop-shadow(0 0 8px rgba(94, 139, 111, 0.8)) !important;
}

.breath-inner-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.breath-status {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-primary);
  text-transform: uppercase;
}

.breath-timer {
  font-family: var(--font-body);
  font-size: 56px;
  font-weight: 800;
  margin: 4px 0;
  line-height: 1;
}

.breath-sub-status {
  font-size: 11px;
  color: var(--color-text-secondary);
}

/* Breathing states class animations controlled via JS */
.breathing-box.inhale .breath-circle-pulse {
  transform: scale(1.15);
  background: radial-gradient(circle, rgba(94, 139, 111, 0.1) 0%, rgba(94, 139, 111, 0) 70%);
  border-color: rgba(94, 139, 111, 0.3);
}

.breathing-box.hold .breath-circle-pulse {
  transform: scale(1.15);
  background: radial-gradient(circle, rgba(164, 132, 67, 0.12) 0%, rgba(164, 132, 67, 0) 70%);
  border-color: rgba(164, 132, 67, 0.4);
}

.breathing-box.exhale .breath-circle-pulse {
  transform: scale(0.8);
  background: radial-gradient(circle, rgba(214, 175, 55, 0.05) 0%, rgba(214, 175, 55, 0) 70%);
  border-color: rgba(214, 175, 55, 0.15);
}

.breathing-bar-status {
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin-top: 24px;
  margin-bottom: 24px;
}

.breath-phase-badge {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 11px;
  color: var(--color-text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.breath-phase-badge.active {
  border-color: var(--color-primary);
  color: var(--color-text-primary);
  background-color: rgba(164, 132, 67, 0.05);
}

.breath-phase-badge span {
  font-weight: 700;
  font-size: 13px;
  color: var(--color-primary);
}

/* --- TELA 17: MEDITAÇÃO GUIADA --- */
.meditation-hero {
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.85) 100%), 
              url('imagens/metidação.png') center/cover;
  border-radius: var(--border-radius-lg);
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.meditation-hero h3 {
  font-family: var(--font-header);
  font-size: 18px;
}

.meditation-hero p {
  color: var(--color-primary);
  font-size: 12px;
  margin-bottom: 12px;
}

.meditation-audio-item {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.meditation-audio-item .info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meditation-audio-item h5 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
}

.meditation-audio-item p {
  color: var(--color-text-secondary);
  font-size: 11px;
}

.audio-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(164, 132, 67, 0.1);
  border: 1px solid rgba(164, 132, 67, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--color-primary);
}

.audio-play-btn.playing {
  background-color: var(--color-primary);
  color: #000;
}

/* --- TELA 18: ESTATÍSTICAS --- */
.stats-tabs {
  display: flex;
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
}

.stats-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-family: var(--font-body); /* Outfit */
  font-size: 12px;
  font-weight: 600;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.stats-tab-btn.active {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-primary);
}

.stats-row-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-item-box {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.stat-item-box .label {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.stat-item-box .val {
  font-family: var(--font-body); /* Outfit */
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.stat-item-box .val span {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 500;
}

/* CSS Bar Chart */
.chart-container-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 20px 16px;
  margin-bottom: 20px;
}

.chart-header-title {
  font-family: var(--font-body); /* Outfit */
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.chart-bars-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 120px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-bar-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 32px;
}

.chart-bar-fill {
  width: 12px;
  background: linear-gradient(to top, var(--color-primary-dark), var(--color-primary));
  border-radius: 4px;
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 2px;
}

.chart-bar-label {
  font-size: 10px;
  color: var(--color-text-secondary);
  margin-top: 8px;
  font-weight: 500;
}

/* --- TELA 19: ALIMENTAÇÃO --- */
.diet-hero {
  position: relative;
  height: 140px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%), 
              url('imagens/hero_alimentacao.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.diet-hero h3 {
  font-family: var(--font-header);
  font-size: 19px;
}

.diet-hero p {
  color: var(--color-text-secondary);
  font-size: 11px;
}

.diet-principles {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 24px;
}

.principle-item {
  flex: 1;
  background-color: var(--bg-card);
  padding: 12px 8px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.principle-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-primary);
}

.principle-item span {
  font-size: 9px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.diet-tips-list h4 {
  font-family: var(--font-header);
  font-size: 15px;
  margin-bottom: 12px;
}

.diet-tip-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  border-left: 3px solid var(--color-primary);
}

.diet-tip-card svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-primary);
  flex-shrink: 0;
}

.diet-tip-card p {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

/* --- TELA 20: JORNADA 28 DIAS --- */
.journey-header-box {
  background: linear-gradient(180deg, rgba(13, 14, 17, 0.25) 0%, rgba(13, 14, 17, 0.85) 100%), 
              url('imagens/hero_jornada.webp') center/cover no-repeat !important;
  border-radius: var(--border-radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.journey-header-box h3 {
  font-family: var(--font-header);
  font-size: 19px;
  margin-bottom: 4px;
}

.journey-header-box p {
  color: var(--color-text-secondary);
  font-size: 12px;
  margin-bottom: 16px;
}

.journey-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 8px;
}

.journey-progress-row span {
  font-weight: 700;
  color: var(--color-primary);
}

.journey-progress-bar {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.journey-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
  width: 64%; /* Sample width matching 18/28 days */
}

/* Weeks Container */
.journey-weeks-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.journey-week-block {
  background: rgba(22, 24, 31, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-radius: var(--border-radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.journey-week-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.week-title-area {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.week-number {
  font-family: var(--font-body);
  font-size: 9px;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 1.5px;
}

.week-title-area h4 {
  font-family: var(--font-header);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.week-progress-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text-secondary);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 8px;
  font-family: var(--font-body);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.week-progress-badge.completed {
  color: var(--color-success);
  background-color: rgba(94, 139, 111, 0.1);
  border-color: rgba(94, 139, 111, 0.2);
}

.calendar-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day-btn {
  aspect-ratio: 1;
  background-color: rgba(28, 30, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.calendar-day-btn:hover {
  border-color: var(--color-primary);
  background-color: rgba(164, 132, 67, 0.05);
}

.calendar-day-btn.completed {
  background-color: rgba(94, 139, 111, 0.1) !important;
  border-color: rgba(94, 139, 111, 0.3) !important;
  color: var(--color-success);
}

.calendar-day-btn.active {
  background-color: var(--color-primary) !important;
  color: #000 !important;
  border-color: var(--color-primary) !important;
  box-shadow: var(--border-glow);
  transform: scale(1.05);
}

/* Achievements List */
.achievements-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.badge-item-box {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 12px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
}

.badge-item-box:hover {
  transform: translateY(-2px);
  border-color: rgba(164, 132, 67, 0.2);
}

.badge-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
  background-color: rgba(13, 14, 17, 0.8);
}

.badge-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

/* Locked Achievement Styles */
.badge-icon.locked {
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.badge-icon.locked img {
  filter: grayscale(1) opacity(0.35);
}

.badge-text {
  font-size: 8px;
  color: var(--color-text-secondary);
  font-weight: 500;
  line-height: 1.3;
  transition: var(--transition-smooth);
}

.badge-text.unlocked {
  color: var(--color-text-primary);
  font-weight: 600;
}

/* Unlocked Achievement Styles (Chinese glow and energy active) */
.badge-icon.unlocked {
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 15px rgba(164, 132, 67, 0.6);
  animation: badgeGlow 2.5s ease-in-out infinite alternate;
}

.badge-icon.unlocked img {
  filter: none;
  opacity: 1;
}

@keyframes badgeGlow {
  0% {
    box-shadow: 0 0 8px rgba(164, 132, 67, 0.3), inset 0 0 4px rgba(164, 132, 67, 0.1);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 18px rgba(164, 132, 67, 0.7), inset 0 0 10px rgba(164, 132, 67, 0.3);
    transform: scale(1.03);
  }
  100% {
    box-shadow: 0 0 8px rgba(164, 132, 67, 0.3), inset 0 0 4px rgba(164, 132, 67, 0.1);
    transform: scale(1);
  }
}


/* --- TELA 24: PERFIL --- */
.profile-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.profile-avatar-box {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--border-glow);
}

.profile-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card h3 {
  font-family: var(--font-header);
  font-size: 18px;
  font-weight: 700;
}

.profile-card .tag {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 600;
  margin-top: 2px;
}

.profile-card .member-since {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-top: 6px;
}

.profile-metrics-row {
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-item-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.metric-item-col .num {
  font-family: var(--font-header);
  font-size: 16px;
  font-weight: 700;
}

.metric-item-col .lbl {
  font-size: 10px;
  color: var(--color-text-secondary);
}

/* XP Progression Bar */
.xp-container {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.xp-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
  font-weight: 500;
}

.xp-label-row span.lvl {
  color: var(--color-primary);
  font-weight: 700;
}

.xp-label-row span.xp {
  color: var(--color-text-secondary);
}

.xp-progress-bar {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.xp-progress-fill {
  height: 100%;
  background: var(--color-primary);
  width: 72%; /* Sample 720/1000 XP */
}

/* Profile List Menu */
.profile-menu-item {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.profile-menu-item:active {
  background-color: rgba(255, 255, 255, 0.02);
}

.profile-menu-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.profile-menu-left svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-primary);
}

.profile-menu-item svg.chevron {
  width: 16px;
  height: 16px;
  stroke: var(--color-text-secondary);
}

.text-danger {
  color: var(--color-danger) !important;
}

/* Quick Floating Test triggers */
.floating-test-panel {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.85);
  border: 1px solid var(--color-primary);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 200;
}

.floating-test-panel button {
  font-size: 9px;
  padding: 4px 6px;
  background: var(--bg-card);
  color: var(--color-primary);
  border: 1px solid rgba(164, 132, 67,0.3);
  border-radius: 6px;
  cursor: pointer;
}
.floating-test-panel button:hover {
  background: var(--color-primary);
  color: #000;
}

/* --- REFINEMENT STYLES --- */

/* Floating Back Button */
.btn-back-floating {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-back-floating:active {
  transform: scale(0.9);
  background: rgba(0, 0, 0, 0.8);
}

/* Inline Back Button */
.btn-back-inline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.btn-back-inline:active {
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.08);
}

/* Screen Header Row (no sticky top header anymore) */
.screen-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.screen-header-row h2 {
  margin-bottom: 0 !important;
  font-family: var(--font-header);
  font-size: 24px;
  font-weight: 700;
}

/* Home Hero Custom Top row and Main content positioning */
.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  z-index: 10;
}

.hero-bell-btn {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--color-text-primary);
  position: relative;
  transition: var(--transition-smooth);
}

.hero-bell-btn:active {
  transform: scale(0.9);
  background: rgba(0, 0, 0, 0.6);
}

.hero-bell-btn .badge-count {
  top: -2px;
  right: -2px;
}

.hero-main-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  margin-bottom: 8px;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* Breathing modes selector */
.breath-modes-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  background-color: rgba(22, 24, 31, 0.65);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.breath-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 10px 4px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

.breath-tab.active {
  background-color: var(--color-primary);
  color: #000;
  box-shadow: var(--border-glow);
}

/* Favorite button in Player */
.player-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.favorite-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-text-secondary);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
}

.favorite-btn svg {
  width: 20px;
  height: 20px;
  transition: var(--transition-smooth);
  stroke: currentColor;
  fill: none;
}

.favorite-btn:active {
  transform: scale(0.9);
}

.favorite-btn.active {
  color: var(--color-primary);
  border-color: rgba(164, 132, 67, 0.2);
  background: rgba(164, 132, 67, 0.08);
}

.favorite-btn.active svg {
  fill: var(--color-primary);
  stroke: var(--color-primary);
  filter: drop-shadow(0 0 4px rgba(164, 132, 67, 0.5));
}

/* Recipes Modal */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 500;
  padding: 20px;
  animation: modalFadeIn 0.3s ease forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: rgba(22, 24, 31, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 360px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  max-height: 80%;
  overflow-y: auto;
}

.modal-card::-webkit-scrollbar {
  width: 4px;
}
.modal-card::-webkit-scrollbar-thumb {
  background: rgba(164, 132, 67, 0.3);
  border-radius: 2px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.modal-header h3 {
  font-family: var(--font-header);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
}

.modal-close {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.recipe-item {
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 16px;
  text-align: left;
}

.recipe-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.recipe-item h4 {
  font-family: var(--font-header);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text-primary);
}

.recipe-ingredients, .recipe-instructions {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.4;
  margin-bottom: 4px;
}

.recipe-ingredients strong, .recipe-instructions strong {
  color: var(--color-primary);
}

/* Notifications Panel */
.notifications-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 14, 17, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 450;
  display: flex;
  flex-direction: column;
  padding: 24px;
  animation: notificationSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes notificationSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.notifications-header h3 {
  font-family: var(--font-header);
  font-size: 20px;
  font-weight: 700;
}

.notifications-header .close-btn {
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.notifications-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notification-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: var(--transition-smooth);
  text-align: left;
}

.notification-item.unread {
  border-left: 3px solid var(--color-primary);
  background: rgba(164, 132, 67, 0.03);
}

.notification-icon {
  font-size: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.notification-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notification-text {
  font-size: 12.5px;
  color: var(--color-text-primary);
  line-height: 1.4;
}

.notification-time {
  font-size: 10px;
  color: var(--color-text-muted);
}

/* --- EDITAR NOME NO PERFIL --- */
.profile-name-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 4px;
}

.profile-name-container h3 {
  margin: 0 !important;
}

#btn-edit-profile-name {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
}

#btn-edit-profile-name:hover {
  opacity: 1;
  transform: scale(1.15);
}

.profile-name-edit-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 4px;
  width: 100%;
}

#input-profile-name {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
  width: 80%;
  max-width: 220px;
  outline: none;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}

#input-profile-name:focus {
  border-color: var(--color-primary);
}

.edit-actions-row {
  display: flex;
  gap: 8px;
}

.btn-edit-save {
  background: var(--color-primary);
  color: #0d0e11;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-edit-save:hover {
  transform: scale(1.05);
}

.btn-edit-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 11px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-edit-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* --- TOGGLE SWITCH STYLING --- */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--color-primary);
}

input:checked + .slider:before {
  transform: translateX(24px);
  background-color: #000;
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.pulsing-text {
  animation: pulseText 3s infinite ease-in-out;
}

@keyframes pulseText {
  0%, 100% { opacity: 0.6; transform: scale(0.98); }
  50% { opacity: 1.0; transform: scale(1.02); }
}

#screen-meditation-player {
  background: #160016; /* Fallback same color as Three.js background */
}

/* --- PROFILE EDIT AVATAR STYLES --- */
.profile-avatar-box::after {
  content: "📸";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 50%;
  pointer-events: none;
}

.profile-avatar-box:hover::after {
  opacity: 1;
}

#btn-delete-avatar {
  border: 1px solid rgba(239, 68, 68, 0.2) !important;
  background: rgba(239, 68, 68, 0.05) !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  display: block !important;
  margin: -4px auto 14px auto !important;
  transition: var(--transition-smooth) !important;
}

#btn-delete-avatar:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
}


/* =========================================================================
   100% RESPONSIVE DESKTOP FULLSCREEN LAYOUT OVERRIDES (WIDESCREEN & TV)
   ========================================================================= */
body.desktop-fullscreen {
  background: radial-gradient(circle at center, #1C1E26 0%, #08090B 100%) !important;
}

body.desktop-fullscreen .device-container {
  max-width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important; /* Expose the stellar body backdrop */
}

body.desktop-fullscreen .screens-wrapper {
  max-width: 1100px !important;
  margin: 0 auto !important;
  width: 100% !important;
  background-color: var(--bg-app) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8) !important;
  padding-bottom: 96px !important; /* extra padding to clear floating centered bottom-nav */
}

body.desktop-fullscreen .bottom-nav {
  max-width: 1100px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  border-left: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 20px 20px 0 0 !important;
  padding: 0 40px 10px 40px !important;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6) !important;
}

/* Grids Optimization on Desktop Fullscreen */
body.desktop-fullscreen .program-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
}

body.desktop-fullscreen .health-menu-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px !important;
}

body.desktop-fullscreen .journey-weeks-container {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px !important;
}

body.desktop-fullscreen .stats-row-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
}

/* Constrain huge stretched elements */
body.desktop-fullscreen .btn-primary,
body.desktop-fullscreen .btn-secondary {
  max-width: 400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.desktop-fullscreen .input-group,
body.desktop-fullscreen .login-form {
  max-width: 400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
}

body.desktop-fullscreen #screen-login {
  align-items: center !important;
  justify-content: center !important;
  gap: 40px !important;
  background-size: cover !important;
}

body.desktop-fullscreen #screen-login .login-brand {
  max-width: 400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.desktop-fullscreen .home-hero {
  height: 320px !important;
  margin: -20px -20px 24px -20px !important;
  padding: 40px !important;
  background-size: cover !important;
}

body.desktop-fullscreen .hero-main-content {
  max-width: 80% !important;
}

body.desktop-fullscreen .hero-main-content h2 {
  font-size: 32px !important;
}

body.desktop-fullscreen .hero-tagline {
  font-size: 16px !important;
}

body.desktop-fullscreen .card, 
body.desktop-fullscreen .profile-card,
body.desktop-fullscreen .chart-container-card {
  max-width: 100% !important;
}

/* --- IFRAME AND THUMBNAIL VISIBILITY CONTROL --- */
#player-video-iframe {
  display: none;
}
.player-container.playing #player-video-iframe {
  display: block !important;
}
.player-container.playing #player-iframe-placeholder,
.player-container.playing #player-thumb {
  display: none !important;
}

