:root {
  --cream: #F5F2E9;
  --cream-light: #FAF8F2;
  --sage-sky: #8FA79A;
  --sage-completed: #84A38F;
  --olive: #739344;
  --ochre: #D68C29;
  --mustard: #CFA418;
  --taupe: #BDB399;
  --purple: #7E60D8;
  --purple-deep: #6C4EC9;
  --amber: #F5B119;
  --ink: #22211E;
  --ink-muted: #76736B;
  --coral: #E45D43;
  --white: #FFFFFF;
  --nav-dark: #232220;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #E5E2D7;
  font-family: var(--font-sans);
  color: var(--ink);
  overscroll-behavior: none;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  margin: 0 auto;
  background: var(--cream);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 70px rgba(34, 33, 30, 0.16);
}

@media (min-width: 500px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
  }
  .app-shell {
    height: min(880px, 94dvh);
    border-radius: 38px;
    border: 6px solid #242320;
  }
}

.screen {
  display: none;
  flex: 1;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: calc(104px + var(--safe-bottom));
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }
.screen.active { display: block; animation: fadeSlide 0.22s ease-out; }

@keyframes fadeSlide {
  from { opacity: 0.4; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------- TOAST ---------------- */
.toast {
  position: absolute;
  top: calc(14px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--nav-dark);
  color: var(--white);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: all 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------------- SCREEN 1: COIN JAR HERO ---------------- */
.jar-hero {
  position: relative;
  height: 315px;
  background: linear-gradient(180deg, #8BA396 0%, #9EB3A7 60%, #B8C8BD 100%);
  overflow: hidden;
  padding: calc(18px + var(--safe-top)) 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.jar-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  pointer-events: none;
}

.jar-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(114, 140, 126, 0.25) 0%, rgba(114, 140, 126, 0.08) 45%, rgba(84, 108, 92, 0.28) 100%);
  pointer-events: none;
}

.jar-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-pill-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  color: var(--white);
  cursor: pointer;
}

.circle-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.55);
}
.circle-icon-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.glass {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.jar-user-name {
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.jar-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notif-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.progress-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.circle-check-mini {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
}

.jar-counter-block {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 18px;
  color: var(--white);
}

.coin-count {
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 16px rgba(34, 46, 38, 0.28);
}

.coin-subtitle {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.95;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
}

/* TODAY WHITE SHEET */
.today-sheet {
  position: relative;
  margin-top: -26px;
  background: var(--white);
  border-radius: 28px 28px 0 0;
  padding: 10px 20px 28px;
  min-height: calc(100% - 289px);
}

.sheet-handle-pill {
  width: 44px;
  height: 20px;
  border-radius: 999px;
  background: #A9BC9F;
  color: var(--white);
  margin: -20px auto 10px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

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

.today-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.today-actions {
  display: flex;
  gap: 8px;
}

.icon-outline-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #E5E3DC;
  background: var(--white);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.segmented-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.seg-tab {
  height: 44px;
  border-radius: 999px;
  border: 1.5px solid #E7E5DE;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.seg-tab.active {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--white);
}

/* PERFORATED TICKET CARDS */
.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ticket-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 82px;
  align-items: center;
  border-radius: 18px;
  padding: 15px 0;
  color: var(--white);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.14s ease, opacity 0.2s ease;
}
.ticket-card:active { transform: scale(0.985); }

.ticket-ochre { background: var(--ochre); }
.ticket-mustard { background: var(--mustard); }
.ticket-taupe { background: var(--taupe); }
.ticket-sage { background: var(--sage-completed); }

.ticket-left {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px 0 16px;
}

.ticket-check {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 7px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
}

.ticket-card.done .ticket-check {
  background: var(--white);
  border-color: var(--white);
  color: var(--sage-completed);
}

.ticket-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.ticket-right {
  position: relative;
  text-align: center;
  padding: 0 10px;
  border-left: 1.5px dashed rgba(255, 255, 255, 0.5);
}

/* Ticket semicircular notches */
.ticket-right::before,
.ticket-right::after {
  content: "";
  position: absolute;
  left: -7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
}
.ticket-right::before { top: -21px; }
.ticket-right::after { bottom: -21px; }

.ticket-coins-val {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.1;
}
.ticket-coins-label {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.92;
}

.completed-section {
  margin-top: 22px;
}
.section-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
  margin: 0 0 10px;
}

/* ---------------- SCREEN 2: JOY BUDGET & RULES ---------------- */
.cream-scroll {
  padding: calc(18px + var(--safe-top)) 20px 24px;
  background: var(--cream);
  min-height: 100%;
}

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

.joy-greeting {
  font-size: 15px;
  color: var(--ink-muted);
}
.joy-greeting strong {
  color: var(--ink);
  font-weight: 700;
}

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

.cream-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #EAE6DA;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.avatar-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--white);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}
.avatar-circle-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-headline {
  margin: 0 0 20px;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.025em;
}
.editorial-headline strong {
  font-weight: 800;
}

/* SET YOUR RULES DIAL */
.rules-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.dial-box {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 18px;
  border: 2.5px solid #68655E;
  background: var(--cream-light);
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
}

.dial-number {
  font-family: var(--font-condensed);
  font-size: 30px;
  font-weight: 600;
  color: var(--ink-muted);
}

.dial-tick {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
}

.rules-meta {
  flex: 1;
}

.rules-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.condensed-label {
  font-family: var(--font-condensed);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mini-badge-arrow {
  font-size: 11px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  color: var(--ink);
}

.rules-sub {
  margin: 3px 0 8px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.dial-controls {
  display: flex;
  gap: 8px;
}

.dial-step-btn {
  width: 30px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid #D9D4C5;
  background: var(--white);
  font-weight: 700;
  cursor: pointer;
}

/* WAVY CARDS */
.wavy-card {
  position: relative;
  border-radius: 24px 24px 0 0;
  padding: 20px 20px 36px;
  margin-bottom: 16px;
  overflow: hidden;
}

.purple-card {
  background: linear-gradient(135deg, #8B6EE4 0%, #7456D1 100%);
  color: var(--white);
}

.amber-card {
  background: linear-gradient(135deg, #F7C21A 0%, #F49B1B 100%);
  color: var(--ink);
}

.card-wave-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 20px;
  pointer-events: none;
}

.wavy-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.wavy-card-title {
  margin: 0;
  font-family: var(--font-condensed);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
}
.wavy-card-title.dark { color: var(--ink); }

.wavy-card-sub {
  margin: 2px 0 0;
  font-size: 12px;
  opacity: 0.85;
}

.card-head-btns {
  display: flex;
  gap: 8px;
}

.card-circle-action {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

.budget-slider-wrap {
  position: relative;
  padding-top: 26px;
}

.budget-pill-float {
  position: absolute;
  top: 0;
  left: 40%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  pointer-events: none;
}

.budget-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5BB8FF 0%, #B87DFF 50%, #FF6B7B 100%);
  outline: none;
}

.budget-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid #7456D1;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.budget-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.9;
}

.treat-prompt-pill {
  width: 100%;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: #5C3D04;
  cursor: pointer;
  text-align: left;
}

.sparkle-icon {
  font-size: 18px;
}

/* REWARDS GRID */
.rewards-section {
  margin-top: 8px;
}
.rewards-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.condensed-section-title {
  margin: 0;
  font-family: var(--font-condensed);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.coin-chip {
  background: var(--olive);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
}
.rewards-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.reward-card {
  background: var(--white);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #EAE6DA;
}
.reward-title {
  font-size: 15px;
  font-weight: 700;
}
.reward-meta {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}
.reward-redeem-btn {
  border: none;
  background: var(--olive);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.reward-redeem-btn:disabled {
  background: #D8D4C8;
  color: #777368;
  cursor: not-allowed;
}

/* ---------------- SCREEN 3: CALENDAR ---------------- */
.calendar-purple-top {
  background: linear-gradient(180deg, #7B5ED7 0%, #8E71E6 100%);
  color: var(--white);
  padding: calc(18px + var(--safe-top)) 18px 28px;
}

.cal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cal-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.cal-selector-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.month-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-family: var(--font-condensed);
}

.month-faded {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-condensed);
  font-size: 17px;
  cursor: pointer;
}

.month-active {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.month-active span {
  font-weight: 300;
  font-size: 15px;
  opacity: 0.85;
}

.day-pills-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.day-pill {
  background: rgba(255, 255, 255, 0.16);
  border: none;
  border-radius: 16px;
  padding: 12px 6px;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-family: var(--font-sans);
}

.day-pill.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(42, 24, 92, 0.25);
}

.day-name {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.75;
}
.day-num {
  font-size: 20px;
  font-weight: 700;
}
.day-dot {
  width: 14px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}
.day-pill.active .day-dot {
  background: #5BB8FF;
}

.schedule-sheet {
  margin-top: -16px;
  background: var(--cream);
  border-radius: 26px 26px 0 0;
  padding: 16px 18px 28px;
  min-height: 460px;
}

.sage-banner-pill {
  background: #849B7E;
  color: var(--white);
  border-radius: 999px;
  padding: 8px 8px 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.avatar-stack {
  display: flex;
}
.avatar-stack img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #849B7E;
  object-fit: cover;
}
.avatar-stack img + img {
  margin-left: -8px;
}

.sage-banner-text {
  font-size: 14px;
}

.sage-sparkle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.24);
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: start;
}

.timeline-hour {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  padding-top: 4px;
}

.timeline-card {
  border-left: 2px solid #DDD8C8;
  padding-left: 14px;
  padding-bottom: 4px;
}

.timeline-title {
  font-size: 15px;
  font-weight: 700;
}

.timeline-sub {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.timeline-with {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--olive);
  text-transform: uppercase;
}

/* ---------------- SCREEN 4: MASCOT PICKER ---------------- */
.mascot-page {
  min-height: 100%;
  background: var(--cream-light);
  padding: calc(28px + var(--safe-top)) 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.mascot-selected-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #3CA4E8;
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
}

.mascot-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px 0;
  width: 100%;
}

.mascot-option {
  border: none;
  background: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.22s ease, opacity 0.22s ease;
  opacity: 0.55;
  transform: scale(0.82);
}

.mascot-option.active {
  opacity: 1;
  transform: scale(1.06);
}

.mascot-circle {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.mascot-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mascot-name {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--purple-deep);
}

.mascot-bottom-card {
  width: 100%;
  background: var(--white);
  border-radius: 28px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(34, 33, 30, 0.06);
}

.destiny-light {
  font-family: var(--font-condensed);
  font-size: 24px;
  font-weight: 300;
  color: #9C988E;
  letter-spacing: 0.03em;
}

.destiny-bold {
  font-family: var(--font-condensed);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.destiny-copy {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.45;
  margin: 0 0 16px;
}

.name-edit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--cream);
  padding: 8px 12px;
  border-radius: 14px;
  margin-bottom: 16px;
}
.name-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
}
.name-input {
  border: none;
  background: transparent;
  text-align: right;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  outline: none;
  width: 60%;
}

.purple-cta-btn {
  width: 100%;
  height: 50px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #8A6DE3 0%, #7254CF 100%);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(114, 84, 207, 0.3);
}

/* ---------------- FLOATING PILL NAV ---------------- */
.floating-nav-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(16px + var(--safe-bottom));
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 40;
}

.floating-nav {
  pointer-events: auto;
  background: var(--nav-dark);
  padding: 7px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 14px 32px rgba(20, 19, 17, 0.28);
}

.nav-item {
  width: 52px;
  height: 44px;
  border-radius: 19px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-item.active {
  background: var(--white);
  color: var(--ink);
}

/* ---------------- MODAL ---------------- */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 23, 20, 0.45);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: end center;
  z-index: 50;
}
.modal-backdrop[hidden] { display: none; }

.modal-sheet {
  width: 100%;
  background: var(--white);
  border-radius: 26px 26px 0 0;
  padding: 20px 20px calc(24px + var(--safe-bottom));
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.modal-title { margin: 0; font-size: 18px; font-weight: 700; }
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--cream);
  cursor: pointer;
  font-weight: 700;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.field-input, .field-select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1.5px solid #E4E0D4;
  font-family: var(--font-sans);
  font-size: 14px;
}
