@import url('/fonts.css');

:root {
  --green: #173b2f;
  --green-light: #245443;
  --lime: #cbe678;
  --lime-soft: #f2f7e4;
  --paper: #f7f9f6;
  --white: #ffffff;
  --ink: #192e24;
  --muted: #6b7c72;
  --muted-light: #94a39b;
  --line: #e4ece2;
  --card-shadow: 0 4px 20px rgba(23, 59, 47, 0.05);
  --modal-shadow: 0 20px 60px rgba(15, 38, 30, 0.25);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
input, textarea {
  user-select: auto;
  -webkit-user-select: auto;
}
button, input, select, textarea { font: inherit; color: inherit; touch-action: manipulation; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; cursor: pointer; text-decoration: none; }
button { border: none; background: none; }
img, video { max-width: 100%; display: block; }

/* Previne auto-zoom no iOS Safari (mínimo 16px) */
input, select, textarea, .field input, .field select, .field textarea {
  font-size: 16px !important;
}

/* Acessibilidade */
.skip { position: fixed; top: -60px; left: 16px; z-index: 100; background: var(--white); padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.skip:focus { top: 12px; }

/* SVG Icons */
svg.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Layout Geral Desktop / Mobile */
.sidebar {
  width: 250px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--white);
  border-right: 1px solid var(--line);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 38px; height: 38px; }
.brand strong { font-size: 16px; font-weight: 700; letter-spacing: -0.4px; color: var(--green); display: block; }
.brand small { font-size: 9px; font-weight: 600; letter-spacing: 1.8px; color: var(--muted); }

.nav-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted-light); margin: 35px 12px 10px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s;
}
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav a.active { background: var(--green); color: var(--white); }
.nav a.active svg.icon { stroke-width: 2.2; }

.sidebar-bottom { margin-top: auto; }
.support-card {
  padding: 18px 16px;
  background: var(--lime-soft);
  border-radius: var(--radius-md);
  border: 1px solid #dce8cb;
  margin-bottom: 16px;
}
.support-card h3 { font-size: 13px; font-weight: 700; color: var(--green); margin-bottom: 4px; }
.support-card p { font-size: 11px; color: var(--muted); line-height: 1.4; margin-bottom: 10px; }
.support-card a { font-size: 11px; font-weight: 700; color: var(--green); }

.shell { margin-left: 250px; min-height: 100vh; display: flex; flex-direction: column; }

/* Topbar */
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.mobile-brand { display: none; }
.top-title { font-size: 14px; font-weight: 600; color: var(--muted); }
.top-title b { color: var(--ink); }
.tools { display: flex; align-items: center; gap: 14px; }

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 20px;
}
.search input { border: 0; background: none; outline: 0; font-size: 12px; width: 180px; }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  display: grid;
  place-items: center;
  color: var(--ink);
  position: relative;
  transition: background 0.2s;
}
.icon-btn:hover { background: var(--paper); }
.icon-btn .badge-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  background: #dc4535;
  border: 1.5px solid var(--white);
  border-radius: 50%;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--lime-soft);
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}
.user-pill { display: flex; align-items: center; gap: 10px; }
.user-pill small { display: block; font-size: 10px; color: var(--muted); }

/* Conteúdo Principal */
.main { max-width: 1280px; width: 100%; margin: 0 auto; padding: 28px 35px 80px; flex: 1; }

/* Demo Banner */
.demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eff3e4;
  color: #4b6133;
  font-size: 11px;
  font-weight: 600;
  padding: 10px 35px;
  border-bottom: 1px solid #dbe6cb;
}
.demo-bar button { font-size: 11px; text-decoration: underline; font-weight: 700; }

/* Botões */
.btn {
  padding: 11px 20px;
  background: var(--green);
  color: var(--white);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  min-height: 44px;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn.lime { background: var(--lime); color: var(--green); border: 1px solid var(--lime); }
.btn.light { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.btn.light:hover { background: var(--paper); }
.btn.ghost { background: transparent; color: var(--green); }
.btn.full { width: 100%; }

/* ========================================================
   ESTILO NETFLIX: CARROSSELS HORIZONTAIS (RAILS)
   ======================================================== */
.netflix-rail { margin-bottom: 32px; }
.rail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}
.rail-head h2 { font-size: 18px; font-weight: 800; letter-spacing: -0.4px; color: var(--ink); }
.rail-head p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.rail-head a { font-size: 12px; font-weight: 700; color: var(--green); }

.rail-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rail-track::-webkit-scrollbar { display: none; }

/* Card Vertical estilo Pôster de Filme (Screenshot 2 ProFit) */
.rail-card-poster {
  flex: 0 0 145px;
  aspect-ratio: 9/13;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--green);
  box-shadow: var(--card-shadow);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-align: left;
}
.rail-card-poster:hover { transform: scale(1.03); }
.rail-card-poster img { width: 100%; height: 100%; object-fit: cover; }
.rail-card-poster .poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(20,48,38,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  color: var(--white);
}
.rail-card-poster .poster-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--lime);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.rail-card-poster .poster-title { font-size: 14px; font-weight: 700; line-height: 1.2; }
.rail-card-poster .poster-sub { font-size: 10px; color: rgba(255,255,255,0.8); margin-top: 2px; }
.rail-card-poster .poster-play {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.rail-card-poster .poster-play svg { width: 14px; height: 14px; }

/* Card Horizontal / Bônus (Screenshot 1 & 2) */
.rail-card-wide {
  flex: 0 0 230px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: var(--card-shadow);
  text-align: left;
  transition: transform 0.2s;
}
.rail-card-wide:hover { transform: translateY(-2px); }
.rail-card-wide .card-media {
  height: 120px;
  position: relative;
  background: #eef2eb;
}
.rail-card-wide .card-media img { width: 100%; height: 100%; object-fit: cover; }
.rail-card-wide .card-media .pill-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  background: rgba(255,255,255,0.9);
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  border-radius: 6px;
  text-transform: uppercase;
}
.rail-card-wide .card-body { padding: 12px 14px; }
.rail-card-wide .card-title { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.rail-card-wide .card-sub { font-size: 11px; color: var(--muted); }

/* Card "Comece Aqui" (Screenshot 1 ProFit) */
.rail-card-guide {
  flex: 0 0 160px;
  min-height: 130px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  transition: all 0.2s;
}
.rail-card-guide:hover { border-color: var(--green); transform: translateY(-2px); }
.rail-card-guide .guide-tag { font-size: 9px; font-weight: 700; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.rail-card-guide .guide-title { font-size: 12px; font-weight: 700; color: var(--ink); margin: 6px 0; }
.rail-card-guide .guide-action { font-size: 11px; font-weight: 700; color: var(--green); display: flex; align-items: center; gap: 4px; }

/* Hero Banner Inicial (Screenshot 1) */
.hero-card {
  background: linear-gradient(135deg, #173b2f 0%, #204c3d 100%);
  border-radius: var(--radius-lg);
  color: var(--white);
  padding: 30px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 8px 30px rgba(23, 59, 47, 0.12);
}
.hero-card .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lime);
  background: rgba(203, 230, 120, 0.15);
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.hero-card h1 { font-size: 28px; font-weight: 800; line-height: 1.2; letter-spacing: -0.8px; margin-bottom: 8px; }
.hero-card p { font-size: 13px; color: rgba(255, 255, 255, 0.85); max-width: 360px; margin-bottom: 20px; }
.hero-card .hero-photo {
  position: relative;
  height: 220px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.hero-card .hero-photo img {
  max-height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

/* Widgets da Rotina Diária */
.quick-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 30px; }
.quick-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.quick-icon.green { background: #eaf3e9; color: var(--green); }
.quick-icon.blue { background: #ebf3fb; color: #2968a3; }
.quick-icon.peach { background: #fdf1e8; color: #b5611f; }
.quick-info strong { font-size: 18px; font-weight: 800; display: block; }
.quick-info small { font-size: 11px; color: var(--muted); }

/* ========================================================
   FICHA INTERATIVA SEMANAL (Screenshot 5 ProFit)
   ======================================================== */
.ficha-view { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--card-shadow); }
.ficha-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.pill-group {
  display: inline-flex;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}
.pill-group button {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.2s;
}
.pill-group button.active {
  background: var(--green);
  color: var(--white);
}

.week-select-pill {
  padding: 8px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Lista de Dias da Semana (Screenshot 5) */
.schedule-table { display: flex; flex-direction: column; gap: 8px; }
.schedule-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: background 0.15s;
}
.schedule-item:hover { background: #fafbf9; }
.schedule-item .day-title { font-size: 13px; font-weight: 700; color: var(--ink); }

.workout-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
  border: 1px solid transparent;
  transition: transform 0.15s;
}
.workout-badge:hover { transform: scale(1.02); }

/* Cores das Pílulas da Ficha (Screenshot 5) */
.workout-badge.purple { background: #f3edfc; color: #6932b8; border-color: #dfd0f7; }
.workout-badge.green { background: #eaf5e9; color: #287332; border-color: #c9e8ca; }
.workout-badge.blue { background: #ebf4fc; color: #2063a5; border-color: #c9e0f7; }
.workout-badge.pink { background: #fbebf2; color: #ad2060; border-color: #f7cbdf; }
.workout-badge.peach { background: #fdf2e8; color: #b35917; border-color: #f7d6bd; }
.workout-badge.lime { background: #eff7d7; color: #4e6b18; border-color: #d8ed9a; }
.workout-badge.muted { background: #f3f5f2; color: #78877e; border-color: #e2e8e0; font-weight: 600; }

/* ========================================================
   PLAYER DE TREINO & TELA DA AULA (Screenshot 3 & 4)
   ======================================================== */
.player-view {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.player-topbar {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}

.lesson-accordion {
  border-bottom: 1px solid var(--line);
  background: #fafbf9;
}
.lesson-item {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.lesson-item:last-child { border-bottom: none; }
.lesson-item.active { background: #f0f5ed; color: var(--green); }

/* Container do Vídeo com Overlays */
.video-wrapper {
  position: relative;
  background: #000;
  width: 100%;
  aspect-ratio: 16/9;
}
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Picture in Picture adaptação (Screenshot 3 & 4) */
.video-pip {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 110px;
  aspect-ratio: 16/10;
  background: rgba(0, 0, 0, 0.7);
  border: 1.5px solid var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  z-index: 5;
}
.video-pip img { width: 100%; height: 100%; object-fit: cover; }
.video-pip span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 8px;
  text-align: center;
  padding: 2px 0;
  font-weight: 700;
}

/* Overlay do Cronômetro Interativo (Screenshot 4) */
.timer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 33, 26, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  z-index: 10;
  animation: fadeIn 0.2s ease;
}
.timer-overlay.rest {
  background: rgba(22, 45, 36, 0.94);
}
.timer-bottle-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  color: var(--lime);
}
.timer-countdown {
  font-size: 64px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 8px;
}
.timer-msg {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 20px;
}
.timer-controls { display: flex; gap: 10px; }

/* Botão Concluir Aula (Screenshot 3) */
.lesson-actions {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.btn-complete {
  padding: 10px 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.btn-complete.done {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* Abas e Ficha de Exercícios da Aula */
.lesson-details { padding: 24px; }
.accordion-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion-header {
  padding: 14px 18px;
  background: #fafbf9;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.accordion-body { padding: 18px; background: var(--white); border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; }

.exercise-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.exercise-row:last-child { border-bottom: none; }
.exercise-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--green); flex-shrink: 0; }
.exercise-row strong { font-size: 13px; font-weight: 700; display: block; }
.exercise-row small { font-size: 11px; color: var(--muted); }

/* ========================================================
   BOTTOM NAVIGATION BAR MOBILE (Screenshot 1, 2, 3)
   ======================================================== */
.bottomnav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 60px;
  height: calc(60px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  z-index: 9999;
  box-shadow: 0 -3px 15px rgba(23, 59, 47, 0.06);
  justify-content: space-around;
  align-items: flex-start;
  padding-top: 6px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.bottomnav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: #7d8e84;
  position: relative;
  padding: 4px 10px;
}
.bottomnav a svg { width: 20px; height: 20px; }
.bottomnav a.active { color: var(--green); font-weight: 800; }
.bottomnav a.active svg { stroke-width: 2.4; }
.bottomnav .badge-num {
  position: absolute;
  top: 1px;
  right: 12px;
  background: #dc4535;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 8px;
}

/* Modais e Diálogos */
dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(600px, calc(100% - 32px));
  max-height: 90vh;
  box-shadow: var(--modal-shadow);
  color: var(--ink);
  background: var(--white);
}
dialog::backdrop { background: rgba(15, 33, 26, 0.7); backdrop-filter: blur(4px); }
.modal-head {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-size: 17px; font-weight: 800; }
.modal-body { padding: 22px; max-height: calc(90vh - 70px); overflow-y: auto; }

/* Formulários */
.field { margin-bottom: 16px; display: block; }
.field span { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 13px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--green);
  border-color: var(--green);
}

.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.password-wrap input {
  width: 100%;
  padding-right: 48px;
}
.btn-toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2;
}
.btn-toggle-pw:hover {
  color: var(--green);
}
.btn-toggle-pw svg.icon {
  width: 20px;
  height: 20px;
}

/* Toast */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 25px rgba(0,0,0,0.2);
  z-index: 100;
  display: none;
}
#toast.visible { display: block; animation: toastIn 0.25s ease; }

@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ========================================================
   TELA DE LOGIN RESPONSIVA & MOBILE-FIRST
   ======================================================== */
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--paper);
}

.login-art {
  position: relative;
  background: var(--green);
  color: var(--white);
  padding: 55px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  min-height: 100vh;
}

.login-art > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
}

.login-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 59, 47, 0.65) 0%, rgba(23, 59, 47, 0.95) 100%);
  z-index: 2;
}

.login-art .brand,
.login-art .copy {
  position: relative;
  z-index: 3;
}

.login-art .brand strong {
  color: var(--white);
}

.login-art .brand small {
  color: var(--lime);
}

.login-art h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -1px;
  max-width: 480px;
  color: var(--white);
}

.login-art p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: #dbe7e1;
  max-width: 400px;
}

.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: var(--white);
}

.login-form > div {
  width: 100%;
  max-width: 380px;
}

.login-form .eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--green);
  text-transform: uppercase;
}

.login-form h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin: 8px 0 6px;
}

.login-form .muted {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.login-form .error {
  font-size: 12px;
  font-weight: 700;
  color: #dc3545;
  margin: 6px 0 10px;
  min-height: 16px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-light);
  margin: 22px 0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.divider::before,
.divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--line);
}

/* Base Cards & Components */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--card-shadow);
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--green);
}

.empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
}
.empty svg {
  margin: 0 auto 12px;
  width: 36px;
  height: 36px;
  color: var(--muted-light);
}
.empty h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.empty p {
  font-size: 13px;
  max-width: 380px;
  margin: 0 auto;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

/* ========================================================
   RESPONSIVIDADE (Celular / Tablets / Desktop)
   ======================================================== */
@media (max-width: 860px) {
  .sidebar { display: none; }
  .shell { margin-left: 0; }
  .topbar { padding: 0 16px; height: 64px; }
  .mobile-brand { display: flex; }
  .top-title, .search, .user-pill div { display: none; }
  .main { padding: 18px 16px calc(80px + env(safe-area-inset-bottom, 0px)) !important; }
  .bottomnav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    z-index: 9999 !important;
  }

  /* Login Mobile */
  .login {
    grid-template-columns: 1fr;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
  }

  .login-art {
    min-height: 170px;
    height: 190px;
    padding: 22px 20px;
    flex-shrink: 0;
  }

  .login-art h1 {
    font-size: 20px;
    max-width: 100%;
    margin-top: 12px;
  }

  .login-art p {
    display: none;
  }

  .login-form {
    padding: 26px 20px calc(36px + env(safe-area-inset-bottom, 0px));
    flex: 1;
    align-items: flex-start;
    border-radius: 24px 24px 0 0;
    margin-top: -24px;
    position: relative;
    z-index: 10;
    box-shadow: 0 -12px 30px rgba(15, 38, 30, 0.08);
  }
    padding: 32px 20px 48px;
    flex: 1;
    align-items: flex-start;
    border-radius: 24px 24px 0 0;
    margin-top: -24px;
    position: relative;
    z-index: 10;
    box-shadow: 0 -12px 30px rgba(15, 38, 30, 0.08);
  }

  .login-form > div {
    max-width: 100%;
  }

  .hero-card {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 16px;
    margin-bottom: 24px;
  }
  .hero-card h1 { font-size: 22px; }
  .hero-card .hero-photo { display: none; }

  .quick-row { grid-template-columns: 1fr; gap: 10px; margin-bottom: 24px; }
  .quick-card { padding: 14px; }

  .rail-card-poster { flex: 0 0 130px; }
  .rail-card-wide { flex: 0 0 200px; }

  .ficha-view { padding: 16px; }
  .schedule-item { grid-template-columns: 85px 1fr; padding: 10px 12px; }
  .workout-badge { padding: 6px 10px; font-size: 11px; }

  .video-pip { width: 85px; top: 10px; left: 10px; }
  .timer-countdown { font-size: 52px; }
}
