@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

:root {
  --bg: #FCFAF9;
  --gold: #C9A24E;
  --gold-dark: #A9843A;
  --rosa: #E9A3B6;
  --rosa-strong: #D4607E;
  --card: #FFFFFF;
  --text: #1C1A1B;
  --text-light: #6E6468;
  --border: #EEE6E9;
  --azul: #5BA6CF;
  --amarelo: #D4A63A;
  --lilas: #9B6BD1;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28, 26, 27, 0.04), 0 0 0 1px rgba(28, 26, 27, 0.04);
  --nav-h: 66px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

.hidden { display: none !important; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 15px; }

/* ============ Header ============ */
.app-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: var(--card);
  box-shadow: none; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  gap: 10px;
}
.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700; font-size: 15px; line-height: 1.25;
  display: flex; align-items: center; gap: 8px;
}
.logo .logo-icon { flex: 0 0 auto; color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.avatar-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rosa), var(--rosa-strong));
  color: var(--card); font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--border);
}
.menu-pop {
  position: absolute; right: 16px; top: calc(100% + 8px);
  background: var(--card); border-radius: 14px; box-shadow: 0 8px 24px rgba(28,26,27,0.12);
  padding: 8px; min-width: 170px; z-index: 60; text-align: left;
}
.menu-pop .pop-info { padding: 8px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu-pop .pop-info strong { display: block; font-size: 14px; }
.menu-pop .pop-info span { font-size: 12px; color: var(--text-light); }
.menu-pop button { display: block; width: 100%; text-align: left; padding: 10px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.menu-pop button:hover { background: var(--bg); }

.pill-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--card); font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 4px 10px rgba(169, 132, 58, 0.2);
}
.pill-btn.ghost {
  background: var(--card); color: var(--rosa-strong);
  border: 2px solid var(--rosa); box-shadow: none;
}

/* ============ Pages layout ============ */
.pages {
  padding-top: 70px;
  padding-bottom: calc(var(--nav-h) + 28px + env(safe-area-inset-bottom));
  max-width: 520px; margin: 0 auto; padding-left: 16px; padding-right: 16px;
}
.page-title { font-family: 'Playfair Display', Georgia, serif; font-size: 24px; font-weight: 700; }
.page-sub { color: var(--text-light); font-size: 14px; margin: 4px 0 18px; }

.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px;
}

/* ============ Home ============ */
.greeting { font-size: 21px; font-weight: 700; margin-bottom: 16px; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--rosa-strong); margin-bottom: 10px;
}
.stage-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.stage-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--card); font-weight: 700; font-size: 22px; flex: 0 0 auto;
}
.stage-title { font-size: 19px; font-weight: 700; }
.stage-desc { font-size: 13px; color: var(--text-light); margin-top: 2px; }
.rotina-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rotina-row .label { font-size: 13px; font-weight: 600; color: var(--text-light); }
.status-chip {
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.status-chip.pendente { background: #F7EEDA; color: #8A6A1E; }
.status-chip.concluido { background: #DFF2E5; color: #1E7A44; }

.progress-bar { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--rosa), var(--rosa-strong)); transition: width .4s; }
.progress-fill.gold { background: linear-gradient(90deg, #F0C060, var(--gold-dark)); }

.big-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--card); font-weight: 700; font-size: 16px;
  padding: 16px; border-radius: 12px; margin-top: 14px;
  box-shadow: 0 6px 16px rgba(169, 132, 58, 0.22);
}
.big-btn.done { background: linear-gradient(135deg, #4CAF7D, #2E8B57); box-shadow: 0 6px 16px rgba(46, 139, 87, 0.35); }
.big-btn:active { transform: scale(0.98); }

.dica-card { display: flex; gap: 14px; align-items: flex-start; }
.dica-card p { font-size: 14px; line-height: 1.5; }
.lamp-icon {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  background: #F7EEDA; color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
}

.semana-count { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.semana-count .label { font-size: 13px; font-weight: 600; color: var(--text-light); }
.semana-count .num { font-size: 22px; font-weight: 700; color: var(--rosa-strong); }
.semana-row { display: flex; justify-content: space-between; margin-top: 14px; }
.dia-circ {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  background: var(--bg); color: var(--text-light);
}
.dia-circ.done { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--card); }
.dia-circ.missed { background: #F8E3E3; color: #C0392B; }
.dia-circ.today { background: linear-gradient(135deg, var(--rosa), var(--rosa-strong)); color: var(--card); box-shadow: 0 4px 10px rgba(212, 96, 126, 0.3); }

/* ============ Evolução ============ */
.upload-box {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 34px 20px; border: 2px dashed var(--rosa); border-radius: var(--radius);
  background: #FDFBFA; color: var(--rosa-strong); font-weight: 700; font-size: 15px;
}
.upload-box small { font-weight: 500; color: var(--text-light); }
.upload-box:active { background: #F9EEF2; }

.hint-row { display: flex; gap: 14px; align-items: flex-start; }
.hint-row p { font-size: 14px; line-height: 1.5; }
.star-icon {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  background: #F9EEF2; color: var(--rosa-strong);
  display: flex; align-items: center; justify-content: center;
}

.galeria { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.foto-item { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.foto-item img { width: 100%; display: block; aspect-ratio: 3/4; object-fit: cover; }
.foto-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(51,51,51,0.75));
  color: var(--card); font-size: 12px; font-weight: 600; padding: 20px 10px 8px;
  display: flex; align-items: center; justify-content: space-between;
}
.foto-del { color: var(--card); opacity: .85; padding: 4px; }

/* ============ Cronograma ============ */
.filtros { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip-filter {
  font-size: 12px; font-weight: 700; padding: 8px 14px; border-radius: 999px;
  background: var(--card); color: var(--text-light);
  border: 2px solid var(--border); box-shadow: 0 2px 6px rgba(51,51,51,0.05);
}
.chip-filter.active { border-color: transparent; color: var(--card); }
.chip-filter.hidratacao { background: var(--azul); }
.chip-filter.nutricao { background: var(--amarelo); }
.chip-filter.reconstrucao { background: var(--rosa); }
.chip-filter.umectacao { background: var(--lilas); }
.chip-filter.hidratacao.active { box-shadow: 0 4px 12px rgba(79, 168, 213, 0.5); }
.chip-filter.nutricao.active { box-shadow: 0 4px 12px rgba(229, 166, 44, 0.5); }
.chip-filter.reconstrucao.active { box-shadow: 0 4px 12px rgba(232, 145, 168, 0.55); }
.chip-filter.umectacao.active { box-shadow: 0 4px 12px rgba(155, 107, 209, 0.5); }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-title { font-weight: 700; font-size: 16px; text-transform: capitalize; }
.cal-nav { width: 36px; height: 36px; border-radius: 50%; background: var(--bg); color: var(--rosa-strong); display: flex; align-items: center; justify-content: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-weekday { text-align: center; font-size: 10px; font-weight: 700; color: var(--text-light); padding: 6px 0; }
.cal-cell {
  aspect-ratio: 0.86; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  position: relative;
}
.cal-cell .num { font-size: 11px; font-weight: 700; color: var(--text); }
.cal-cell .letra {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--card);
}
.cal-cell.off { background: transparent; border-color: transparent; }
.cal-cell.off .num { color: #D6CFD2; }
.cal-cell.vazio { background: #F4EFF0; border-color: #F4EFF0; }
.cal-cell.vazio .num { color: #C9C2C5; }
.cal-cell.hoje { border: 2px solid var(--gold); box-shadow: 0 4px 12px rgba(232, 168, 56, 0.35); }
.cal-cell.premium .letra::after {
  content: '★'; position: absolute; top: -6px; right: -4px; font-size: 9px; color: var(--gold-dark);
}
.cal-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cal-legend span { font-size: 10px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.cal-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* ============ Comunidade ============ */
.comu-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.comu-top .title-group .page-sub { margin-bottom: 0; }
.comu-counter { font-size: 13px; font-weight: 700; color: var(--rosa-strong); margin: 0 0 14px; }

.receita-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.receita-head .avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--rosa), var(--rosa-strong));
  color: var(--card); font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.head-info { flex: 1 1 auto; min-width: 0; }
.autor-row { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; }
.autor-row svg { color: #3897F0; flex: 0 0 auto; }
.categoria-tag { font-size: 11px; font-weight: 700; color: var(--rosa-strong); }
.like-btn {
  display: flex; align-items: center; gap: 5px; flex: 0 0 auto;
  font-size: 13px; font-weight: 700; color: var(--text-light);
  padding: 6px 10px; border-radius: 999px; background: var(--bg);
}
.like-btn.liked { color: #D4607E; background: #F9EEF2; }
.like-btn svg { flex: 0 0 auto; }
.liked-heart { fill: #D4607E; }

.receita-titulo { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.tempo-tag { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--text-light); margin-bottom: 14px; }

.lista-ingredientes, .lista-passos { margin: 0 0 14px 18px; }
.lista-ingredientes li { font-size: 14px; line-height: 1.6; margin-bottom: 4px; }
.lista-passos li { font-size: 14px; line-height: 1.6; margin-bottom: 10px; }

.dica-ouro {
  background: #F7EEDA; border: 1px solid #EBDDBA; border-radius: 14px;
  padding: 12px 14px; margin-bottom: 4px;
}
.dica-ouro strong { display: block; font-size: 11px; letter-spacing: 0.1em; color: #8A6A1E; margin-bottom: 4px; }
.dica-ouro p { font-size: 13px; line-height: 1.5; color: #6F5618; }

/* ============ Assinatura ============ */
.sub-hero { text-align: center; padding: 26px 18px; }
.sub-hero .crown-big { color: var(--gold); margin-bottom: 10px; }
.sub-hero .sub-title { font-family: 'Playfair Display', Georgia, serif; font-size: 26px; font-weight: 700; }
.sub-hero .sub-desc { color: var(--text-light); font-size: 14px; margin-top: 6px; }

.aviso-gratis { display: flex; gap: 12px; align-items: center; background: #F9EEF2; border-radius: 14px; padding: 14px; margin-bottom: 16px; }
.aviso-gratis p { font-size: 13px; line-height: 1.5; }
.aviso-gratis p strong { display: block; }

.plano-premium {
  background: linear-gradient(160deg, #F7EEDA 0%, #FBE4EC 60%, #F9EEF2 100%);
  border: 1px solid #EBDDBA;
  padding: 22px; text-align: center;
}
.plano-premium .plano-label {
  display: inline-block; background: rgba(232, 168, 56, 0.18); color: #8A6A1E;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 12px;
}
.plano-preco { font-size: 34px; font-weight: 700; color: var(--gold-dark); }
.plano-preco span { font-size: 15px; color: var(--text-light); font-weight: 600; }
.plano-premium .plano-texto { font-size: 13px; line-height: 1.55; color: #5C5357; margin: 10px 0 18px; }

.beneficios { list-style: none; text-align: left; margin-bottom: 6px; }
.beneficios li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid rgba(232, 168, 56, 0.25); }
.beneficios .ben-icon {
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto;
  background: rgba(232, 168, 56, 0.2); color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
}
.beneficios strong { display: block; font-size: 14px; }
.beneficios small { font-size: 12px; color: #5C5357; line-height: 1.45; }

.fine-text { text-align: center; font-size: 12px; color: var(--text-light); margin: 14px 0; }
.link-liberar {
  display: block; text-align: center; color: var(--rosa-strong);
  font-weight: 700; text-decoration: underline; width: 100%; font-size: 14px;
}

/* ============ Lock ============ */
.lock-view { text-align: center; padding: 40px 24px; }
.lock-view .crown-big { color: var(--gold); margin-bottom: 12px; }
.lock-view h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 24px; }
.lock-view p { color: var(--text-light); font-size: 14px; line-height: 1.55; margin: 10px 0 20px; }

/* ============ Bottom nav ============ */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: var(--card); box-shadow: none; border-top: 1px solid var(--border);
  display: flex; justify-content: space-around;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--text-light); font-size: 10px; font-weight: 700;
  padding: 8px 0;
}
.nav-item.active { color: var(--rosa-strong); }
.nav-item.active svg { filter: drop-shadow(0 2px 4px rgba(224, 106, 140, 0.4)); }

/* ============ Toast ============ */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px); transform: translateX(-50%) translateY(20px);
  background: rgba(51, 51, 51, 0.92); color: var(--card);
  padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: all .3s; z-index: 100;
  max-width: 85vw; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ Modal ============ */
.modal-back {
  position: fixed; inset: 0; background: rgba(51, 51, 51, 0.5); z-index: 80;
  display: flex; align-items: flex-end; justify-content: center;
}
.modal-card {
  background: var(--card); width: 100%; max-width: 520px;
  border-radius: 24px 24px 0 0; padding: 22px 20px 30px;
  max-height: 88vh; overflow-y: auto;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 20px; }
.modal-close { width: 32px; height: 32px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--text); }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px; border: 1.5px solid var(--border);
  border-radius: 12px; background: #FFFBFC; color: var(--text); outline: none;
}
.field textarea { resize: vertical; min-height: 70px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rosa); }

/* ============ Auth ============ */
#auth-view {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.auth-card {
  background: var(--card); border-radius: 28px; box-shadow: var(--shadow);
  padding: 34px 26px; width: 100%; max-width: 400px; text-align: center;
}
.auth-crown { color: var(--gold); margin-bottom: 8px; }
.auth-card h1 { font-family: 'Playfair Display', Georgia, serif; font-size: 24px; line-height: 1.3; }
.auth-sub { color: var(--text-light); font-size: 14px; margin: 10px 0 26px; }
#auth-form { text-align: left; }
.auth-form-error { color: #C0392B; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.submit-btn {
  width: 100%; background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--card); font-weight: 700; font-size: 16px;
  padding: 16px; border-radius: 16px; margin-top: 6px;
  box-shadow: 0 6px 16px rgba(169, 132, 58, 0.22);
}
.ghost-btn {
  width: 100%; background: var(--card); color: var(--rosa-strong); font-weight: 700; font-size: 14px;
  padding: 14px; border-radius: 16px; border: 2px solid var(--rosa); margin-top: 12px;
}
.auth-switch { text-align: center; font-size: 14px; margin-top: 18px; }
.auth-switch a { color: var(--rosa-strong); font-weight: 700; text-decoration: underline; cursor: pointer; }

/* Perfil pop dentro do header precisa de âncora */
.app-header { position: fixed; }
.header-wrap { position: relative; }

.like-btn.liked svg { fill:#D4607E; stroke:#D4607E; }

#init-error { margin: 80px auto 0; max-width: 520px; background: #F8E3E3; color: #C0392B; font-weight: 700; padding: 14px 18px; border-radius: 14px; font-size: 14px; }

/* Teste de porosidade (quiz) */
.quiz-entry { border: 1.5px dashed #E9A3B6; background: #FAF4F6; }
.quiz-entry:active { background: #F7E4EA; }
.quiz-modal { padding: 22px 20px 24px; }
.quiz-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.quiz-progress span { font-weight: 800; font-size: 13px; color: #C2567A; }
.quiz-bar { flex: 1; height: 6px; background: #EEE6E9; border-radius: 6px; overflow: hidden; }
.quiz-bar div { height: 100%; background: #E9A3B6; border-radius: 6px; transition: width .25s; }
.quiz-pergunta { font-size: 17px; margin-bottom: 16px; line-height: 1.45; }
.quiz-opts { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt { text-align: left; background: #F8F3F4; border: 1.5px solid #ECE2E6; border-radius: 14px; padding: 14px 16px; font-size: 14.5px; font-weight: 600; color: #2A2628; }
.quiz-opt:active { background: #F7E4EA; border-color: #E9A3B6; }
.quiz-result-badge { display: inline-block; background: #F3DDE4; color: #C2567A; font-weight: 800; font-size: 13px; letter-spacing: 1px; padding: 6px 16px; border-radius: 20px; margin-bottom: 12px; }
.quiz-titulo { font-size: 18px; margin-bottom: 10px; }
.quiz-texto { font-size: 14.5px; color: #6E6468; line-height: 1.55; margin-bottom: 16px; }
.quiz-semana { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; margin-bottom: 18px; }
.quiz-dia { background: #FAF4F6; border-radius: 12px; padding: 10px 6px; text-align: center; }
.quiz-dia b { display: block; font-size: 12px; color: #C2567A; margin-bottom: 2px; }
.quiz-dia span { font-size: 11.5px; font-weight: 700; color: #2A2628; }
.quiz-dia.descanso { background: #F4F1F2; }
.quiz-dia.descanso span { color: #9A9296; }
.cron-top { margin-bottom: 14px; border-left: 4px solid #E9A3B6; }
.cron-titulo { font-size: 17px; margin: 8px 0 6px; }
.cron-texto { font-size: 14px; color: #6E6468; line-height: 1.5; margin-bottom: 12px; }
.link-liberar { background: none; border: none; color: #C2567A; font-weight: 800; font-size: 13.5px; cursor: pointer; padding: 0; }

.auth-suporte { margin-top: 10px; font-size: 13px; color: #8A8286; }
.auth-suporte a { color: #C2567A; font-weight: 800; }

.db-status { font-size: 12px; text-align: center; margin-bottom: 8px; opacity: 0.9; }

.greeting-email { font-size: 12px; color: #888; margin: -6px 0 10px 4px; }

/* ============ Teste do copo guiado ============ */
.copo-modal { max-height: 92vh; }
.copo-hero { display: flex; justify-content: center; margin: 4px 0 14px; }
.copo-hero-menor { margin: 0 0 10px; }
.copo-svg { overflow: visible; }
.copo-lead { font-size: 15.5px; line-height: 1.5; color: #2A2628; text-align: center; margin-bottom: 16px; }
.copo-lead b { color: #C2567A; }
.copo-lista { display: flex; flex-direction: column; gap: 10px; }
.copo-item { display: flex; gap: 12px; align-items: flex-start; background: #FAF4F6; border-radius: 14px; padding: 12px 14px; }
.copo-item b { display: block; font-size: 14.5px; color: #1C1A1B; }
.copo-item small { display: block; font-size: 12.5px; color: #6E6468; line-height: 1.4; margin-top: 2px; }
.copo-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #F3DDE4; color: #C2567A; font-weight: 900; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.copo-pular { display: block; width: 100%; text-align: center; margin-top: 14px; }
.copo-timer { position: relative; width: 118px; height: 118px; margin: 0 auto 10px; }
.copo-relogio { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', Georgia, serif; font-size: 30px; font-weight: 700; color: #1C1A1B; font-variant-numeric: tabular-nums; }
.copo-centro { text-align: center; }
.copo-dica { margin-top: 16px; font-size: 13px; line-height: 1.5; color: #6E6468; background: #F8F3F4; border-radius: 12px; padding: 12px 14px; }
.copo-dica b { color: #C2567A; }
.copo-opcoes { display: flex; flex-direction: column; gap: 10px; }
.copo-opcao { display: flex; align-items: center; gap: 14px; text-align: left; background: #F8F3F4; border: 1.5px solid #ECE2E6; border-radius: 16px; padding: 10px 14px 10px 10px; cursor: pointer; }
.copo-opcao:active { background: #F7E4EA; border-color: #E9A3B6; }
.copo-opcao b { display: block; font-size: 15px; color: #1C1A1B; }
.copo-opcao small { display: block; font-size: 12.5px; color: #6E6468; line-height: 1.4; margin-top: 2px; }
.copo-opcao .copo-svg { flex: none; }
.copo-resultado { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.copo-copo-texto { font-size: 13.5px; color: #6E6468; line-height: 1.45; }

/* posição do fio dentro do copo */
.copo-fio { transform-box: view-box; transform-origin: 60px 0; }
.copo-fio-acima { transform: translate(0, 10px) rotate(90deg) translate(0, -22px); }
.copo-fio-topo  { transform: translate(0, 56px); animation: copo-boia 2.6s ease-in-out infinite; }
.copo-fio-meio  { transform: translate(0, 100px) rotate(-14deg); animation: copo-boia 3.2s ease-in-out infinite; }
.copo-fio-fundo { transform: translate(0, 140px); }
.copo-seta { animation: copo-seta 1.4s ease-in-out infinite; }
@keyframes copo-boia { 0%, 100% { transform: translate(0, 56px) rotate(0deg); } 50% { transform: translate(0, 59px) rotate(2deg); } }
.copo-fio-meio { animation-name: copo-boia-meio; }
@keyframes copo-boia-meio { 0%, 100% { transform: translate(0, 100px) rotate(-14deg); } 50% { transform: translate(0, 104px) rotate(-10deg); } }
@keyframes copo-seta { 0%, 100% { transform: translateY(0); opacity: .9; } 50% { transform: translateY(5px); opacity: .5; } }

/* ============ Visual 2026-10: cabeçalho, navegação, boas-vindas, início ============ */
.logo .logo-icon {
  width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #F7E4EA, #F7EEDA); color: var(--gold-dark);
}
.logo { font-size: 14.5px; }
.nav-item { position: relative; transition: color .2s; }
.nav-item.active::before {
  content: ''; position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 30px; border-radius: 999px; background: #F9EEF2; z-index: -1;
}
.nav-item svg { position: relative; z-index: 1; }
body.deslogada .bottom-nav { display: none; }
body.deslogada .pages { padding-bottom: 40px; }

.page > .card, .page > .bv, .page > .home-top, .page > .copo-card { animation: sobe .35s ease backwards; }
.page > .card:nth-child(2) { animation-delay: .04s; }
.page > .card:nth-child(3) { animation-delay: .08s; }
.page > .card:nth-child(4) { animation-delay: .12s; }
@keyframes sobe { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Boas-vindas */
.bv { text-align: center; padding-top: 6px; }
.bv-arte { width: 100%; max-width: 320px; height: auto; display: block; margin: 0 auto 6px; }
.bv-hero h1 { font-family: 'Playfair Display', Georgia, serif; font-size: 27px; line-height: 1.22; color: #1C1A1B; letter-spacing: -0.3px; }
.bv-hero h1 em { font-style: italic; color: var(--rosa-strong); }
.bv-hero p { font-size: 15px; line-height: 1.55; color: #6E6468; margin: 12px auto 22px; max-width: 320px; }
.bv-lista { display: flex; flex-direction: column; gap: 10px; text-align: left; margin-bottom: 8px; }
.bv-item { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.bv-ico { flex: none; width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.bv-item b { display: block; font-size: 15px; color: #1C1A1B; }
.bv-item small { display: block; font-size: 12.5px; color: #6E6468; line-height: 1.4; margin-top: 1px; }
.bv-micro { font-size: 12.5px; color: #8A8286; font-weight: 600; margin: 12px 0 6px; }
.auth-back { display: inline-flex; align-items: center; gap: 2px; color: #C2567A; font-weight: 700; font-size: 14px; margin-bottom: 6px; }

/* Início */
.home-top { margin-bottom: 14px; }
.home-data { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #C2567A; margin-bottom: 2px; }
.home-top .greeting { font-family: 'Playfair Display', Georgia, serif; font-size: 26px; margin-bottom: 8px; }
.trial-pill { display: inline-flex; align-items: center; gap: 6px; background: #F7EEDA; color: #8A6A1E; font-size: 12.5px; font-weight: 800; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.etapa-card { background: linear-gradient(180deg, var(--t-bg) 0%, #FFFFFF 62%); border: 1px solid var(--t-bg); }
.etapa-card .stage-icon { background: var(--t-cor); box-shadow: 0 6px 14px rgba(51, 51, 51, 0.14); }
.etapa-card .stage-title { font-family: 'Playfair Display', Georgia, serif; font-size: 21px; }
.etapa-descanso { font-size: 14px; color: #6E6468; line-height: 1.5; margin-top: 4px; }
.link-suave { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; color: #C2567A; font-weight: 800; font-size: 13.5px; }

/* Cartão do teste do copo */
.copo-card {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 14px 14px 10px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FAF4F6 100%); border: 1.5px solid #F3DDE4;
}
.copo-card .copo-svg { flex: none; }
.copo-card-txt { flex: 1; min-width: 0; }
.copo-card-txt .section-label { margin-bottom: 3px; }
.copo-card-txt b { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 18px; color: #1C1A1B; }
.copo-card-txt small { display: block; font-size: 12.5px; color: #6E6468; line-height: 1.4; margin-top: 2px; }
.copo-card-seta { color: #D4607E; flex: none; }

/* Semana personalizada com ícones */
.quiz-dia { background: var(--t-bg, #FAF4F6); }
.quiz-dia i { display: flex; justify-content: center; color: var(--t-cor, #C2567A); margin: 2px 0 3px; }
.quiz-dia.descanso i { color: #A39BA0; }

/* Calendário: células clicáveis e dias feitos */
button.cal-cell { font-family: inherit; cursor: pointer; width: 100%; }
.cal-cell.feito::after {
  content: '\2713'; position: absolute; top: 2px; right: 3px; font-size: 9px; font-weight: 900; color: #1E7A44;
}
.cal-cell.feito { background: #F2FAF5; border-color: #CFEBD9; }
.dia-head { display: flex; align-items: center; gap: 14px; background: var(--t-bg); border-radius: 16px; padding: 14px; margin-bottom: 6px; }
.dia-head .stage-icon { background: var(--t-cor); }
.dia-receitas { display: flex; flex-direction: column; gap: 8px; }
.dia-receita { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; background: #F8F3F4; border: 1.5px solid #ECE2E6; border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 700; color: #1C1A1B; }
.dia-receita small { color: #8A8286; font-weight: 700; font-size: 12px; white-space: nowrap; }

/* Evolução: antes e depois */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.compare figure { margin: 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: #F4EFF0; }
.compare img { width: 100%; display: block; aspect-ratio: 3/4; object-fit: cover; }
.compare figcaption { font-size: 12px; font-weight: 800; color: #C2567A; text-align: center; padding: 8px 6px; background: #FAF4F6; }
.compare-note { text-align: center; font-size: 13px; color: #6E6468; font-weight: 600; margin-top: 12px; }

/* Comunidade: busca e faixa da receita */
.comu-top { align-items: flex-start; margin-bottom: 14px; }
.busca { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1.5px solid var(--border); border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; color: #8A8286; box-shadow: var(--shadow); }
.busca input { flex: 1; border: none; outline: none; background: none; font-size: 15px; color: var(--text); min-width: 0; }
.busca input::-webkit-search-cancel-button { -webkit-appearance: none; }
.receita { padding-top: 0; overflow: hidden; }
.receita-band { display: flex; align-items: center; justify-content: space-between; margin: 0 -18px 14px; padding: 10px 18px; background: var(--t-bg); color: var(--t-cor); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.receita-band-tipo, .receita-band-tempo { display: inline-flex; align-items: center; gap: 6px; }
.receita-band-tempo { color: #6E6468; }
.receita .receita-titulo { font-family: 'Playfair Display', Georgia, serif; font-size: 19px; line-height: 1.3; margin-bottom: 10px; }
.receita .receita-head { margin-bottom: 14px; }
.receita .avatar { background: var(--t-cor); }

/* Filtros: só o ativo fica preenchido; os outros, contorno colorido */
.chip-filter { background: var(--card); color: var(--text-light); border-color: var(--border); }
.chip-filter.hidratacao { background: var(--card); color: var(--azul); border-color: #CFE6F3; }
.chip-filter.nutricao { background: var(--card); color: #B07E12; border-color: #F3E2B8; }
.chip-filter.reconstrucao { background: var(--card); color: var(--rosa-strong); border-color: #F0D3DC; }
.chip-filter.umectacao { background: var(--card); color: var(--lilas); border-color: #E3D5F3; }
.chip-filter.active, .chip-filter.hidratacao.active, .chip-filter.nutricao.active,
.chip-filter.reconstrucao.active, .chip-filter.umectacao.active { color: var(--card); border-color: transparent; }
.chip-filter.hidratacao.active { background: var(--azul); }
.chip-filter.nutricao.active { background: var(--amarelo); }
.chip-filter.reconstrucao.active { background: var(--rosa-strong); }
.chip-filter.umectacao.active { background: var(--lilas); }

/* ============ Refinamento 2026-10 (sofisticado) ============ */
body { -webkit-font-smoothing: antialiased; }
.card { border: 1px solid var(--border); }
.page-title, .greeting, .stage-title, .quiz-titulo, .cron-titulo, .receita-titulo, .bv-hero h1, .copo-card-txt b, .modal-head h3, .auth-card h1 { color: var(--text); letter-spacing: -0.01em; }
.big-btn, .pill-btn, .submit-btn { background: var(--gold); letter-spacing: 0.01em; }
.big-btn:hover, .pill-btn:hover, .submit-btn:hover { background: var(--gold-dark); }
.big-btn.done { background: #3E8E5E; box-shadow: 0 6px 16px rgba(62, 142, 94, 0.22); }
.pill-btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.avatar-btn { background: var(--text); border: none; }
.nav-item.active { color: var(--text); }
.nav-item.active::before { background: #F7E4EA; }
.nav-item.active svg { filter: none; }
.dia-circ.today { background: var(--text); box-shadow: none; }
.dia-circ.done { background: var(--gold); }
.quiz-result-badge, .trial-pill, .badge { letter-spacing: 0.12em; text-transform: uppercase; font-size: 11px; }
.copo-card { background: var(--card); border: 1px solid var(--border); }
.etapa-card { border: 1px solid var(--border); background: linear-gradient(180deg, var(--t-bg) 0%, #FFFFFF 70%); }
.home-data { color: var(--text-light); }
.upload-box { border: 1.5px dashed #D9CCD1; background: #FDFBFA; color: var(--text); }
.upload-box svg { color: var(--rosa-strong); }
.chip-filter { font-weight: 600; }
.bv-item { border: 1px solid var(--border); }
.bv-hero h1 em { color: var(--rosa-strong); }
.logo { color: var(--text); }
.logo .logo-icon { background: #F7E4EA; color: var(--gold-dark); }
input, select, textarea { border-radius: 10px; }
.auth-card { border: 1px solid var(--border); }

/* ============ Planos e Premium ============ */
.planos { display: grid; gap: 14px; }
.plano-card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 22px 20px; }
.plano-card.destaque { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 78, .14); }
.plano-card .plano-tag { position: absolute; top: -11px; left: 18px; background: var(--gold); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; padding: 4px 10px; border-radius: 999px; }
.plano-card .plano-nome { font-family: 'Playfair Display', Georgia, serif; font-size: 22px; margin-bottom: 2px; }
.plano-card .plano-para { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.plano-card .plano-preco { font-size: 30px; font-weight: 700; color: var(--text); font-family: 'Playfair Display', Georgia, serif; }
.plano-card .plano-preco span { font-size: 14px; color: var(--text-light); font-family: 'DM Sans', sans-serif; font-weight: 600; }
.plano-card ul { list-style: none; margin: 14px 0 6px; display: grid; gap: 8px; }
.plano-card li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: #2A2628; line-height: 1.45; }
.plano-card li svg { flex: none; color: var(--gold-dark); margin-top: 2px; }
.plano-card li.inclui-tudo { color: var(--text-light); font-weight: 600; }
.plano-card .big-btn { margin-top: 12px; }
.plano-card .big-btn.secundario { background: var(--card); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.plano-card .atual { display: inline-block; background: #E8F3EC; color: #2F7A4C; font-size: 11px; font-weight: 700; letter-spacing: .1em; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }

.premium-hero { background: linear-gradient(135deg, #1C1A1B 0%, #3A3134 100%); color: #fff; border-radius: 18px; padding: 22px 20px; margin-bottom: 16px; }
.premium-hero .section-label { color: var(--gold); }
.premium-hero h1 { font-family: 'Playfair Display', Georgia, serif; font-size: 24px; margin-bottom: 6px; }
.premium-hero p { font-size: 14px; color: rgba(255,255,255,.78); line-height: 1.5; }
.premium-item { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; }
.premium-item .ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.premium-item b { display: block; font-size: 16px; font-family: 'Playfair Display', Georgia, serif; }
.premium-item small { display: block; font-size: 13px; color: var(--text-light); line-height: 1.4; margin-top: 2px; }
.premium-item .seta { margin-left: auto; color: var(--text-light); flex: none; }
.premium-lock { text-align: center; padding: 10px 0 0; }
.premium-lock ul { list-style: none; text-align: left; display: grid; gap: 10px; margin: 16px 0; }
.premium-lock li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; }
.premium-lock li svg { flex: none; color: var(--gold-dark); margin-top: 3px; }

.protocolo-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.protocolo-meta span { font-size: 12px; font-weight: 600; color: var(--text-light); background: #F8F3F4; border-radius: 999px; padding: 5px 10px; }
.protocolo-etapa { border-left: 2px solid var(--gold); padding: 2px 0 2px 14px; margin-bottom: 14px; }
.protocolo-etapa b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.protocolo-etapa p { font-size: 14px; color: #3A3538; line-height: 1.55; }

.analise-item { border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.analise-item .analise-top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--text-light); font-weight: 600; margin-bottom: 8px; }
.analise-item .pendente { color: #8A6A1E; background: #F7EEDA; padding: 3px 9px; border-radius: 999px; font-size: 11px; letter-spacing: .08em; }
.analise-item .respondida { color: #2F7A4C; background: #E8F3EC; padding: 3px 9px; border-radius: 999px; font-size: 11px; letter-spacing: .08em; }
.analise-fotos { display: flex; gap: 6px; margin-bottom: 8px; }
.analise-fotos img { width: 64px; height: 84px; object-fit: cover; border-radius: 8px; }
.analise-resposta { background: #F8F3F4; border-radius: 12px; padding: 12px; font-size: 14px; line-height: 1.55; }
.analise-resposta b { display: block; font-size: 11px; letter-spacing: .1em; color: var(--rosa-strong); margin-bottom: 4px; }
.analise-previa { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.analise-previa img { width: 70px; height: 92px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }

/* ============ Aviso do e-mail do pagamento ============ */
.aviso-email { border: 2px solid var(--gold); background: #FFFBF0; border-radius: 14px; padding: 14px 16px; margin: 0 0 16px; }
.aviso-email b { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text); margin-bottom: 8px; }
.aviso-email b svg { color: var(--gold-dark); flex: none; }
.aviso-email .email-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px dashed var(--gold); border-radius: 10px; padding: 10px 12px; font-weight: 700; font-size: 15px; word-break: break-all; }
.aviso-email .email-box .pill-btn { padding: 7px 12px; font-size: 12.5px; flex: none; }
.aviso-email small { display: block; font-size: 12.5px; color: #5C5357; line-height: 1.45; margin-top: 8px; }
.pulsar { animation: pulsar 1.6s ease-in-out 6; }
@keyframes pulsar { 0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 78, 0); } 50% { box-shadow: 0 0 0 6px rgba(201, 162, 78, .28); } }
@media (prefers-reduced-motion: reduce) { .pulsar { animation: none; } }

/* ============ Kit de produtos ============ */
.kit-top { display: flex; align-items: center; gap: 12px; }
.kit-top .ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.kit-cat { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--text-light); text-transform: uppercase; }
.kit-nome { font-family: 'Playfair Display', Georgia, serif; font-size: 17px; line-height: 1.3; margin-top: 2px; }
.kit-porque { font-size: 14px; color: #3A3538; line-height: 1.5; margin: 10px 0 2px; }
.kit-btn { text-decoration: none; font-size: 15px; padding: 13px; }
.kit-aviso { font-size: 12.5px; color: var(--text-light); line-height: 1.5; text-align: center; padding: 6px 10px 0; }

/* ============ Kit: duas opções por categoria ============ */
.kit-grupo { margin-bottom: 18px; }
.kit-grupo-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.kit-grupo-head .ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.kit-uso { font-size: 13.5px; color: #3A3538; line-height: 1.5; margin-top: 3px; }
.kit-opcoes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kit-prod { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; }
.kit-prod img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; padding: 10px; }
.kit-prod-txt { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.kit-prod-txt b { font-size: 13.5px; line-height: 1.3; color: var(--text); }
.kit-prod-txt small { font-size: 12px; color: var(--text-light); line-height: 1.4; flex: 1; }
.kit-prod-btn { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--gold-dark); }
.kit-prod:active { background: #FAF4F6; }
