/* ==========================================================================
   Bloom — Flo-Inspired Soft Pink, Beige & White Theme (Zero Sharp Edges)
   ========================================================================== */
:root {
  --bg-page: #FFF9F6;
  --bg-soft: #FDF2EC;
  --bg-blush: #FFF0F3;
  --bg-card: #FFFFFF;
  --bg-peach-grad: linear-gradient(180deg, #FBE4D5 0%, #F7D4BE 48%, #F2BE9F 100%);
  --bg-hero-glow: radial-gradient(circle at 50% 48%, #FFF7F0 0%, #FCE5D5 42%, #F3C4A7 78%, #E9AE8B 100%);

  --text-main: #2D2220;
  --text-warm: #9B5432;
  --text-muted: #84706B;
  --text-light: #AE9B95;

  --rose: #FF5D7A;
  --rose-deep: #E84666;
  --rose-soft: #FFE8EE;
  --peach-soft: #FDECE1;
  --lavender-soft: #F3EBF7;
  --sky-soft: #E9F3F8;
  --mint-soft: #E8F6EF;
  --cream-soft: #FAF1E7;
  --border-soft: rgba(226, 186, 169, 0.34);

  --shadow-card: 0 10px 28px rgba(173, 111, 88, 0.08);
  --shadow-soft: 0 4px 16px rgba(173, 111, 88, 0.06);
  --shadow-rose: 0 8px 22px rgba(255, 93, 122, 0.28);

  --r-xl: 34px;
  --r-lg: 26px;
  --r-md: 20px;
  --r-sm: 14px;
  --r-pill: 9999px;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100dvh;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

/* Shell — mobile-first centered frame on desktop, full width on phones */
.app-shell {
  min-height: 100dvh;
  width: 100%;
  background: radial-gradient(circle at top center, #FDEEE6 0%, var(--bg-page) 45%);
}

.main-shell {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.view-container {
  animation: fadeUp 0.28s ease-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Splash */
.splash-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.splash-card {
  text-align: center;
}

.splash-logo {
  width: 84px;
  height: 84px;
  border-radius: 26px;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}

.splash-title {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--text-main);
}

.splash-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

/* Auth / Onboarding */
.auth-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px 40px;
}

.auth-container {
  width: 100%;
  max-width: 440px;
}

.auth-header {
  text-align: center;
  margin-bottom: 22px;
}

.auth-logo {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}

.editorial-title {
  font-family: var(--font-serif);
  font-size: 31px;
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
  color: var(--text-main);
}

.auth-subtitle {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 14.5px;
}

.auth-card {
  padding: 24px 20px;
}

/* Generic Soft Cards & Typography */
.card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-soft);
}

.card + .card {
  margin-top: 14px;
}

.section-pad {
  padding: 18px 18px 8px;
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 18px 12px;
}

.section-heading {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.015em;
  color: var(--text-main);
}

.sub-heading {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-main);
}

.muted-text {
  color: var(--text-muted);
  font-size: 13.5px;
  margin: 0;
}

.tiny-text {
  color: var(--text-light);
  font-size: 12px;
}

.soft-divider {
  height: 1px;
  background: var(--border-soft);
  margin: 8px 0;
  border-radius: var(--r-pill);
}

/* Pills & Badges */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
}

.badge-rose { background: var(--rose-soft); color: var(--rose-deep); }
.badge-peach { background: var(--peach-soft); color: var(--text-warm); }
.badge-mint { background: var(--mint-soft); color: #247856; }
.badge-sky { background: var(--sky-soft); color: #2A6E8C; }
.badge-lavender { background: var(--lavender-soft); color: #71458C; }
.badge-warn { background: #FFF2DC; color: #B46312; }
.badge-high { background: #FFE3E6; color: #C52D48; }

/* Buttons (All fully pill-rounded) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--r-pill);
  padding: 13px 22px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, #FF6D89 0%, #FF5272 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-rose);
}

.btn-primary:hover {
  filter: brightness(1.03);
}

.btn-soft {
  background: var(--rose-soft);
  color: var(--rose-deep);
}

.btn-cream {
  background: #FFFFFF;
  color: var(--text-warm);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(232, 189, 170, 0.35);
}

.btn-ghost {
  background: rgba(246, 232, 224, 0.65);
  color: var(--text-main);
}

.btn-danger-soft {
  background: #FFE7EB;
  color: #C9354F;
}

.btn-sm {
  padding: 8px 15px;
  font-size: 13px;
}

.btn-full {
  width: 100%;
}

.icon-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.14s ease;
}

.icon-circle-btn:active {
  transform: scale(0.93);
}

/* Forms */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  padding-left: 4px;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="number"],
select,
textarea {
  width: 100%;
  border: 1.5px solid rgba(226, 186, 169, 0.45);
  background: #FFFBF9;
  border-radius: 18px;
  padding: 12px 15px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(255, 93, 122, 0.12);
  background: #FFFFFF;
}

textarea {
  resize: vertical;
  min-height: 78px;
}

.form-error {
  background: #FFE8EC;
  color: #C72C48;
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
}

/* Segmented Control (Flo Pill Tabs) */
.segmented-control {
  display: flex;
  background: #F8ECE6;
  border-radius: var(--r-pill);
  padding: 4px;
  gap: 4px;
}

.seg-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 10px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.seg-btn.active {
  background: #FFFFFF;
  color: var(--text-main);
  box-shadow: 0 3px 10px rgba(173, 111, 88, 0.12);
}

/* ==========================================================================
   FLO-INSPIRED TODAY HERO HEADER
   ========================================================================== */
.hero-canvas {
  background: var(--bg-hero-glow);
  border-radius: 0 0 42px 42px;
  padding: calc(14px + env(safe-area-inset-top)) 18px 26px;
  box-shadow: 0 16px 40px rgba(214, 152, 121, 0.22);
  position: relative;
  overflow: hidden;
}

.hero-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.avatar-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  padding: 5px 12px 5px 5px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.avatar-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.avatar-dot-sm {
  width: 22px;
  height: 22px;
  font-size: 10.5px;
}

.hero-date-label {
  font-weight: 800;
  font-size: 16px;
  color: var(--text-main);
}

/* 7-day Flo calendar strip */
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  margin-bottom: 14px;
}

.week-day-btn {
  border: none;
  background: transparent;
  padding: 6px 2px 8px;
  border-radius: 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.14s ease;
}

.week-day-btn:active {
  transform: scale(0.94);
}

.week-day-letter {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-warm);
  opacity: 0.78;
}

.week-day-btn.is-today .week-day-letter {
  color: var(--text-main);
  opacity: 1;
}

.week-day-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-warm);
  position: relative;
}

.week-day-btn.is-selected .week-day-num {
  background: #FFFFFF;
  color: var(--text-main);
  box-shadow: 0 6px 16px rgba(173, 108, 78, 0.22);
}

.week-day-btn.has-log .week-day-num::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rose);
}

/* Hero Baby Visual */
.hero-baby-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.baby-orb-wrap {
  width: 218px;
  height: 218px;
  border-radius: 50%;
  padding: 6px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.72) 0%, rgba(255, 240, 230, 0.25) 75%, transparent 100%);
  box-shadow: 0 18px 44px rgba(182, 114, 83, 0.18);
  margin: 4px 0 14px;
  cursor: pointer;
  transition: transform 0.22s ease;
}

.baby-orb-wrap:hover {
  transform: scale(1.02);
}

.baby-orb-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.gestation-headline {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-warm);
  margin: 0;
}

.gestation-subpill {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #8E5236;
  background: rgba(255, 255, 255, 0.62);
  padding: 5px 14px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.hero-progress-wrap {
  width: 100%;
  max-width: 310px;
  margin-top: 14px;
}

.progress-track {
  height: 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, #FF7F97 0%, #FF5D7A 100%);
  transition: width 0.5s ease;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  color: #8E5236;
  margin-top: 6px;
}

/* Flo Horizontal Daily Insights Carousel */
.insights-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 18px 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.insights-carousel::-webkit-scrollbar {
  display: none;
}

.insight-card {
  flex: 0 0 132px;
  min-height: 156px;
  border-radius: 24px;
  padding: 14px 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(235, 198, 184, 0.28);
  transition: transform 0.16s ease;
}

.insight-card:active {
  transform: scale(0.96);
}

.insight-card-log {
  background: #FFFFFF;
  align-items: center;
  text-align: center;
}

.insight-title {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
}

.insight-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

.flo-plus-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6D89 0%, #FF5272 100%);
  color: #FFFFFF;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-rose);
  margin-top: 10px;
}

.insight-emoji-big {
  font-size: 38px;
  line-height: 1;
  align-self: flex-end;
}

.bg-blush { background: linear-gradient(160deg, #FFEFF3 0%, #FDE1E9 100%); }
.bg-peach { background: linear-gradient(160deg, #FFF1E7 0%, #FCE1CF 100%); }
.bg-sky { background: linear-gradient(160deg, #EEF6FA 0%, #E0EEF6 100%); }
.bg-lavender { background: linear-gradient(160deg, #F6EFFA 0%, #ECE0F5 100%); }
.bg-cream { background: linear-gradient(160deg, #FDF6EE 0%, #F7EAD9 100%); }

/* Flo Split Baby Size Card (matching Image 1!) */
.flo-size-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.flo-size-box {
  background: #FFF9F6;
  border-radius: 22px;
  padding: 16px 14px;
  text-align: center;
  border: 1px solid var(--border-soft);
}

.flo-size-thumb {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  display: block;
  box-shadow: var(--shadow-soft);
}

.flo-fruit-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(145deg, #FFF4EE, #FFE6EC);
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  box-shadow: var(--shadow-soft);
}

.flo-size-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
}

.flo-size-val {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Summary Grid on Today Tab */
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 18px;
}

.mini-stat-card {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition: transform 0.14s ease;
}

.mini-stat-card:active {
  transform: scale(0.97);
}

.mini-stat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 6px;
}

.mini-stat-sub {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

/* Page Top Header (non-Today tabs) */
.page-header {
  padding: calc(18px + env(safe-area-inset-top)) 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  margin: 0;
  color: var(--text-main);
}

/* Flo Circular Symptom & Mood Picker */
.symptom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 8px;
}

.symptom-chip {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 2px;
}

.symptom-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FAF0EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  border: 2.5px solid transparent;
  transition: all 0.16s ease;
}

.symptom-chip.selected .symptom-circle {
  background: var(--rose-soft);
  border-color: var(--rose);
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(255, 93, 122, 0.22);
}

.symptom-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
}

.symptom-chip.selected .symptom-text {
  color: var(--rose-deep);
}

/* Kick & Contraction Big Interactive Timer Orbs */
.timer-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 0 8px;
}

.big-orb-btn {
  width: 196px;
  height: 196px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 35% 30%, #FF8DA2 0%, #FF5D7A 65%, #E94565 100%);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(255, 93, 122, 0.34), 0 0 0 12px rgba(255, 93, 122, 0.12);
  transition: transform 0.14s ease;
  margin: 14px 0 18px;
}

.big-orb-btn:active {
  transform: scale(0.94);
}

.big-orb-btn.peach-orb {
  background: radial-gradient(circle at 35% 30%, #F7B48E 0%, #E68B60 68%, #CE6D43 100%);
  box-shadow: 0 18px 40px rgba(230, 139, 96, 0.34), 0 0 0 12px rgba(230, 139, 96, 0.14);
}

.big-orb-btn.pulsing {
  animation: gentlePulse 1.6s ease-in-out infinite;
}

@keyframes gentlePulse {
  0%, 100% { box-shadow: 0 18px 40px rgba(255, 93, 122, 0.34), 0 0 0 10px rgba(255, 93, 122, 0.16); }
  50% { box-shadow: 0 22px 46px rgba(255, 93, 122, 0.44), 0 0 0 22px rgba(255, 93, 122, 0.08); }
}

.orb-count {
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
}

.orb-caption {
  font-size: 13.5px;
  font-weight: 700;
  margin-top: 6px;
  opacity: 0.94;
}

.timer-readout {
  font-size: 32px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text-warm);
  letter-spacing: 0.02em;
}

.metrics-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin: 12px 0;
}

.metric-bubble {
  background: #FFF6F1;
  border-radius: 18px;
  padding: 11px 8px;
  text-align: center;
  border: 1px solid var(--border-soft);
}

.metric-bubble-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.metric-bubble-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 2px;
}

/* History Lists */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  background: #FFFBF9;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 13px 15px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.history-main {
  flex: 1;
  min-width: 0;
}

.history-title {
  font-weight: 800;
  font-size: 14.5px;
  color: var(--text-main);
}

.history-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

/* Weight SVG Chart */
.chart-box {
  background: linear-gradient(180deg, #FFF9F6 0%, #FFFFFF 100%);
  border-radius: 22px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  margin-bottom: 14px;
}

.chart-svg {
  width: 100%;
  height: 160px;
  display: block;
}

/* Week Explorer Strip (Journey Tab) */
.week-pills-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 18px 14px;
  scrollbar-width: none;
}

.week-pills-scroll::-webkit-scrollbar {
  display: none;
}

.week-pill {
  flex: 0 0 auto;
  border: 1.5px solid var(--border-soft);
  background: #FFFFFF;
  color: var(--text-muted);
  border-radius: var(--r-pill);
  padding: 9px 15px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.week-pill.active {
  background: var(--rose);
  border-color: var(--rose);
  color: #FFFFFF;
  box-shadow: var(--shadow-rose);
}

.week-pill.current-wk:not(.active) {
  border-color: var(--rose);
  color: var(--rose-deep);
  background: var(--rose-soft);
}

/* Photo Gallery Grid */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.photo-card {
  background: #FFFFFF;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  cursor: pointer;
}

.photo-thumb-wrap {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #FAF0EB;
  overflow: hidden;
  position: relative;
}

.photo-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-week-tag {
  position: absolute;
  top: 9px;
  left: 9px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  color: var(--text-warm);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.photo-card-info {
  padding: 10px 12px 12px;
}

/* Appointments */
.appt-card {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}

.appt-card.completed {
  opacity: 0.78;
}

.question-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: #FFF9F6;
  border-radius: 14px;
  margin-top: 6px;
  font-size: 13.5px;
}

.question-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--rose);
  border-radius: 6px;
}

/* Invite Code Box */
.invite-code-box {
  background: linear-gradient(135deg, #FFF0F3 0%, #FDECE1 100%);
  border: 1.5px dashed #F0A3B2;
  border-radius: 22px;
  padding: 16px;
  text-align: center;
  margin: 12px 0;
}

.invite-code-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--rose-deep);
  margin: 6px 0;
}

/* Bottom Navigation Bar (Frosted Pill Bar) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  background: rgba(255, 252, 250, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(235, 198, 184, 0.35);
  border-radius: 28px 28px 0 0;
  padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 50;
  box-shadow: 0 -8px 28px rgba(173, 111, 88, 0.08);
}

.nav-item {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  border-radius: 18px;
  color: #A4918B;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s ease, transform 0.14s ease;
}

.nav-item:active {
  transform: scale(0.93);
}

.nav-item.active {
  color: var(--rose);
}

.nav-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 22px;
  height: 22px;
}

.nav-label {
  font-size: 11px;
  font-weight: 700;
}

/* Bottom Sheet Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(54, 34, 28, 0.42);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  padding: 12px 0 0;
}

.modal-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 90dvh;
  background: #FFFFFF;
  border-radius: 34px 34px 0 0;
  padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  box-shadow: 0 -12px 40px rgba(80, 42, 30, 0.2);
  animation: sheetUp 0.24s ease-out;
}

@keyframes sheetUp {
  from { transform: translateY(40px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-handle {
  width: 44px;
  height: 5px;
  border-radius: var(--r-pill);
  background: #E9D9D2;
  margin: 0 auto 14px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-title {
  font-size: 19px;
  font-weight: 800;
  margin: 0;
}

.modal-body {
  padding-bottom: 8px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: calc(86px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: #3A2926;
  color: #FFF9F6;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(45, 34, 32, 0.25);
  z-index: 200;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Intensity Dots */
.intensity-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 10px 0;
}

.intensity-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border-soft);
  background: #FFF9F6;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
}

.intensity-btn.active {
  background: var(--rose);
  border-color: var(--rose);
  color: #FFFFFF;
}

/* Desktop polish */
@media (min-width: 560px) {
  .main-shell {
    padding-top: 12px;
  }
  .hero-canvas {
    border-radius: 38px;
    margin: 0 10px;
  }
  .bottom-nav {
    bottom: 14px;
    border-radius: var(--r-pill);
    max-width: 496px;
    border: 1px solid rgba(235, 198, 184, 0.45);
    padding: 8px 14px;
  }
  .modal-backdrop {
    align-items: center;
    padding: 20px;
  }
  .modal-sheet {
    border-radius: 34px;
    max-height: 86dvh;
  }
}
