/* ============================================================
   BASE MATERNA — Design System
   Paleta: verde-sálvia, bege, terracota, branco
   ============================================================ */

/*
  ATENÇÃO: Adicionar no <head> do HTML antes deste CSS:
  <link href="https://api.fontshare.com/v2/css?f[]=satoshi@400,500,600,700&display=swap" rel="stylesheet">
*/

/* ── Variáveis ─────────────────────────────────────────────── */
:root {
  --branco:       #FFFFFF;
  --off-white:    #FAFAF8;
  --primaria:     #B5C4B1;  /* verde-sálvia */
  --primaria-dark:#8FAD8B;
  --secundaria:   #F5F0EB;  /* bege claro */
  --texto:        #2E2E2E;
  --texto-suave:  #6B6B6B;
  --destaque:     #C4826A;  /* terracota */
  --destaque-dark:#A8614D;
  --neutro-1:     #E8E8E8;
  --neutro-2:     #EDE8E1;
  --sucesso:      #6BAE7F;
  --alerta:       #E8A930;
  --erro:         #D96B5A;

  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --radius-pill:  999px;

  --sombra-sm:    0 1px 2px oklch(0.28 0.02 100 / 0.05), 0 2px 6px oklch(0.28 0.02 100 / 0.04);
  --sombra-md:    0 2px 4px oklch(0.28 0.02 100 / 0.06), 0 6px 18px oklch(0.28 0.02 100 / 0.07);
  --sombra-lg:    0 4px 8px oklch(0.28 0.02 100 / 0.07), 0 16px 32px oklch(0.28 0.02 100 / 0.09);

  --fonte:        'Satoshi', 'Inter', sans-serif;
  --lh:           1.6;

  --max-w:        520px;
  --toque:        44px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--fonte);
  background: var(--off-white);
  color: var(--texto);
  line-height: var(--lh);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--destaque); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Tipografia ─────────────────────────────────────────────── */
h1 { font-size: clamp(24px, 6vw, 32px); font-weight: 700; line-height: 1.25; }
h2 { font-size: clamp(18px, 5vw, 24px); font-weight: 600; line-height: 1.3; }
h3 { font-size: clamp(16px, 4vw, 20px); font-weight: 600; line-height: 1.35; }
h4 { font-size: 16px; font-weight: 600; }
p  { font-size: 16px; }
small { font-size: 14px; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Páginas sem nav inferior (login/onboarding) */
.page-centered {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 48px;
}

/* Páginas com nav inferior */
.page-app {
  flex: 1;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}

/* ── Bottom Navigation ──────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 0.5px solid #EBEBEB;
  display: flex;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  z-index: 100;
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 500;
  color: #BBBBBB;
  text-decoration: none;
  padding: 2px 0;
  transition: color 0.2s;
}

.bottom-nav__item--ativo { color: #2D3A2E; }

.bottom-nav__item--ativo::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8FAD8B;
  margin: 0 auto;
}

/* ── Cartão ─────────────────────────────────────────────────── */
.card {
  background: var(--branco);
  border-radius: var(--radius-md);
  box-shadow: var(--sombra-sm);
  padding: 20px;
  margin-bottom: 16px;
}
.card--destaque {
  background: color-mix(in oklch, var(--destaque) 6%, var(--branco));
  border: 1px solid color-mix(in oklch, var(--destaque) 22%, transparent);
}
.card--primaria {
  background: color-mix(in oklch, var(--primaria) 8%, var(--branco));
  border: 1px solid color-mix(in oklch, var(--primaria) 25%, transparent);
}
.card--bege {
  background: var(--secundaria);
  box-shadow: none;
}

/* ── Botões ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--toque);
  padding: 0 24px;
  font-family: var(--fonte);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .1s;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }

.btn:focus-visible {
  outline: 2px solid var(--primaria-dark);
  outline-offset: 3px;
  border-radius: var(--radius-pill);
}

.btn-primario {
  background: var(--primaria);
  color: var(--branco);
}
.btn-primario:hover { background: var(--primaria-dark); text-decoration: none; }

.btn-destaque {
  background: var(--destaque);
  color: var(--branco);
}
.btn-destaque:hover { background: var(--destaque-dark); text-decoration: none; }

.btn-outline {
  background: transparent;
  border-color: var(--primaria);
  color: var(--primaria-dark);
}
.btn-outline:hover { background: var(--primaria); color: var(--branco); text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--texto-suave);
}
.btn-ghost:hover { background: var(--neutro-1); text-decoration: none; }

.btn-bloco {
  width: 100%;
  border-radius: var(--radius-md);
}

.btn-sm {
  min-height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

/* ── Inputs ─────────────────────────────────────────────────── */
.campo {
  margin-bottom: 18px;
}
.campo label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--texto-suave);
  margin-bottom: 6px;
}
.campo input,
.campo select,
.campo textarea {
  width: 100%;
  min-height: var(--toque);
  padding: 10px 16px;
  font-family: var(--fonte);
  font-size: 16px;
  color: var(--texto);
  background: var(--branco);
  border: 1.5px solid var(--neutro-1);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--primaria);
  box-shadow: 0 0 0 3px rgba(181,196,177,.25);
}
.campo input.erro { border-color: var(--erro); }
.campo .msg-erro {
  font-size: 13px;
  color: var(--erro);
  margin-top: 4px;
}

/* Date picker legível */
input[type="date"] { cursor: pointer; }

/* ── Barra de Progresso ─────────────────────────────────────── */
.barra-progresso {
  height: 8px;
  background: var(--neutro-1);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.barra-progresso__fill {
  height: 100%;
  background: var(--destaque);
  border-radius: var(--radius-pill);
  transition: width .4s ease;
}
.barra-progresso--primaria .barra-progresso__fill {
  background: var(--primaria);
}

/* ── Checklist ──────────────────────────────────────────────── */
.checklist { list-style: none; }
.checklist__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--neutro-1);
  transition: opacity .2s;
}
.checklist__item:last-child { border-bottom: none; }
.checklist__item--concluida { opacity: .55; }
.checklist__item--concluida .checklist__nome { text-decoration: line-through; color: var(--texto-suave); }

/* Checkbox customizado */
.checkbox {
  position: relative;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  cursor: pointer;
}
.checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.checkbox__box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid var(--neutro-1);
  background: var(--branco);
  transition: background .15s, border-color .15s;
}
.checkbox input:checked + .checkbox__box {
  background: var(--sucesso);
  border-color: var(--sucesso);
}
.checkbox__box svg { display: none; }
.checkbox input:checked + .checkbox__box svg { display: block; }

.checklist__nome {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}
.checklist__info-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--texto-suave);
  cursor: pointer;
  border-radius: 50%;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.checklist__info-btn:hover { background: var(--neutro-1); }

/* ── Nav Inferior (mobile-first) ────────────────────────────── */
.nav-inferior {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--branco);
  border-top: 1px solid var(--neutro-1);
  display: flex;
  align-items: stretch;
  z-index: 100;
  box-shadow: 0 -2px 12px rgba(0,0,0,.06);
}
.nav-inferior__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--texto-suave);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s;
}
.nav-inferior__item svg { width: 22px; height: 22px; }
.nav-inferior__item.ativo { color: var(--destaque); }
.nav-inferior__item:hover { color: var(--primaria-dark); }

/* ── Cabeçalho fixo da app ──────────────────────────────────── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--branco);
  border-bottom: 1px solid var(--neutro-1);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--sombra-sm);
}
.app-header__saudacao { font-size: 14px; color: var(--texto-suave); }
.app-header__bebe { font-size: 16px; font-weight: 700; }
.app-header__config {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--texto-suave);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: background .15s;
}
.app-header__config:hover { background: var(--neutro-1); }

/* ── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.modal-overlay.ativo {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--branco);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 24px 20px 36px;
  width: 100%;
  max-width: var(--max-w);
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .25s ease;
}
.modal-overlay.ativo .modal { transform: translateY(0); }
.modal__handle {
  width: 40px;
  height: 4px;
  background: var(--neutro-1);
  border-radius: var(--radius-pill);
  margin: 0 auto 20px;
}
.modal__titulo { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.modal__fechar {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: var(--neutro-1);
  cursor: pointer;
  color: var(--texto);
}

/* ── Tags / Badges ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}
.badge--primaria { background: var(--primaria); color: var(--branco); }
.badge--destaque { background: var(--destaque); color: var(--branco); }
.badge--neutro   { background: var(--neutro-2); color: var(--texto); }

/* ── Toast ──────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc(100% - 40px);
  max-width: 460px;
  pointer-events: none;
}
.toast {
  background: var(--texto);
  color: var(--branco);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--sombra-md);
  animation: slideUp .25s ease, fadeOut .3s ease 2.7s forwards;
}
@keyframes slideUp {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-8px); }
}
.toast--com-acao {
  display: flex;
  align-items: center;
  gap: 12px;
}
.toast__btn-desfazer {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: inherit;
  opacity: 0.85;
  padding: 0;
  text-decoration: underline;
}

/* ── Logo ───────────────────────────────────────────────────── */
.logo {
  font-size: 26px;
  font-weight: 700;
  color: var(--primaria-dark);
  letter-spacing: -.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo svg { color: var(--destaque); }

/* ── Páginas de Auth ────────────────────────────────────────── */
.auth-box {
  width: 100%;
  max-width: 420px;
}
.auth-box__logo { text-align: center; margin-bottom: 32px; }
.auth-box__tagline {
  text-align: center;
  color: var(--texto-suave);
  margin-top: 6px;
  font-size: 15px;
}
.auth-box__form { margin-top: 28px; }
.auth-links {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: var(--texto-suave);
}
.auth-links a { color: var(--destaque); font-weight: 600; }

/* ── Onboarding ─────────────────────────────────────────────── */
.onboarding-step {
  display: none;
  animation: fadeIn .3s ease;
}
.onboarding-step.ativo { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.onboarding-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.onboarding-dots__item {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neutro-1);
  transition: background .2s, width .2s;
}
.onboarding-dots__item.ativo {
  background: var(--destaque);
  width: 24px;
  border-radius: 4px;
}
.bebe-card-confirmacao {
  background: var(--secundaria);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin: 24px 0;
}
.bebe-card-confirmacao__mes {
  font-size: 48px;
  font-weight: 700;
  color: var(--destaque);
  line-height: 1;
}
.bebe-card-confirmacao__label { font-size: 14px; color: var(--texto-suave); margin-top: 4px; }
.bebe-card-confirmacao__nome { font-size: 20px; font-weight: 600; margin-top: 12px; }

/* ── Dashboard ─────────────────────────────────────────────── */
.dash-section { padding: 20px 20px 0; }
.dash-section:last-child { padding-bottom: 20px; }

.progresso-mes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.progresso-mes__titulo { font-weight: 600; font-size: 15px; }
.progresso-mes__pct { font-size: 13px; color: var(--texto-suave); }

.checklist-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.checklist-header__contagem { font-size: 13px; color: var(--texto-suave); }

.celebracao {
  text-align: center;
  padding: 16px 12px;
  background: linear-gradient(135deg, #FFF9F4 0%, #FFF3EE 100%);
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--destaque);
  font-size: 15px;
  font-weight: 500;
  color: var(--destaque-dark);
  display: none;
}
.celebracao.ativo { display: block; animation: fadeIn .4s ease; }

/* ── Conteúdo Teórico ───────────────────────────────────────── */
.tema-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--branco);
  border-radius: var(--radius-md);
  box-shadow: var(--sombra-sm);
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--texto);
  transition: box-shadow .15s;
}
.tema-card:hover { box-shadow: var(--sombra-md); text-decoration: none; }
.tema-card__icone {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--secundaria);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}
.tema-card__corpo { flex: 1; }
.tema-card__titulo { font-size: 15px; font-weight: 600; }
.tema-card__resumo { font-size: 13px; color: var(--texto-suave); margin-top: 2px; }
.tema-card__tempo { font-size: 12px; color: var(--destaque); font-weight: 500; margin-top: 4px; }

/* ── Leitura de Tema ────────────────────────────────────────── */
.leitura {
  padding: 24px 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.leitura h2 { margin-bottom: 8px; }
.leitura p  { margin-bottom: 16px; }
.leitura ul, .leitura ol { margin-bottom: 16px; padding-left: 20px; }
.leitura li { margin-bottom: 6px; font-size: 16px; }

.box-alerta {
  background: color-mix(in oklch, var(--alerta) 6%, #fff);
  border: 1px solid color-mix(in oklch, var(--alerta) 20%, transparent);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 20px 0;
  font-size: 15px;
}
.box-alerta__titulo { font-weight: 700; color: #8A5E00; margin-bottom: 6px; }

.box-dica {
  background: var(--secundaria);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 20px 0;
}
.box-dica__titulo { font-weight: 700; color: var(--primaria-dark); margin-bottom: 6px; }

/* ── Histórico / Progresso ──────────────────────────────────── */
.calendario {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin: 12px 0;
}
.calendario__cabecalho { font-size: 11px; font-weight: 600; color: var(--texto-suave); text-align: center; padding: 4px 0; }
.calendario__dia {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  background: var(--off-white);
  color: var(--texto-suave);
}
.calendario__dia--cheio { background: var(--sucesso); color: var(--branco); }
.calendario__dia--parcial { background: #A8D8B8; color: var(--branco); }
.calendario__dia--hoje { border: 2px solid var(--destaque); }
.calendario__dia--vazio { background: transparent; }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
.stat-item {
  background: var(--branco);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  box-shadow: var(--sombra-sm);
}
.stat-item__num { font-size: 32px; font-weight: 700; color: var(--destaque); }
.stat-item__label { font-size: 12px; color: var(--texto-suave); margin-top: 4px; }

/* Linha do tempo */
.timeline { padding: 8px 0; }
.timeline__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  position: relative;
}
.timeline__item::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  width: 2px;
  height: calc(100% - 20px);
  background: var(--neutro-1);
}
.timeline__item:last-child::before { display: none; }
.timeline__dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  background: var(--neutro-1);
  color: var(--texto-suave);
}
.timeline__dot--concluido { background: var(--primaria); color: var(--branco); }
.timeline__dot--atual { background: var(--destaque); color: var(--branco); }
.timeline__dot--futuro { background: var(--neutro-1); color: var(--neutro-1); border: 2px solid var(--neutro-1); }
.timeline__corpo { flex: 1; padding-top: 4px; }
.timeline__titulo { font-size: 14px; font-weight: 600; }
.timeline__sub { font-size: 12px; color: var(--texto-suave); margin-top: 2px; }

/* ── Perfil / Configurações ─────────────────────────────────── */
.config-section { padding: 20px; border-bottom: 1px solid var(--neutro-1); }
.config-section:last-child { border-bottom: none; }
.config-section__titulo { font-size: 13px; font-weight: 700; color: var(--texto-suave); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; }
.config-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--off-white);
}
.config-item:last-child { border-bottom: none; }
.config-item__label { font-size: 15px; }
.config-item__sub { font-size: 13px; color: var(--texto-suave); margin-top: 2px; }

/* Toggle switch */
.toggle {
  position: relative;
  width: 48px;
  height: 26px;
  cursor: pointer;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle__slider {
  position: absolute;
  inset: 0;
  background: var(--neutro-1);
  border-radius: var(--radius-pill);
  transition: background .2s;
}
.toggle__slider::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  background: var(--branco);
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: var(--sombra-sm);
}
.toggle input:checked + .toggle__slider { background: var(--primaria); }
.toggle input:checked + .toggle__slider::after { transform: translateX(22px); }

/* Foto do bebê */
.foto-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.foto-upload__circulo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--secundaria);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid var(--primaria);
}
.foto-upload__circulo img { width: 100%; height: 100%; object-fit: cover; }
.foto-upload__btn { font-size: 13px; color: var(--destaque); cursor: pointer; font-weight: 600; }

/* ── Estados Especiais ──────────────────────────────────────── */
.estado-especial {
  text-align: center;
  padding: 60px 24px;
}
.estado-especial__icone { font-size: 56px; margin-bottom: 20px; }
.estado-especial__titulo { margin-bottom: 8px; }
.estado-especial__texto { color: var(--texto-suave); margin-bottom: 24px; }

/* Banner de retorno */
.banner-retorno {
  background: var(--secundaria);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--texto-suave);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 20px 16px;
}
.banner-retorno svg { color: var(--primaria); flex-shrink: 0; }

/* ── Animação de celebração ─────────────────────────────────── */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}
.pulse { animation: pulse .6s ease 2; }

/* ── Detalhe da Tarefa (modal) ──────────────────────────────── */
.tarefa-detalhe__tempo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--secundaria);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 13px;
  color: var(--texto-suave);
  margin-bottom: 16px;
}
.tarefa-detalhe__secao {
  margin-bottom: 20px;
}
.tarefa-detalhe__secao h4 {
  color: var(--primaria-dark);
  margin-bottom: 6px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.tarefa-detalhe__secao p { font-size: 15px; }
.tarefa-detalhe__acoes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.link-pular {
  text-align: center;
  font-size: 13px;
  color: var(--texto-suave);
  cursor: pointer;
}
.link-pular:hover { color: var(--texto); }

/* ── Utilitários ────────────────────────────────────────────── */
.txt-centro { text-align: center; }
.txt-suave  { color: var(--texto-suave); }
.txt-destaque { color: var(--destaque); }
.txt-primaria { color: var(--primaria-dark); }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-auto { margin-top: auto; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fs-14  { font-size: 14px; }
.fs-13  { font-size: 13px; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ── Acessibilidade: Redução de movimento ───────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Responsividade (tablet) ────────────────────────────────── */
@media (min-width: 640px) {
  .container { padding: 0 24px; }
  .page-centered { padding: 48px 24px 64px; }
  .card { padding: 24px; }
  .dash-section { padding: 24px 24px 0; }
  .nav-inferior { justify-content: center; gap: 0; }
  .nav-inferior__item { max-width: 100px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* ================================================================
   DASHBOARD PREMIUM — Redesign Emocional
   Inspirado em Headspace, Calm, Notion, Apple Health
   ================================================================ */

/* ── Hero Greeting ─────────────────────────────────────────── */
.hero-dash {
  position: relative;
  overflow: hidden;
  background: var(--branco);
  padding: 16px 20px 22px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.hero-dash__blob {
  position: absolute;
  top: -70px;
  right: -50px;
  width: 240px;
  height: 240px;
  border-radius: 60% 40% 70% 50% / 50% 70% 40% 60%;
  background: radial-gradient(ellipse at center,
    rgba(181,196,177,0.22) 0%,
    rgba(245,240,235,0.10) 55%,
    transparent 80%);
  pointer-events: none;
}

.hero-dash__topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.hero-dash__logo-mini {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--primaria-dark);
  opacity: 0.6;
}

.hero-dash__config {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--off-white);
  color: var(--texto-suave);
  border: 1px solid var(--neutro-1);
  transition: background .15s;
  flex-shrink: 0;
}
.hero-dash__config:hover { background: var(--neutro-1); text-decoration: none; }

.hero-dash__saudacao-label {
  font-size: 13px;
  color: var(--texto-suave);
  margin-bottom: 7px;
  font-weight: 400;
}

.hero-dash__frase {
  font-size: 19px;
  font-weight: 700;
  color: var(--texto);
  line-height: 1.32;
  letter-spacing: -0.3px;
  margin-bottom: 18px;
  max-width: 300px;
}

.hero-dash__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  background: var(--off-white);
  color: var(--texto-suave);
  border: 1px solid var(--neutro-1);
  letter-spacing: 0.1px;
}

.hero-tag__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Card Premium do Mês ──────────────────────────────────── */
.card-mes-premium {
  position: relative;
  background: var(--branco);
  border-radius: 20px;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.04),
    0 6px 24px rgba(0,0,0,0.07),
    0 0 0 1px rgba(0,0,0,0.035);
  padding: 22px 22px 20px;
  overflow: hidden;
  margin-bottom: 0;
}

.card-mes-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(148deg,
    rgba(245,240,235,0.60) 0%,
    rgba(255,255,255,0) 52%);
  pointer-events: none;
  border-radius: 20px;
}

.card-mes-premium__watermark {
  position: absolute;
  right: 10px;
  top: -14px;
  font-size: 128px;
  font-weight: 800;
  color: var(--texto);
  opacity: 0.042;
  line-height: 1;
  pointer-events: none;
  letter-spacing: -5px;
  user-select: none;
  font-variant-numeric: tabular-nums;
}

.card-mes-premium__ilustracao {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-55%);
  pointer-events: none;
  opacity: 0.48;
}

.card-mes-premium__selo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  background: rgba(181,196,177,0.14);
  color: var(--primaria-dark);
  border: 1px solid rgba(181,196,177,0.28);
  margin-bottom: 11px;
}

.card-mes-premium__tema {
  position: relative;
  font-size: 22px;
  font-weight: 700;
  color: var(--texto);
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin-bottom: 7px;
  padding-right: 74px;
}

.card-mes-premium__sub {
  position: relative;
  font-size: 13px;
  color: var(--texto-suave);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.card-mes-premium__sub-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--texto-suave);
  opacity: 0.35;
  flex-shrink: 0;
}

.card-mes-premium__progresso { position: relative; }

/* ── Barra de Progresso Premium (mês) ────────────────────── */
.barra-premium {
  height: 7px;
  background: rgba(0,0,0,0.07);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.barra-premium__fill {
  height: 100%;
  border-radius: var(--radius-pill);
  position: relative;
  overflow: hidden;
  transition: width .7s cubic-bezier(.4,0,.2,1);
}

.barra-premium__fill::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 50%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,0.50),
    transparent);
  animation: barra-shimmer 2.8s ease-in-out infinite;
}

@keyframes barra-shimmer {
  0%   { left: -60%; }
  100% { left: 120%; }
}

.barra-premium__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.barra-premium__pct {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--texto-suave);
}

.barra-premium__label {
  font-size: 10px;
  color: var(--texto-suave);
  opacity: 0.45;
  letter-spacing: 0.2px;
}

/* ── Barra do Dia (checklist) ────────────────────────────── */
.barra-dia-premium {
  height: 5px;
  background: rgba(0,0,0,0.06);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 14px;
}

.barra-dia-premium__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--destaque) 0%, #D4967E 100%);
  border-radius: var(--radius-pill);
  position: relative;
  overflow: hidden;
  transition: width .5s cubic-bezier(.4,0,.2,1);
}

.barra-dia-premium__fill::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 50%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,0.52),
    transparent);
  animation: barra-shimmer 2.2s ease-in-out infinite;
}

/* ── Separador de Seção ───────────────────────────────────── */
.secao-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.secao-label span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--texto-suave);
  white-space: nowrap;
  opacity: 0.5;
}

.secao-label__linha {
  flex: 1;
  height: 1px;
  background: var(--neutro-1);
}

/* ── Header Checklist Premium ────────────────────────────── */
.checklist-dia-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.checklist-dia-header__esq h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 2px;
}

.checklist-dia-header__data {
  font-size: 12px;
  color: var(--texto-suave);
  margin-bottom: 3px;
}

.checklist-dia-header__contagem {
  font-size: 12px;
  color: var(--texto-suave);
}

/* Arco de progresso circular */
.arco-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.arco-wrap svg {
  width: 52px;
  height: 52px;
}

.arco-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* ── Banner Retorno Premium ──────────────────────────────── */
.banner-retorno-premium {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border-radius: var(--radius-md);
  background: rgba(181,196,177,0.10);
  border: 1px solid rgba(181,196,177,0.22);
  font-size: 13px;
  color: var(--primaria-dark);
  font-weight: 500;
}

.banner-retorno-premium svg { flex-shrink: 0; opacity: 0.65; }

/* ── Celebração (base — convertido de #id para .class) ──── */
.celebracao-msg {
  background: linear-gradient(135deg,
    rgba(196,130,106,0.07) 0%,
    rgba(181,196,177,0.07) 100%);
  border: 1px solid rgba(196,130,106,0.17);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--destaque-dark);
  text-align: center;
  display: none;
  margin-bottom: 14px;
}
.celebracao-msg.ativo { display: block; animation: fadeIn .4s ease; }
.celebracao-msg.pulse { animation: pulse .6s ease 2, fadeIn .4s ease; }
