/* Léo 22 — Tema Claro & Cores Frias (Azul Petróleo + Teal) */
:root {
  --bg: #f3f6fa;
  --card: #ffffff;
  --card-2: #f8fafc;
  --border: #dfe7f0;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #0284c7;
  --primary-2: #0d9488;
  --primary-soft: rgba(2, 132, 199, 0.11);
  --teal-soft: rgba(13, 148, 136, 0.12);
  --orange: #f97316;
  --orange-glow: rgba(249, 115, 22, 0.28);
  --green: #0d9488;
  --blue: #0284c7;
  --red: #dc2626;
  --shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  --radius: 16px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  overscroll-behavior-y: none;
}

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small-text { font-size: 0.82rem; }
.error-text { color: var(--red); font-size: 0.85rem; margin-top: 8px; }
.accent-orange { color: var(--primary); }

/* Ícones SVG */
.ico {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-sm {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -2px;
  margin-right: 4px;
}
.dot-mark {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin: 0 2px;
}
.dot-rest { background: var(--blue); }
.dot-churrasco { background: var(--orange); }

/* PIN Screen */
.pin-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(160deg, #e0f2fe 0%, #f3f6fa 55%, #ccfbf1 100%);
}
.pin-card {
  width: 100%;
  max-width: 360px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
.brand-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary-2);
  background: var(--teal-soft);
  border: 1px solid rgba(13, 148, 136, 0.28);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.pin-card h1 { margin: 0 0 6px; font-size: 1.6rem; color: var(--text); }
.pin-card input {
  width: 100%;
  margin: 16px 0 12px;
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: 0.22em;
}

/* App Shell */
.app-shell {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 246, 250, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: calc(12px + env(safe-area-inset-top)) 14px 10px;
}
.topbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.brand-mini { font-size: 0.68rem; letter-spacing: 0.12em; color: var(--primary-2); font-weight: 800; }
.topbar h1 { margin: 2px 0 0; font-size: 1.15rem; color: var(--text); }
.topbar-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.day-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 0 2px;
  scrollbar-width: none;
}
.day-strip::-webkit-scrollbar { display: none; }

.day-pill {
  flex: 0 0 auto;
  min-width: 56px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 8px;
  text-align: center;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
}
.day-pill .d-num { display: block; font-size: 0.68rem; color: var(--muted); font-weight: 600; }
.day-pill .d-date { display: block; font-size: 0.85rem; font-weight: 700; }
.day-pill .d-marks { display: flex; justify-content: center; align-items: center; min-height: 10px; margin-top: 2px; }
.day-pill.is-today { border-color: var(--primary); }
.day-pill.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
  color: #ffffff;
}
.day-pill.active .d-num { color: rgba(255, 255, 255, 0.84); }
.day-pill.active .dot-rest { background: #ffffff; }

.main-content { padding: 14px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Cards & Inputs */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.card h2 { margin: 0 0 10px; font-size: 0.98rem; font-weight: 700; color: var(--text); }
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.card-header h2 { margin: 0; }

input, select {
  width: 100%;
  background: var(--card-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
}
input:focus, select:focus { outline: none; border-color: var(--primary); background: #fff; }

label { font-size: 0.8rem; color: var(--muted); display: flex; flex-direction: column; gap: 5px; font-weight: 600; }

.btn {
  border: none;
  border-radius: 11px;
  padding: 11px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: transform 0.08s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #ffffff; }
.btn-success { background: #0d9488; color: #ffffff; }
.btn-outline { background: #ffffff; border: 1px solid var(--border); color: var(--text); }
.btn-ghost { background: var(--card-2); color: var(--text); border: 1px solid var(--border); }
.btn-sm { padding: 7px 11px; font-size: 0.8rem; }
.btn-full { width: 100%; }

.pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--border);
  color: var(--text);
  display: inline-flex;
  align-items: center;
}
.pill-green { background: rgba(13, 148, 136, 0.12); border-color: rgba(13, 148, 136, 0.35); color: #0f766e; }
.pill-orange { background: rgba(249, 115, 22, 0.12); border-color: rgba(249, 115, 22, 0.35); color: #c2410c; }
.pill-red { background: rgba(220, 38, 38, 0.1); border-color: rgba(220, 38, 38, 0.35); color: #b91c1c; }
.pill-blue { background: rgba(2, 132, 199, 0.12); border-color: rgba(2, 132, 199, 0.35); color: #0369a1; }

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.kpi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px;
  box-shadow: var(--shadow);
}
.kpi-label { display: block; font-size: 0.74rem; color: var(--muted); font-weight: 600; }
.kpi-card strong { display: block; font-size: 1.32rem; margin: 3px 0; color: var(--text); }
.kpi-sub { font-size: 0.74rem; color: var(--muted); }

.progress-bar {
  width: 100%;
  height: 7px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 6px 0;
}
.progress-lg { height: 10px; margin: 12px 0; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-2)); width: 0%; transition: width 0.3s ease; }
.progress-water { background: linear-gradient(90deg, #0284c7, #06b6d4); }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.form-full { grid-column: 1 / -1; }
.preview-line { background: var(--primary-soft); color: #0369a1; padding: 9px 12px; border-radius: 10px; font-size: 0.85rem; }

.chart-box { width: 100%; min-height: 155px; }

.ai-box {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  font-size: 0.88rem;
  white-space: pre-wrap;
}

.table-wrap { overflow-x: auto; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.mini-table th, .mini-table td { padding: 7px 6px; border-bottom: 1px solid var(--border); text-align: left; }
.mini-table th { color: var(--muted); font-weight: 600; }

/* Calendário Visual dos 22 Dias */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 10px;
}
.cal-cell {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 2px;
  text-align: center;
  cursor: pointer;
  color: var(--text);
  font-size: 0.72rem;
}
.cal-cell .c-day { display: block; font-weight: 800; font-size: 0.78rem; }
.cal-cell .c-score { display: block; font-size: 0.62rem; color: var(--muted); }
.cal-cell.score-high { border-color: rgba(13, 148, 136, 0.6); background: rgba(13, 148, 136, 0.14); color: #0f766e; }
.cal-cell.score-mid { border-color: rgba(245, 158, 11, 0.6); background: rgba(245, 158, 11, 0.14); color: #b45309; }
.cal-cell.score-low { border-color: rgba(220, 38, 38, 0.55); background: rgba(220, 38, 38, 0.1); color: #b91c1c; }
.cal-cell.selected { outline: 2px solid var(--primary); outline-offset: 1px; }
.cal-detail-box {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 0.8rem;
}

/* Refeições */
.macro-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.macro-pill {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 4px;
  text-align: center;
  box-shadow: var(--shadow);
}
.macro-pill span { display: block; font-size: 0.68rem; color: var(--muted); font-weight: 600; }
.macro-pill strong { font-size: 0.9rem; color: var(--text); }

.meal-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-bottom: 12px;
}
.seg-btn {
  background: var(--card);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 4px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.seg-btn.active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #ffffff; border-color: transparent; }

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.mode-btn {
  background: var(--card-2);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.mode-btn.active { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

.banner-orange {
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: #c2410c;
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.photo-ai-box {
  background: var(--card-2);
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.photo-upload-label { display: inline-flex; align-items: center; justify-content: center; width: fit-content; }
.meal-photo-preview { width: 100%; max-height: 200px; object-fit: cover; border-radius: 10px; }
.ai-note { font-size: 0.8rem; color: #0369a1; background: var(--primary-soft); padding: 8px; border-radius: 8px; }

.salad-box { margin-bottom: 12px; }
.sub-label { font-size: 0.8rem; font-weight: 700; color: var(--text); margin-bottom: 6px; display: block; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: var(--card-2);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.chip.active { background: var(--teal-soft); border-color: var(--primary-2); color: #0f766e; }

.milk-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.mini-select { width: auto; flex: 1; padding: 6px 10px; font-size: 0.82rem; }

.meal-items-list { display: flex; flex-direction: column; gap: 8px; }
.food-row {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}
.food-row.selected { border-color: var(--primary); background: rgba(2, 132, 199, 0.05); }
.food-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.food-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; font-size: 0.9rem; color: var(--text); flex-direction: row; }
.food-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }
.food-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.food-controls.single { grid-template-columns: 1fr; }
.food-sub-milk { grid-column: 1 / -1; }

.meal-summary-bar {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* Água — Botão Laranja 5s */
.water-hero { text-align: center; }
.water-top { display: flex; justify-content: space-between; align-items: flex-start; text-align: left; }
.water-big { font-size: 2.3rem; font-weight: 800; line-height: 1.1; margin: 4px 0; color: var(--text); }
.water-big small { font-size: 1rem; color: var(--muted); font-weight: 600; }

.water-btn-wrap { margin: 18px 0 14px; }
.water-hold-btn {
  width: 100%;
  min-height: 124px;
  border-radius: 20px;
  border: 2px solid var(--primary);
  background: linear-gradient(145deg, #e0f2fe, #ecfeff);
  color: #0369a1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.water-hold-btn.counting {
  background: linear-gradient(145deg, #fb923c, #f97316);
  border-color: #ea580c;
  color: #ffffff;
  box-shadow: 0 8px 24px var(--orange-glow);
}
.water-hold-btn.done {
  background: linear-gradient(145deg, #14b8a6, #0d9488);
  border-color: #0f766e;
  color: #ffffff;
}
.water-btn-main { font-size: 1.7rem; font-weight: 800; }
.water-btn-sub { font-size: 0.85rem; opacity: 0.9; font-weight: 600; }
.water-countdown-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 7px;
  background: rgba(15, 23, 42, 0.1);
}
#water-countdown-fill { height: 100%; width: 0%; background: rgba(255, 255, 255, 0.92); }

.water-actions-row { display: flex; justify-content: space-between; align-items: center; }
.code-box {
  display: block;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  font-size: 0.76rem;
  word-break: break-all;
  color: var(--primary);
}

/* Treinos */
.context-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ctx-btn {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}
.ctx-btn strong { display: block; font-size: 0.86rem; }
.ctx-btn span { font-size: 0.72rem; color: var(--muted); }
.ctx-btn.active { border-color: var(--primary); background: var(--primary-soft); }

.timer-display {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  text-align: center;
}
.timer-block strong { font-size: 1.75rem; font-variant-numeric: tabular-nums; color: var(--text); }

.exercise-btn-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.ex-btn.active, .pace-btn.active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #ffffff; border-color: transparent; }

.active-set-box {
  background: var(--primary-soft);
  border: 1px solid rgba(2, 132, 199, 0.35);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
}
.active-set-title { font-size: 0.85rem; margin-bottom: 8px; color: #0369a1; }
.reps-finish-row { display: flex; gap: 8px; }
.reps-finish-row input { flex: 1; }

.sets-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.set-chip {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
}

.progression-box { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.mini-toggle { display: flex; gap: 6px; }
.swap-box { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }

.bike-setup-box {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px;
  margin-bottom: 12px;
}
.bike-presets { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bike-min-input { width: 68px !important; padding: 6px 8px !important; text-align: center; font-size: 0.85rem !important; }
.banner-turnaround {
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: #ffffff;
  font-weight: 800;
  text-align: center;
  padding: 11px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  box-shadow: 0 6px 20px var(--orange-glow);
  animation: pulseTurn 1.2s infinite;
}
@keyframes pulseTurn {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.018); }
}
.workout-detail-lines {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
  font-size: 0.76rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Sono */
.interruptions-box { margin: 14px 0; padding: 10px; background: var(--card-2); border-radius: 12px; }
.interruption-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; margin-top: 8px; }
.sleep-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.sleep-stat { background: var(--card-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 6px; }
.sleep-stat span { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.sleep-stat strong { font-size: 1.02rem; }

/* Histórico */
.history-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.history-item {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px;
  font-size: 0.83rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.history-item img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; }

.row-actions { display: flex; gap: 8px; align-items: center; }

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 7px 4px calc(9px + env(safe-area-inset-bottom));
  z-index: 30;
}
.nav-btn {
  background: none;
  border: none;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.69rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px;
}
.nav-btn.active { color: var(--primary); }

/* Toast */
.toast {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #ffffff;
  border: 1px solid var(--primary);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

/* === Compatibilidade Mobile / iPhone Safari === */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}
.pin-screen { min-height: 100dvh; }
.app-shell {
  min-height: 100dvh;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
/* Evita zoom automático do Safari iOS ao focar inputs */
input, select, textarea {
  font-size: 16px !important;
  min-height: 44px;
}
.bike-min-input {
  min-height: 38px !important;
  font-size: 16px !important;
}
.btn { min-height: 44px; }
.btn-sm { min-height: 36px; }
.seg-btn { min-height: 40px; font-size: 0.74rem; padding: 8px 2px; }

/* === Hero Card exclusivo Léo 22 === */
.hero-card {
  background: linear-gradient(135deg, #0f172a 0%, #0c4a6e 58%, #0f766e 100%);
  color: #f8fafc;
  border-radius: 22px;
  padding: 18px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 12px 28px rgba(12, 74, 110, 0.22);
  position: relative;
  overflow: hidden;
}
.hero-card::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.25), transparent 70%);
  pointer-events: none;
}
.hero-left { flex: 1; min-width: 0; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #5eead4;
  text-transform: uppercase;
}
.hero-title {
  margin: 4px 0 2px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}
.hero-sub {
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: rgba(241, 245, 249, 0.78);
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.hero-chip {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
}
.hero-ring-wrap {
  position: relative;
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
}
.hero-ring {
  width: 82px;
  height: 82px;
  transform: rotate(-90deg);
}
.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 7;
}
.ring-fg {
  fill: none;
  stroke: #2dd4bf;
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.45s ease;
}
.hero-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.hero-ring-label strong { font-size: 1.08rem; color: #ffffff; }
.hero-ring-label span { font-size: 0.62rem; color: rgba(241, 245, 249, 0.75); margin-top: 2px; }

/* === Floating Dock Inferior estilo iOS === */
.bottom-nav {
  bottom: calc(10px + env(safe-area-inset-bottom));
  width: calc(100% - 24px);
  max-width: 520px;
  border-radius: 22px;
  border: 1px solid rgba(203, 213, 225, 0.85);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  padding: 7px 6px;
}
.nav-btn {
  border-radius: 14px;
  padding: 6px 2px;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-btn.active {
  background: var(--primary-soft);
  color: var(--primary);
}

/* Responsividade fina para telas 360px-390px */
@media (max-width: 400px) {
  .main-content { padding: 12px; }
  .macro-pill strong { font-size: 0.82rem; }
  .timer-block strong { font-size: 1.45rem; }
  .cal-grid { gap: 4px; }
  .cal-cell { padding: 5px 1px; }
}

/* Barra dos 22 dias com rolagem garantida (dedo, mouse e setas) */
.day-strip-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
}
.day-strip {
  flex: 1;
  min-width: 0;
  padding: 2px 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scroll-behavior: smooth;
}
.day-nav-arrow {
  flex: 0 0 28px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.day-nav-arrow:active { transform: scale(0.95); }

/* Logo Léo 22 */
.pin-logo-wrap { display: flex; justify-content: center; margin-bottom: 12px; }
.brand-logo-lg { width: 68px; height: 68px; border-radius: 18px; box-shadow: 0 10px 24px rgba(2, 132, 199, 0.25); }
.topbar-brand { display: flex; align-items: center; gap: 10px; }
.brand-logo-sm { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2); }
