/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  background-color: #020617;  /* solid deep blue behind everything */
}


body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #3b82f6 0, #0f172a 45%, #020617 100%);
  color: #f9fafb;
}

/* App layout */
.app {
  min-height: 100vh;
  min-height: 100svh;   /* NEW – fixes iOS Safari “address bar” height bug */
  display: flex;
  align-items: stretch;
  justify-content: center;
}


.screen {
  display: none;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.screen.active {
  display: flex;
}

.content {
  margin: auto;
  width: 100%;
}

/* Typography */
h1, h2, h3 {
  margin: 0 0 8px;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

.subtitle {
  margin: 0 0 20px;
  opacity: 0.85;
}

.step-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: 0.7;
  margin-bottom: 6px;
}

/* Cards & visual elements */
.card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 18px;
  padding: 16px 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.6);
  margin-bottom: 18px;
}

/* ----------------------------------- */
/*   WATER CIRCLE  (matches bed/med)   */
/* ----------------------------------- */

.water-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.water-circle {
  position: relative;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  background: radial-gradient(circle at top,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 1));

  border: 6px solid rgba(72, 207, 255, 0.85);
box-shadow: 0 0 45px rgba(72, 207, 255, 0.55);

}

/* Water fill overlay inside the circle */
.water-circle::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -10%;          /* start a bit below */
  top: 30%;              /* only lower part is "water" */
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 100%,
    rgba(56, 189, 248, 0.55),
    rgba(56, 189, 248, 0.0) 65%
  );
  mix-blend-mode: screen;
  opacity: 0.35;
  transform-origin: bottom center;
  animation: waterWave 4.2s ease-in-out infinite;
  z-index: 2;           /* under the glass image, above background */
}

@keyframes waterWave {
  0% {
    transform: translateY(10%) scaleY(0.9);
    opacity: 0.25;
  }
  25% {
    transform: translateY(0) scaleY(1);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-6%) scaleY(1.05);
    opacity: 0.5;
  }
  75% {
    transform: translateY(0) scaleY(1);
    opacity: 0.4;
  }
  100% {
    transform: translateY(10%) scaleY(0.9);
    opacity: 0.25;
  }
}



.water-image {
  position: relative;
  z-index: 1;
  width: 177px;             /* keep your size */
  height: 177px;
  border-radius: 50%;       /* 👈 cut corners of the PNG */
  object-fit: cover;        /* 👈 zooms nicely into the circle */
  display: block;
  filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.9));
  /* 👇 NEW: circular mask to kill the square aura */
  -webkit-mask-image: radial-gradient(circle at center, #000 70%, transparent 71%);
  mask-image: radial-gradient(circle at center, #000 70%, transparent 71%);
}


.water-text {
  font-size: 1rem;
  color: rgba(191, 219, 254, 0.9);
}




/* Image inside circle */
.circle img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  border-radius: 50%;      /* NEW – makes the PNG round on all devices */
}


/* MATCHING circle size used in Meditation & Bed */
.circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, #0a1628 60%, #0d1b2f);
  border: 6px solid rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}


.circle-water {
  animation: waterPulse 3.5s ease-in-out infinite;
}

@keyframes waterPulse {
  0%   { box-shadow: 0 0 40px rgba(56,189,248,0.35); }
  50%  { box-shadow: 0 0 60px rgba(56,189,248,0.55); }
  100% { box-shadow: 0 0 40px rgba(56,189,248,0.35); }
}



.circle.soft {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.5);
}

.option-card h3 {
  margin-bottom: 4px;
}

.option-card p {
  margin: 0;
  opacity: 0.9;
}

.list {
  padding-left: 20px;
  margin: 8px 0 0;
  opacity: 0.9;
}

.list li + li {
  margin-top: 4px;
}

textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: #f9fafb;
  background: rgba(15, 23, 42, 0.9);
  resize: vertical;
  margin-bottom: 10px;
}

textarea::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

/* Buttons */
.actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

button {
  border-radius: 999px;
  padding: 10px 16px;
  border: none;
  font-size: 15px;
  cursor: pointer;
  font-weight: 500;
}

button.primary {
  flex: 1;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #f9fafb;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.6);
}

button.primary:hover {
  filter: brightness(1.08);
}

button.secondary {
  flex: 0 0 auto;
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.65);
}

button.secondary:hover {
  background: rgba(15, 23, 42, 1);
}

button.small {
  padding: 6px 10px;
  font-size: 13px;
}

/* Per-screen timers */
.timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 12px 0 4px;
}

.timer-time {
  font-size: 26px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid rgba(96, 165, 250, 0.9); /* blue glow */
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 14px rgba(96, 165, 250, 0.4);
  transition: all .25s ease;
  margin-bottom: 8px;
}

.timer-time.timer-done {
  border-color: rgba(167, 139, 250, 0.9);        /* purple glow when done */
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.6);
}

.timer-buttons {
  display: flex;
  gap: 8px;
}

/* Small responsive tweak */
@media (min-width: 768px) {
  .screen {
    padding-top: 40px;
  }
}
/* Category pills for affirmations */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
}

.pill {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  cursor: pointer;
}


/* Glass hover effect */
/* Premium neon glow hover */
/* Desktop-only hover for category pills */
@media (hover: hover) and (pointer: fine) {
  .pill:hover {
    background: rgba(80, 120, 255, 0.20);
    border-color: rgba(130, 160, 255, 0.75);
    box-shadow:
      0 0 12px rgba(70, 130, 255, 0.50),
      0 0 24px rgba(70, 130, 255, 0.30),
      inset 0 0 10px rgba(120, 160, 255, 0.25);
    transform: translateY(-1px);
    transition: all 0.25s ease;
  }
}



.pill-active {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border-color: transparent;
  color: #f9fafb;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.5);
}

/* Pagination under affirmations */
.affirm-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.affirm-counter {
  font-size: 13px;
  opacity: 0.8;
}
.list li {
  position: relative;
  padding: 16px 20px;
  margin: 12px 0;
  border-radius: 16px;
  background: rgba(25, 38, 69, 0.6);
  border: 1px solid rgba(96, 165, 250, 0.2);
  transition: all 0.25s ease;
}

/* 🔥 Hover glow effect */
.list li:hover {
  border-color: rgba(96, 165, 250, 0.8);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.6);
  transform: translateY(-2px);
  cursor: pointer;
}
/* Meditation card layout */
.meditation-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

/* Outer glowing circle container */
.med-circle {
  position: relative;
  width: 190px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* SVG covers the whole circle area */
.med-svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg); /* start stroke at top */
}

/* background ring */
.med-bg {
  fill: none;
  stroke: rgba(30, 64, 175, 0.7);
  stroke-width: 8;
}

/* animated ring */
.med-progress {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  stroke: rgba(56, 189, 248, 0.9); /* default inhale color */

  /* color changes quickly, arc moves smoothly over ~1s */
  transition:
    stroke-dashoffset 1s ease-out,
    stroke 0.3s ease;
}


.meditation-image {
  position: relative;
  z-index: 1;
  width: 140px;             /* bigger */
  height: 140px;
  border-radius: 50%;       /* cuts the corners */
  object-fit: cover;        /* zooms to fill the circle */
  display: block;
  filter: drop-shadow(0 10px 25px rgba(15, 23, 42, 0.9));
  transition: opacity 0.25s ease;
}




.meditation-image.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Ready / Set / Go text over the image */
.med-countdown {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e5e7eb;
  text-shadow: 0 0 16px rgba(15, 23, 42, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.med-countdown.visible {
  opacity: 1;
}

.med-instructions {
  font-size: 0.95rem;
  color: rgba(191, 219, 254, 0.85);
}

.med-phase-label {
  margin-top: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(191, 219, 254, 0.9);
}

/* 03:00 pill timer */
.med-timer-pill {
  margin-top: 4px;
  padding: 8px 28px;
  border-radius: 999px;
  border: 2px solid rgba(96, 165, 250, 0.9);
  box-shadow: 0 0 25px rgba(96, 165, 250, 0.7);
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.7), rgba(15, 23, 42, 1));
}

.med-timer-pill span {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.med-timer-buttons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.med-timer-buttons .small {
  padding: 6px 16px;
  font-size: 0.9rem;
}

/* Sound toggle */
.sound-toggle {
  margin-top: 8px;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 0.85rem;
  cursor: pointer;
}

.sound-toggle:hover {
  border-color: rgba(96, 165, 250, 0.9);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.5);
}
.med-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;               /* 👈 hidden by default */
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.med-inner.visible {
  opacity: 1;               /* 👈 show when JS adds this class */
}

.med-inner-phase {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.9);
}

.med-inner-count {
  font-size: 2.2rem;
  font-weight: 600;
  color: #e5f0ff;
}
.med-done-message {
  margin-top: 18px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #e5edff;
  text-shadow:
    0 0 12px rgba(59, 130, 246, 0.7),
    0 0 24px rgba(59, 130, 246, 0.4);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.med-done-message.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: wellDonePulse 1.4s ease-out forwards;
}

/* subtle proud pulse */
@keyframes wellDonePulse {
  0% {
    text-shadow:
      0 0 0 rgba(59, 130, 246, 0.0),
      0 0 0 rgba(59, 130, 246, 0.0);
  }
  40% {
    text-shadow:
      0 0 12px rgba(59, 130, 246, 0.9),
      0 0 28px rgba(59, 130, 246, 0.7);
  }
  100% {
    text-shadow:
      0 0 10px rgba(59, 130, 246, 0.6),
      0 0 20px rgba(59, 130, 246, 0.35);
  }
}
.med-done.visible {
  opacity: 1;
  transform: translateY(0);
  text-shadow: 0 0 12px rgba(255,255,255,0.5);
}

.bed-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

/* Circle – same footprint as meditation */
.bed-circle {
  position: relative;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  /* same kind of glow as meditation */
  background: radial-gradient(circle at top,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 1));
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.55);
  border: 6px solid rgba(96, 165, 250, 0.85);
}

/* extra soft halo */
.bed-circle::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 999px;
  box-shadow: 0 0 55px rgba(56, 189, 248, 0.45);
  opacity: 0.9;
}

/* Bed icon – sized like the meditating person */
.bed-image {
  position: relative;
  z-index: 1;
  width: 177px;             /* keep your size here too */
  height: 177px;
  border-radius: 50%;       /* 👈 same circular mask */
  object-fit: cover;
  display: block;
  filter: drop-shadow(0 10px 26px rgba(15, 23, 42, 0.95));
  /* 👇 NEW: circular mask to kill the square aura */
  -webkit-mask-image: radial-gradient(circle at center, #000 70%, transparent 71%);
  mask-image: radial-gradient(circle at center, #000 70%, transparent 71%);

}



.bed-done-msg {
  margin-top: 20px;
  font-size: 0.95rem;
  color: #e5e7eb;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.8);
}
.bed-done-msg.visible {
  opacity: 1;
  transform: translateY(0);
}

.bed-motivation {
  margin-top: -4px;
  font-size: 1rem;
  color: rgba(191, 219, 254, 0.9);
  text-align: center;
}

.bed-card {
  gap: 16px;
}

/* exercise*/
.movement-options {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

/* Card container */
.movement-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: 0.25s;
  box-shadow: 0 0 20px rgba(0, 150, 255, 0);
}

/* Left side: check + text */
.move-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.move-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(2px);
  transition: 0.25s ease;
  flex-shrink: 0;
}


.move-text {
  color: #e5edff;
  font-size: 0.95rem;
}

/* Right side: glowing circular icon */
/* Right side: glowing circular icon */
.move-illustration-wrap {
  position: relative;
  flex-shrink: 0;
}

.move-illustration-wrap::before {
  content: "";
  position: absolute;
  inset: -3px; /* small outer ring */
  border-radius: 50%;
  border: 2px solid rgba(80, 180, 255, 0.7);
  box-shadow: 0 0 5px rgba(80, 180, 255, 0.8);
  pointer-events: none;
}

/* main movement icon */
.move-illustration {
  width: 46px;         /* final shared size */
  height: 46px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  box-shadow:
    0 0 10px rgba(0, 195, 255, 0.7),
    0 0 20px rgba(0, 190, 255, 0.5),
    0 0 35px rgba(0, 170, 255, 0.4);
  transition: 0.25s ease;
}

/* Hover & selected states */
.movement-card:hover {
  background: rgba(255, 255, 255, 0.10);
  transform: translateY(-2px);
}

.movement-card.selected {
  background: rgba(80, 140, 255, 0.25);
  border-color: rgba(120, 180, 255, 0.8);
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.65);
}

.movement-card.selected .move-check {
  background: linear-gradient(135deg, #4f9dff, #73b1ff);
  color: white;
  border-color: transparent;
  box-shadow:
    0 0 10px rgba(125, 180, 255, 0.6),
    0 0 18px rgba(90, 145, 255, 0.6);
  opacity: 1;
}

.movement-card.selected .move-illustration {
  transform: scale(1.08);
  box-shadow:
    0 0 12px rgba(0, 220, 255, 0.9),
    0 0 24px rgba(0, 200, 255, 0.7),
    0 0 45px rgba(0, 170, 255, 0.6),
    0 0 70px rgba(0, 150, 255, 0.4);
}

/* Small screens: keep things tidy */
@media (max-width: 480px) {
  .move-illustration {
    width: 42px;
    height: 42px;
  }

  .move-text {
    font-size: 0.9rem;
  }
}
.movement-hint {
  margin-top: 8px;
  font-size: 0.8rem;
  text-align: center;
  color: rgba(248, 250, 252, 0.75);
  opacity: 1;
  max-height: 60px;
  transform: translateY(0);
  transition: 0.25s ease;
}

.movement-hint.hidden {
  opacity: 0;
  max-height: 0;
  transform: translateY(4px);
}

/*gratitude*/

.gratitude-options {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

/* Card container */
.gratitude-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 0 20px rgba(0, 150, 255, 0);
}

/* Top row: icon + texts */
.gratitude-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gratitude-icon {
  width: 47px;
  height: 47px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: radial-gradient(circle at 30% 20%, rgba(248, 250, 252, 0.3), transparent),
              rgba(37, 99, 235, 0.45);
  box-shadow:
    0 0 10px rgba(59, 130, 246, 0.7),
    0 0 18px rgba(56, 189, 248, 0.5);
  flex-shrink: 0;
}
.gratitude-icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;   /* makes the image round */
  object-fit: cover;    /* fills the circle perfectly */
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.9));
}



.gratitude-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gratitude-title {
  font-size: 0.98rem;
  color: #eff4ff;
  font-weight: 600;
}

.gratitude-subtitle {
  font-size: 0.85rem;
  color: rgba(226, 232, 255, 0.82);
}

/* Hidden detail text that appears when selected */
.gratitude-detail {
  font-size: 0.82rem;
  color: rgba(226, 232, 255, 0.78);
  line-height: 1.4;
  margin: 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: 0.25s ease;
}

/* Hover + selected state */
.gratitude-card:hover {
  background: rgba(255, 255, 255, 0.10);
  transform: translateY(-2px);
}

.gratitude-card.selected {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.55), rgba(59, 130, 246, 0.45));
  border-color: rgba(191, 219, 254, 0.9);
  box-shadow:
    0 0 24px rgba(37, 99, 235, 0.75),
    0 0 40px rgba(56, 189, 248, 0.65);
}

.gratitude-card.selected .gratitude-detail {
  opacity: 1;
  max-height: 200px;
}

.gratitude-card.selected .gratitude-icon {
  transform: scale(1.05);
  box-shadow:
    0 0 14px rgba(59, 130, 246, 0.95),
    0 0 26px rgba(56, 189, 248, 0.85);
}

@media (max-width: 480px) {
  .gratitude-title {
    font-size: 0.95rem;
  }
  .gratitude-subtitle {
    font-size: 0.82rem;
  }
  .gratitude-icon {
    width: 30px;
    height: 30px;
    font-size: 17px;
  }
}
.gratitude-hint {
  margin-top: 8px;
  font-size: 0.8rem;
  text-align: center;
  color: rgba(248, 250, 252, 0.75);
  opacity: 1;
  max-height: 60px;
  transform: translateY(0);
  transition: 0.25s ease;
}

.gratitude-hint.hidden {
  opacity: 0;
  max-height: 0;
  transform: translateY(4px);
}
/* ================================
   FINAL SCREEN — ROUTINE COMPLETE
=================================== */

.content-complete {
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 40px;
}

/* main celebration card */
.complete-highlight {
  margin-top: 26px;
  padding: 22px 20px;
  border-radius: 22px;
  background: radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.28), transparent 55%),
              rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(191, 219, 254, 0.6);
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow:
    0 0 35px rgba(37, 99, 235, 0.6),
    0 0 80px rgba(15, 23, 42, 0.9);
}

/* glowing check icon */
.complete-icon-wrap {
  position: relative;
  width: 66px;
  height: 66px;
  flex-shrink: 0;
}

/* Outer glow circle */
.complete-icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.32), transparent 70%);
  box-shadow:
    0 0 14px rgba(56, 189, 248, 0.9),
    0 0 28px rgba(37, 99, 235, 0.9),
    0 0 46px rgba(37, 99, 235, 0.75);
}

/* Extra inner halo (NEW) */
.complete-icon-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(191, 219, 254, 0.35) 0%,
    rgba(15, 23, 42, 0.2) 60%,
    transparent 100%
  );
  filter: blur(2px);
}

/* White circle + check */
.complete-icon-check {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid rgba(191, 219, 254, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #e5f2ff;
  text-shadow:
    0 0 6px rgba(191, 219, 254, 1),
    0 0 14px rgba(56, 189, 248, 0.95),
    0 0 26px rgba(56, 189, 248, 0.8);
}


/* texts */
.complete-texts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.complete-main {
  font-size: 1rem;
  font-weight: 600;
  color: #f9fbff;
}

.complete-sub {
  font-size: 0.9rem;
  color: rgba(226, 232, 255, 0.82);
  line-height: 1.5;
}

/* bullet summary */
.complete-list {
  margin-top: 18px;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: rgba(226, 232, 255, 0.9);
}

.complete-list li {
  list-style: none;
}

/* buttons alignment */
.actions-complete {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.actions-complete .primary {
  flex: 1;
}

.actions-complete .secondary {
  min-width: 150px;
}

/* mobile tweaks */
@media (max-width: 480px) {
  .complete-highlight {
    padding: 18px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .complete-icon-wrap {
    width: 58px;
    height: 58px;
  }

  .complete-main {
    font-size: 0.95rem;
  }

  .complete-sub {
    font-size: 0.84rem;
  }

  .complete-list {
    font-size: 0.85rem;
  }
}
/*final changes sounds and checkmarks*/
/*water*/
/* Water "done" button animation */
#water-done-btn.done-check {
  background: linear-gradient(135deg, #4f9dff, #76b7ff);
  border-color: rgba(150, 200, 255, 0.8);
  color: white !important;
  box-shadow: 
    0 0 10px rgba(125, 180, 255, 0.8),
    0 0 20px rgba(56, 180, 255, 0.7);

  transform: scale(1.03);
  transition: all 0.3s ease;
}
.done-check {
  animation: donePop 0.25s ease forwards;
}

@keyframes donePop {
  0%   { transform: scale(1); }
  60%  { transform: scale(1.08); }
  100% { transform: scale(1.03); }
}
/*affirmations*/
/* Base hidden state */
.affirm-done-msg {
  margin-bottom: 14px;           
  text-align: center;
  font-size: 0.92rem;
  font-weight: 500;
  color: #e7f1ff;
  opacity: 0;
  max-height: 0;
  pointer-events: none;

  /* Subtle entrance motion */
  transform: translateY(6px);
  transition: 
    opacity 0.35s ease,
    max-height 0.35s ease,
    transform 0.35s ease;
}

/* Visible (fade + slide) */
.affirm-done-msg.visible {
  opacity: 1;
  max-height: 200px;
  transform: translateY(0);
}

/* Soft glow behind the text */
.affirm-done-msg.visible {
  text-shadow:
    0 0 6px rgba(120, 180, 255, 0.7),
    0 0 14px rgba(80, 150, 255, 0.5),
    0 0 22px rgba(60, 130, 255, 0.35);
}

/* STEP 5 — Movement "I've moved!" button glow */
#movement-done-btn.movement-complete {
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  border-color: rgba(94, 234, 212, 0.9);
  color: #f9fafb;
  box-shadow:
    0 0 12px rgba(45, 212, 191, 0.95),
    0 0 28px rgba(59, 130, 246, 0.9);
  transform: scale(1.04);
  transition: all 0.28s ease;
}

/* Slightly different pop from the water one */
.movement-complete {
  animation: movementPop 0.28s ease forwards;
}

@keyframes movementPop {
  0%   { transform: scale(1); }
  55%  { transform: scale(1.09); }
  100% { transform: scale(1.04); }
}
/* STEP 6 — Gratitude button glow */
#gratitude-continue-btn.gratitude-complete {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  border-color: rgba(216, 180, 254, 0.9);
  color: #ffffff;
  box-shadow:
    0 0 10px rgba(168, 85, 247, 0.9),
    0 0 22px rgba(236, 72, 153, 0.8);
  transform: scale(1.04);
  transition: all 0.28s ease;
}

.gratitude-complete {
  animation: gratitudePop 0.28s ease forwards;
}

@keyframes gratitudePop {
  0%   { transform: scale(1); }
  55%  { transform: scale(1.1); }
  100% { transform: scale(1.04); }
}
/* Final screen container for confetti */
#screen-complete {
  position: relative;
  overflow: hidden; /* keep confetti inside */
}
/* Pulse celebration on the final card */
.complete-highlight.complete-celebrate {
  animation: completePulse 1.4s ease-out 0s 1;
}

@keyframes completePulse {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 35px rgba(37, 99, 235, 0.6),
      0 0 80px rgba(15, 23, 42, 0.9);
  }
  40% {
    transform: scale(1.02);
    box-shadow:
      0 0 45px rgba(59, 130, 246, 0.9),
      0 0 110px rgba(15, 23, 42, 1);
  }
  80% {
    transform: scale(1.01);
    box-shadow:
      0 0 38px rgba(37, 99, 235, 0.7),
      0 0 90px rgba(15, 23, 42, 0.95);
  }
  100% {
    transform: scale(1);
    box-shadow:
      0 0 35px rgba(37, 99, 235, 0.6),
      0 0 80px rgba(15, 23, 42, 0.9);
  }
}
/* Confetti overlay for completion */
.confetti-layer {
  position: fixed;     /* instead of absolute */
  inset: 0;            /* full screen */
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;       /* stay above UI */
}


.confetti-piece {
  position: absolute;
  top: -10px;
  width: 6px;
  height: 14px;
  border-radius: 999px;
  opacity: 0;
  animation-name: confetti-fall;
  animation-timing-function: cubic-bezier(.37, .01, .21, .99);
  animation-fill-mode: forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translate3d(0, -12px, 0) rotateZ(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translate3d(0, 120vh, 0) rotateZ(280deg);
    opacity: 0;
  }
}
/* =============================== */
/* Premium Glass Bottom Selector   */
/* =============================== */

.bottom-toggle-container {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom) + 26px);
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 420px;
  z-index: 50;
}

/* Glass container */
.mode-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 6px;
  border-radius: 999px;

  background: linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.12),
      rgba(15, 23, 42, 0.75)
    ),
    rgba(15, 23, 42, 0.88);

  border: 1px solid rgba(255, 255, 255, 0.15);

  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 1px 8px rgba(255, 255, 255, 0.08) inset;

  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

/* Selection bubble */
.mode-toggle-highlight {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 6px);
  border-radius: 999px;

  /* Brighter, “button-like” neon blue gradient */
  background: linear-gradient(
      135deg,
      rgba(96, 165, 250, 1),      /* bright soft blue */
      rgba(37, 99, 235, 0.95)     /* deep royal blue */
    );

  /* Stronger glass light ring + glow */
  box-shadow:
    0 0 12px rgba(96, 165, 250, 0.8),
    0 8px 24px rgba(0, 0, 0, 0.55),
    inset 0 0 10px rgba(255, 255, 255, 0.15),
    inset 0 -6px 12px rgba(15, 23, 42, 0.35);

  transition: transform 0.28s ease;
  will-change: transform;
}


.mode-toggle.night-active .mode-toggle-highlight {
  transform: translateX(100%);
}

/* Buttons */
.mode-option {
  position: relative;
  z-index: 2;
  flex: 1;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;

  padding: 8px 12px;
  border-radius: 999px;

  background: none;
  border: none;
  color: #e5e7eb;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

.mode-option.active {
  color: #ffffff;
}

/* Lock icon */
.mode-lock {
  font-size: 0.65rem;
  transform: translateY(-3px);
  opacity: 0.9;
}

/* Premium PRO badge */
.mode-pro {
  font-size: 0.56rem;
  padding: 1px 5px;
  border-radius: 999px;

  background: rgba(148, 163, 184, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);

  color: #dbeafe;
  transform: translateY(-2px);
  opacity: 0.75;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* =============================== */
/* Night PRO Premium Glassy Modal  */
/* =============================== */

.pro-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;

  background: rgba(0, 6, 20, 0.72);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  z-index: 80;
}

.pro-modal-overlay.open {
  display: flex;
}

/* ===== Card ===== */
.pro-modal {
  width: 90%;
  max-width: 420px;
  padding: 24px 26px 22px;
  border-radius: 22px;

  /* Deep premium navy */
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 55%),
    linear-gradient(145deg, #071427, #020617);

  /* Softer premium border */
  border: 1px solid rgba(148, 163, 184, 0.45);

  /* Deeper subtle glass shadow */
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(15, 23, 42, 0.9);

  color: #e5e7eb;
  font-size: 0.9rem;
}

/* ===== Header ===== */
.pro-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.pro-modal-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.pro-icon {
  font-size: 1.45rem;
}

/* ===== Text Sections ===== */
.pro-text {
  margin: 0 0 10px;
  color: #cfd8e8;
}

.pro-list {
  margin: 0 0 14px 1.2rem;
  padding: 0;
  color: #d1ddf7;
}

.pro-list li {
  margin-bottom: 6px;
}

.pro-note {
  margin: 0 0 18px;
  font-size: 0.82rem;
  color: #b7c4e6;
}

.pro-note strong {
  color: #facc15;
}

/* ===== Button Area ===== */
.pro-actions {
  display: flex;
  justify-content: flex-end;
}

/* ==== Premium Primary Button ==== */
/* Premium Glass Button */
.pro-primary-btn {
  padding: 10px 26px;
  border-radius: 14px;
  border: none;
  cursor: pointer;

  /* Main gradient (same family as your main morning button) */
  background: linear-gradient(
    135deg,
    #6ea8ff 0%,
    #4b75ff 40%,
    #335dff 100%
  );

  color: white;
  font-size: 0.9rem;
  font-weight: 500;

  /* Premium glow but *not huge* */
  box-shadow:
    0 0 14px rgba(76, 141, 255, 0.65),   /* soft outer glow */
    0 4px 14px rgba(0,0,0,0.45),        /* subtle downward shadow */
    inset 0 0 8px rgba(255, 255, 255, 0.15); /* light inner shine */

  transition: all 0.18s ease;
}

/* Hover: brighter but NOT bigger */
.pro-primary-btn:hover {
  filter: brightness(1.06);
  box-shadow:
    0 0 18px rgba(88, 155, 255, 0.75),
    0 6px 16px rgba(0,0,0,0.48),
    inset 0 0 10px rgba(255, 255, 255, 0.22);
}

/* Pressed state: realistic soft press */
.pro-primary-btn:active {
  transform: scale(0.97);
  box-shadow:
    0 0 10px rgba(76, 141, 255, 0.55),
    0 3px 10px rgba(0,0,0,0.5),
    inset 0 0 6px rgba(255,255,255,0.12);
}

/* =============================== */
/* Step 3 – Affirmations layout    */
/* =============================== */

/* Outer rounded box around header + items */
.affirm-list-wrapper {
  margin-top: 12px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(10, 18, 35, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}

/* Header inside the box ("Affirmations") */
.affirm-header {
  padding: 8px 18px 6px;
  font-size: 0.85rem;
  text-align: center;
  color: #e5e7eb;
  opacity: 0.9;
  border-bottom: 1px solid rgba(30, 41, 59, 0.85);
}

/* List of affirmations */
#affirm-list {
  list-style: none;
  margin: 0;
  padding: 6px 18px 8px;
  padding-left: 26px !important;
}

/* One row per affirmation */
#affirm-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;           /* MORE space between star and text (was 10px) */

  margin: 0;
  padding: 10px 0;     /* vertical padding only — cleanest result */

  font-size: 0.95rem;
  line-height: 1.55;
  color: #e5edff;

  border-bottom: 1px solid rgba(30, 41, 59, 0.9);
  background: transparent;
}


/* No divider under last one */
#affirm-list li:last-child {
  border-bottom: none;
}

/* Kill old generic bullet style */
#affirm-list li::before {
  content: none;
}

#affirm-list li + li {
  margin-top: 6px;     /* adds spacing BETWEEN items */
}

/* Glowing star bullet that JS injects */
.list-bullet {
  flex-shrink: 0;
  margin-top: 2px;
  margin-left: 4px;
  font-size: 0.9rem;
  color: #60a5fa;
  text-shadow:
    0 0 6px rgba(56, 189, 248, 0.9),
    0 0 18px rgba(37, 99, 235, 0.9);
}

/* Text takes remaining width */
#affirm-list li span:last-child {
  flex: 1;
}

/* Pagination row under the box */
.affirm-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.affirm-counter {
  font-size: 13px;
  opacity: 0.8;
}
/* Remove the rounded pill borders inside affirmations */
#affirm-list li {
  border: none !important;
  border-radius: 0 !important;
  padding: 8px 0 !important;
  background: transparent !important;
  box-shadow: none !important;

}
/*------------------------------------------/*
/* Streak pill on welcome screen */
/* Premium Streak Badge */
/* ============================= */
/* Premium dark + neon streak badge */
/* ============================= */

.streak-badge {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);

  padding: 10px 26px;
  border-radius: 18px;

  display: inline-flex;          /* keeps icon + text on one row */
  align-items: center;
  gap: 10px;

  max-width: 90vw;               /* avoid overflowing on very small phones */
  white-space: nowrap;           /* never wrap to two lines */

  /* Dark interior */
  background: rgba(4, 16, 48, 0.95);

  /* Thin bright border */
  border: 1px solid rgba(120, 190, 255, 0.95);

  /* Strong outer neon glow */
  box-shadow:
    0 0 26px rgba(40, 140, 255, 0.85),
    0 0 0 1px rgba(40, 140, 255, 0.8);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  animation: streakFadeIn 0.6s ease-out;
}

.streak-badge-icon {
  width: 28px;
  height: 28px;
  display: block;
}

#streak-text {
  color: #f5f7ff;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 8px rgba(160, 210, 255, 0.9),
    0 0 14px rgba(80, 150, 255, 0.75);
}

/* Keep badge hidden when we don't have a streak yet */
.hidden {
  display: none;
}

@keyframes streakFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Mobile tweaks: slightly smaller + tighter on very small screens */
@media (max-width: 420px) {
  .streak-badge {
    padding: 8px 18px;
    gap: 8px;
  }

  .streak-badge-icon {
    width: 24px;
    height: 24px;
  }

  #streak-text {
    font-size: 0.95rem;
  }
}

/* ============================= */
/* Primary blue CTA button       */
/* ============================= */

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  border: none;
  padding: 12px 26px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(80, 140, 255, 0.6);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  box-shadow: 0 0 24px rgba(120, 170, 255, 0.9);
  transform: translateY(-2px);
}
/* ============================= */
/* iOS install bubble + overlay  */
/* ============================= */

.ios-install-badge {
  position: absolute;
  top: 40px;          /* same vertical as streak */
  left: 20px;         /* move to top-left */
  z-index: 11;

  padding: 6px 14px;
  font-size: 12px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  background: rgba(4, 16, 48, 0.95);
  border: 1px solid rgba(96, 165, 250, 0.9);
  box-shadow:
    0 0 12px rgba(120, 190, 255, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.15);


  color: #e5e7eb;
  font-size: 13px;
  cursor: pointer;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
/* When the iOS install bubble is visible, push streak lower */
body.show-ios-install-badge .streak-badge {
  top: 84px; /* adjust if you want a bit more/less space */
}

.ios-install-icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(129, 140, 248, 0.9);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 12px;
}

.ios-install-text {
  white-space: nowrap;
}

/* Overlay */

.ios-install-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(6px);
  z-index: 40;
}


.ios-install-card {
  max-width: 340px;
  width: 90%;
  padding: 20px 22px;
  border-radius: 20px;

  background: radial-gradient(circle at top,
    rgba(56, 189, 248, 0.18),
    rgba(15, 23, 42, 0.98)
  );
  border: 1px solid rgba(148, 163, 184, 0.65);

  color: #e5e7eb;
  font-size: 0.9rem;
}

.ios-install-card h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.ios-install-card p {
  margin: 0 0 10px;
  opacity: 0.9;
}

.ios-install-close {
  width: 100%;
  padding: 8px 0;
  border-radius: 999px;
  border: none;
  background: rgba(59, 130, 246, 0.95);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
}

/* Utility class to hide elements */
.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}
.install-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);

  /* zoom-in effect */
  object-fit: cover;
}



/* We already have .hidden = opacity:0 + pointer-events:none,
   so combining .ios-install-overlay.hidden is enough */
