/* ============================================================
   MAPA DE EMAGRECIMENTO DA YSABELLA SANTOS
   style.css — Design premium, mobile-first, tons rosa/lilás
   ============================================================ */

/* ---------- Variáveis & Reset ---------- */
:root {
  --rosa-claro: #fce4ec;
  --rosa: #f48fb1;
  --rosa-escuro: #ec407a;
  --lilas-claro: #ede7f6;
  --lilas: #b39ddb;
  --lilas-escuro: #7e57c2;
  --branco: #ffffff;
  --fundo: #faf5fc;
  --fundo-card: #ffffff;
  --texto: #4a3560;
  --texto-suave: #7b6b8e;
  --sombra: 0 4px 24px rgba(126, 87, 194, 0.12);
  --sombra-hover: 0 8px 32px rgba(236, 64, 122, 0.18);
  --raio: 20px;
  --raio-sm: 12px;
  --transicao: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 72px;
  --nav-h: 68px;
  --font: 'Nunito', system-ui, sans-serif;
  --font-display: 'Quicksand', 'Nunito', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font);
  background: var(--fundo);
  color: var(--texto);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100dvh;
}

img {
  max-width: 100%;
  display: block;
}

button, input {
  font-family: inherit;
}

.hidden {
  display: none !important;
}

/* ---------- Splash Screen ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--lilas-claro) 0%, var(--rosa-claro) 50%, var(--branco) 100%);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash__glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 143, 177, 0.4) 0%, transparent 70%);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
}

.splash__content {
  text-align: center;
  z-index: 1;
  animation: splash-in 1s ease forwards;
}

@keyframes splash-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.splash__icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce 1.5s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.splash__mission {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--lilas-escuro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.splash__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--rosa-escuro);
  margin-bottom: 0.25rem;
}

.splash__name {
  font-size: 1.1rem;
  color: var(--texto-suave);
  font-weight: 600;
  margin-bottom: 2rem;
}

.splash__loader {
  width: 200px;
  height: 4px;
  background: rgba(179, 157, 219, 0.3);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto;
}

.splash__loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--lilas), var(--rosa));
  border-radius: 4px;
  animation: loader-fill 3s ease forwards;
}

@keyframes loader-fill {
  to { width: 100%; }
}

/* ---------- App Layout ---------- */
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--fundo);
  position: relative;
  box-shadow: 0 0 60px rgba(126, 87, 194, 0.08);
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  max-width: 480px;
  left: 50%;
  transform: translateX(-50%);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(179, 157, 219, 0.2);
  padding: 0.75rem 1rem;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header__emoji {
  font-size: 1.5rem;
}

.header__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rosa-escuro);
  line-height: 1.2;
}

.header__subtitle {
  font-size: 0.65rem;
  color: var(--texto-suave);
  line-height: 1.2;
}

.header__user {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--lilas-escuro);
  white-space: nowrap;
}

/* ---------- Main & Sections ---------- */
.main {
  padding: 1rem 1rem calc(var(--nav-h) + 1.5rem);
}

.section {
  display: none;
  animation: section-in 0.4s ease;
}

.section.active {
  display: block;
}

@keyframes section-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  margin-bottom: 1.25rem;
}

.section-header__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--texto);
  margin-bottom: 0.35rem;
}

.section-header__desc {
  font-size: 0.875rem;
  color: var(--texto-suave);
}

/* ---------- Cards genéricos ---------- */
.card {
  background: var(--fundo-card);
  border-radius: var(--raio);
  padding: 1.25rem;
  box-shadow: var(--sombra);
  margin-bottom: 1rem;
  border: 1px solid rgba(179, 157, 219, 0.15);
  transition: box-shadow var(--transicao), transform var(--transicao);
}

.card:hover {
  box-shadow: var(--sombra-hover);
}

.card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--texto);
}

/* ---------- Hero ---------- */
.hero {
  margin-bottom: 1rem;
}

.hero__image-wrap {
  position: relative;
  border-radius: var(--raio);
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--sombra);
}

.hero__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  animation: hero-zoom 8s ease-in-out infinite alternate;
}

@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

.hero__badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--rosa-escuro);
  animation: badge-pop 0.6s ease 0.5s both;
}

@keyframes badge-pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.hero__heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--lilas-escuro);
  margin-bottom: 0.4rem;
}

.hero__desc {
  font-size: 0.9rem;
  color: var(--texto-suave);
}

/* ---------- Barra de progresso ---------- */
.progress-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.progress-card__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--rosa-escuro);
}

.progress-bar {
  height: 14px;
  background: var(--lilas-claro);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--lilas), var(--rosa), var(--rosa-escuro));
  border-radius: 50px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-bar__fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-card__days {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--texto-suave);
}

#progress-percent {
  font-weight: 700;
  color: var(--lilas-escuro);
}

/* ---------- Alertas ---------- */
.alert-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: linear-gradient(135deg, #fffde7 0%, #fff8e1 100%);
  border-color: rgba(255, 193, 7, 0.3);
}

.alert-card--ok {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  border-color: rgba(76, 175, 80, 0.3);
}

.alert-card__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.alert-card__text {
  font-size: 0.875rem;
  color: var(--texto);
  line-height: 1.5;
}

.disclaimer {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: linear-gradient(135deg, var(--lilas-claro), var(--rosa-claro));
  font-size: 0.8rem;
  color: var(--texto-suave);
}

.disclaimer__icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ---------- Navegação de dias ---------- */
.day-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

.day-nav__btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--lilas-claro);
  color: var(--lilas-escuro);
  font-size: 1.5rem;
  cursor: pointer;
  transition: background var(--transicao), transform var(--transicao);
  display: flex;
  align-items: center;
  justify-content: center;
}

.day-nav__btn:hover {
  background: var(--lilas);
  color: var(--branco);
  transform: scale(1.05);
}

.day-nav__btn:active {
  transform: scale(0.95);
}

.day-nav__center {
  text-align: center;
}

.day-nav__label {
  display: block;
  font-size: 0.75rem;
  color: var(--texto-suave);
}

.day-nav__day {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rosa-escuro);
}

/* ---------- Card do dia ---------- */
.day-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--rosa-claro);
}

.day-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--lilas-escuro);
}

.day-card__badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  background: var(--rosa-claro);
  color: var(--rosa-escuro);
  font-weight: 700;
}

.day-card__badge--app {
  background: var(--lilas-claro);
  color: var(--lilas-escuro);
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.checklist__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--raio-sm);
  background: var(--fundo);
  cursor: pointer;
  transition: background var(--transicao), transform var(--transicao);
  user-select: none;
}

.checklist__item:hover {
  background: var(--lilas-claro);
}

.checklist__item.done {
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
}

.checklist__item.done .checklist__label {
  text-decoration: line-through;
  color: var(--texto-suave);
}

.checklist__check {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid var(--lilas);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transicao);
  flex-shrink: 0;
}

.checklist__item.done .checklist__check {
  background: var(--lilas-escuro);
  border-color: var(--lilas-escuro);
  color: var(--branco);
}

.checklist__label {
  font-size: 0.95rem;
  font-weight: 600;
}

.day-card__weight-input {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.day-card__weight-input input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--lilas-claro);
  border-radius: var(--raio-sm);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transicao);
}

.day-card__weight-input input:focus {
  border-color: var(--lilas);
}

/* ---------- Timeline grid ---------- */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.timeline-mini {
  aspect-ratio: 1;
  border: none;
  border-radius: var(--raio-sm);
  background: var(--branco);
  box-shadow: 0 2px 8px rgba(126, 87, 194, 0.1);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--texto-suave);
  cursor: pointer;
  transition: all var(--transicao);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0.25rem;
}

.timeline-mini:hover {
  transform: translateY(-2px);
  box-shadow: var(--sombra);
}

.timeline-mini.active {
  background: linear-gradient(135deg, var(--rosa), var(--lilas));
  color: var(--branco);
  transform: scale(1.05);
}

.timeline-mini.complete {
  background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
  color: #2e7d32;
}

.timeline-mini__dot {
  font-size: 0.55rem;
}

.timeline-mini--app::after {
  content: '💉';
  font-size: 0.5rem;
}

/* ---------- Calendário ---------- */
.calendar-card__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.calendar-card__input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--lilas-claro);
  border-radius: var(--raio-sm);
  font-size: 1rem;
  margin-bottom: 1rem;
  outline: none;
}

.calendar-card__input:focus {
  border-color: var(--lilas);
}

.app-cycle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--branco);
  border-radius: var(--raio-sm);
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px rgba(126, 87, 194, 0.08);
  animation: section-in 0.3s ease;
}

.app-cycle__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lilas), var(--rosa));
  color: var(--branco);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.app-cycle__info {
  flex: 1;
}

.app-cycle__date {
  font-weight: 700;
  font-size: 0.9rem;
}

.app-cycle__status {
  font-size: 0.75rem;
  color: var(--texto-suave);
}

.app-cycle--past .app-cycle__num {
  background: #a5d6a7;
}

.app-cycle--today .app-cycle__num {
  animation: pulse-glow 1.5s infinite;
  box-shadow: 0 0 12px rgba(236, 64, 122, 0.5);
}

/* ---------- Água ---------- */
.water-cups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.water-cup {
  aspect-ratio: 1;
  border: none;
  border-radius: var(--raio-sm);
  background: var(--lilas-claro);
  cursor: pointer;
  font-size: 2rem;
  transition: all var(--transicao);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.water-cup::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: linear-gradient(180deg, #81d4fa, #4fc3f7);
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 0 var(--raio-sm) var(--raio-sm);
}

.water-cup.filled::before {
  height: 70%;
}

.water-cup.filled {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(79, 195, 247, 0.3);
}

.water-cup__icon {
  position: relative;
  z-index: 1;
  transition: transform var(--transicao);
}

.water-cup.filled .water-cup__icon {
  transform: translateY(-4px);
}

.water-cup:active {
  transform: scale(0.92);
}

.water-status {
  text-align: center;
  font-weight: 700;
  color: var(--lilas-escuro);
  font-size: 1rem;
}

.water-celebration {
  text-align: center;
  margin-top: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, var(--rosa-claro), var(--lilas-claro));
  border-radius: var(--raio-sm);
  animation: celebrate-pop 0.6s ease;
}

@keyframes celebrate-pop {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

.water-celebration__emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* ---------- Peso ---------- */
.weight-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.weight-form__group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.weight-form__group input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 2px solid var(--lilas-claro);
  border-radius: var(--raio-sm);
  font-size: 1rem;
  outline: none;
}

.weight-form__group input:focus {
  border-color: var(--lilas);
}

.chart-wrap {
  background: var(--fundo);
  border-radius: var(--raio-sm);
  padding: 0.75rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

#weight-chart {
  width: 100%;
  height: 200px;
}

.weight-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.weight-stat {
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: var(--lilas-claro);
  border-radius: var(--raio-sm);
}

.weight-stat__value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--lilas-escuro);
}

.weight-stat__label {
  font-size: 0.65rem;
  color: var(--texto-suave);
  margin-top: 0.15rem;
}

.weight-list {
  list-style: none;
  max-height: 180px;
  overflow-y: auto;
}

.weight-list__item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--lilas-claro);
  font-size: 0.85rem;
}

.weight-list__delete {
  background: none;
  border: none;
  color: var(--rosa-escuro);
  cursor: pointer;
  font-size: 0.8rem;
}

/* ---------- Medalhas ---------- */
.medals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.medal {
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: var(--branco);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  border: 2px solid transparent;
  transition: all var(--transicao);
}

.medal.unlocked {
  border-color: var(--rosa);
  background: linear-gradient(180deg, var(--branco), var(--rosa-claro));
  animation: medal-shine 2s ease infinite;
}

@keyframes medal-shine {
  0%, 100% { box-shadow: var(--sombra); }
  50% { box-shadow: 0 0 20px rgba(244, 143, 177, 0.4); }
}

.medal.locked {
  opacity: 0.55;
  filter: grayscale(0.6);
}

.medal__icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.medal__name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--texto);
}

.medal__desc {
  font-size: 0.7rem;
  color: var(--texto-suave);
  margin-top: 0.25rem;
}

/* ---------- Modo Resenha & Marido ---------- */
.resenha-card, .marido-card {
  text-align: center;
}

.resenha-card__visual {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: wiggle 2s ease infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

.marido-card__avatar {
  width: 140px;
  height: 140px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  box-shadow: var(--sombra);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.marido-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--lilas-escuro);
  margin-bottom: 1rem;
}

.resenha-result, .marido-result {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--lilas-claro), var(--rosa-claro));
  border-radius: var(--raio-sm);
  animation: result-in 0.5s ease;
}

@keyframes result-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.resenha-result p, .marido-result p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--texto);
  line-height: 1.5;
  font-style: italic;
}

.resenha-premium {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--rosa-escuro);
  animation: shimmer-text 2s infinite;
}

@keyframes shimmer-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ---------- Galeria ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--raio-sm);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--sombra);
  cursor: pointer;
  transition: transform var(--transicao);
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem;
  background: linear-gradient(transparent, rgba(74, 53, 96, 0.75));
  color: var(--branco);
  font-size: 0.7rem;
  font-weight: 600;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transicao);
}

.btn--primary {
  background: linear-gradient(135deg, var(--lilas-escuro), var(--rosa-escuro));
  color: var(--branco);
  width: 100%;
  box-shadow: 0 4px 16px rgba(126, 87, 194, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(236, 64, 122, 0.4);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--fun {
  background: linear-gradient(135deg, #fff3e0, var(--rosa-claro));
  color: var(--texto);
  border: 2px solid var(--rosa);
  width: 100%;
}

.btn--fun:hover {
  background: linear-gradient(135deg, var(--rosa-claro), var(--lilas-claro));
  transform: scale(1.02);
}

.btn--large {
  padding: 1rem 1.5rem;
  font-size: 1rem;
}

/* ---------- Bottom Nav ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(179, 157, 219, 0.25);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: var(--raio-sm);
  transition: all var(--transicao);
  color: var(--texto-suave);
}

.bottom-nav__item.active {
  color: var(--rosa-escuro);
  background: var(--rosa-claro);
}

.bottom-nav__icon {
  font-size: 1.35rem;
  transition: transform var(--transicao);
}

.bottom-nav__item.active .bottom-nav__icon {
  transform: scale(1.15);
}

.bottom-nav__label {
  font-size: 0.6rem;
  font-weight: 700;
}

/* ---------- Menu Mais ---------- */
.more-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  max-width: 480px;
  left: 50%;
  transform: translateX(-50%);
}

.more-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(74, 53, 96, 0.4);
  animation: fade-in 0.3s ease;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.more-menu__panel {
  position: relative;
  width: 100%;
  background: var(--branco);
  border-radius: var(--raio) var(--raio) 0 0;
  padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0));
  animation: slide-up 0.35s ease;
  z-index: 1;
}

@keyframes slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.more-menu__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--texto);
}

.more-menu__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  border: none;
  background: var(--fundo);
  border-radius: var(--raio-sm);
  font-size: 1rem;
  font-weight: 600;
  color: var(--texto);
  cursor: pointer;
  margin-bottom: 0.5rem;
  transition: background var(--transicao);
}

.more-menu__item:hover {
  background: var(--lilas-claro);
}

.more-menu__close {
  width: 100%;
  padding: 0.85rem;
  border: none;
  background: var(--rosa-claro);
  border-radius: var(--raio-sm);
  font-weight: 700;
  color: var(--rosa-escuro);
  cursor: pointer;
  margin-top: 0.5rem;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 1rem);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  max-width: calc(480px - 2rem);
  width: calc(100% - 2rem);
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--lilas-escuro), var(--rosa-escuro));
  color: var(--branco);
  border-radius: var(--raio-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  z-index: 500;
  box-shadow: 0 8px 32px rgba(74, 53, 96, 0.35);
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Responsividade tablet/desktop ---------- */
@media (min-width: 481px) {
  body {
    background: linear-gradient(180deg, var(--lilas-claro), var(--fundo));
  }

  .app {
    border-radius: 24px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    min-height: calc(100dvh - 2rem);
    overflow: hidden;
  }

  .bottom-nav {
    border-radius: 0 0 24px 24px;
  }

  .hero__image {
    height: 280px;
  }

  .timeline-grid {
    grid-template-columns: repeat(10, 1fr);
  }
}

@media (max-width: 360px) {
  .timeline-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .water-cups {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Acessibilidade: reduzir movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
