:root{
  --bg:#F8F6F2;
  --text:#2E2E2E;

  --accent:#6FA8A3;
  --accent-dark:#477E79;

  --blush: rgba(242, 193, 204, 0.45);
  --seafoam: rgba(196, 227, 221, 0.55);

  --soft:#E4EBE9;
  --card:#FFFFFFE6;

  --ring: rgba(111, 168, 163, 0.42);
  --shadow-soft: 0 22px 55px rgba(46,46,46,0.12);
  --shadow-btn: 0 14px 28px rgba(46,46,46,0.14);

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

*{box-sizing:border-box;}

html,body{height:100%;}

body{
  margin:0;
  color:var(--text);
  font-family:"Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  background: radial-gradient(900px 520px at 20% 70%, var(--seafoam), transparent 55%),
              radial-gradient(900px 520px at 80% 30%, var(--blush), transparent 55%),
              var(--bg);
}

#app{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 32px 18px;
}

.screen{display:none; width:100%;}
.screen.active{display:block;}

.card{
  max-width: 720px;
  margin: 0 auto;
  padding: 26px 22px;
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.home-card{ max-width: 760px; }

.brand-row{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 44px;
}

.brand-row .brand{
  width: 100%;
  text-align: center;
}

.brand-row .icon-btn{
  position: absolute;
  left: 0;
  top: 0;
}

.icon-btn{
  width:44px;
  height:44px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.7);
  box-shadow: 0 10px 22px rgba(46,46,46,0.10);
  cursor:pointer;
}

.brand-title{
  font-family:"Playfair Display", serif;
  font-weight:500;
  font-size: 40px;
  margin: 0;
  text-align:center;
}

.brand-sub{
  margin: 6px 0 0;
  opacity:0.8;
  text-align:center;
}

.welcome{
  margin: 18px 0 18px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(242,193,204,0.28), rgba(196,227,221,0.28));
  border: 1px solid rgba(0,0,0,0.05);
  text-align:center;
}

.welcome-title{ margin:0; font-weight:600; }
.welcome-sub{ margin:6px 0 0; opacity:0.85; }

.primary-btn{
  width:100%;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.65);
  background: linear-gradient(180deg, #7AB6B0 0%, var(--accent) 45%, var(--accent-dark) 100%);
  color:#fff;
  font-size: 16px;
  font-weight:600;
  cursor:pointer;
  box-shadow: var(--shadow-btn);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.primary-btn:hover{ filter: brightness(1.04); transform: translateY(-1px); box-shadow: 0 18px 36px rgba(46,46,46,0.18); }
.primary-btn:active{ transform: translateY(0); box-shadow: 0 10px 20px rgba(46,46,46,0.14); }
.primary-btn:focus-visible{ outline:none; box-shadow: 0 0 0 6px var(--ring), var(--shadow-btn); }

.ghost-btn{
  width:100%;
  padding: 13px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.75);
  color: var(--text);
  font-size: 15px;
  font-weight:600;
  cursor:pointer;
  margin-top: 12px;
  box-shadow: 0 12px 24px rgba(46,46,46,0.08);
}

.gentle{
  margin: 14px 0 0;
  text-align:center;
  opacity:0.78;
}

.topnav{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-bottom: 12px;
}

.nav-btn{
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.78);
  cursor:pointer;
  font-weight:600;
}

.days-title{
  font-family:"Playfair Display", serif;
  font-weight:500;
  margin: 6px 0 4px;
  font-size: 34px;
}

.days-sub{
  margin: 0 0 18px;
  opacity:0.75;
}

.months-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.month-tile{
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.75);
  border-radius: var(--radius-lg);
  padding: 14px 12px;
  text-align:left;
  cursor:pointer;
  box-shadow: 0 14px 30px rgba(46,46,46,0.10);
}

.month-tile .m-name{ font-weight:700; }
.month-tile .m-sub{ margin-top:6px; font-size: 13px; opacity:0.78; }
.lock-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  margin-top: 10px;
}

.days-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.day-tile{
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.75);
  border-radius: var(--radius-lg);
  padding: 14px 12px;
  cursor:pointer;
  text-align:left;
  min-height: 78px;
  box-shadow: 0 14px 30px rgba(46,46,46,0.10);
  position:relative;
}

.day-num{ font-weight:800; }
.day-sub{ margin-top:6px; font-size: 12px; opacity:0.75; min-height: 14px; }

.pill-done{
  position:absolute;
  right:10px;
  top:10px;
  font-size:12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(196,227,221,0.55);
  border: 1px solid rgba(0,0,0,0.06);
  font-weight:700;
}

.scripture{
  font-style: italic;
  opacity: 0.92;
  margin: 10px 0 18px;
  line-height: 1.55;
}

.field{ margin: 14px 0; }
.label{ display:block; font-weight:700; margin-bottom: 8px; opacity:0.9; }

textarea{
  width:100%;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.65);
  font-size: 15px;
  min-height: 90px;
  outline:none;
}
textarea:focus{ box-shadow: 0 0 0 6px var(--ring); }

.prayer-title{
  font-family:"Playfair Display", serif;
  font-weight:500;
  font-size: 18px;
}

.closing-prayer{
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, rgba(242,193,204,0.18), rgba(196,227,221,0.18));
  border: 1px solid rgba(0,0,0,0.05);
  font-style: italic;
  line-height: 1.55;
}

.sticker-title{
  font-family:"Playfair Display", serif;
  font-weight:500;
  margin: 18px 0 8px;
}

.sticker-tray{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.sticker{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.75);
  cursor:pointer;
  font-weight:700;
}

.selected-stickers{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 10px;
}

.sel-sticker{
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.8);
  padding: 8px 10px;
  display:flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
}

.sel-sticker img{
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 10px;
}

.row{ display:flex; align-items:center; gap:12px; margin-top: 12px; flex-wrap:wrap; }
.hint{ margin: 0; opacity:0.75; font-size: 13px; }

/* Tiny toast message (used for sticker limits / upload issues) */
.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(12px);
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  z-index: 10000;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
  max-width: min(520px, calc(100vw - 28px));
  text-align: center;
}

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

.vip-card{ max-width: 560px; }
.vip-list{ margin: 12px 0 16px; padding-left: 18px; }
.vip-label{ display:block; font-weight:700; margin: 10px 0 8px; }
#vipInput{
  width:100%;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.75);
  font-size: 15px;
}
.vip-msg{ text-align:center; min-height: 1.2em; margin-top: 10px; opacity:0.85; }

#confettiLayer{
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow:hidden;
  z-index: 9999;
}

.confetti{
  position:absolute;
  bottom: -20px;
  width: 10px;
  height: 14px;
  border-radius: 3px;
  opacity: 0.95;
  animation: pop 1150ms ease-out forwards;
}

@keyframes pop{
  0%{ transform: translateY(0) rotate(0deg); opacity: 0; }
  10%{ opacity: 1; }
  100%{ transform: translateY(-560px) rotate(280deg); opacity: 0; }
}

@media (max-width: 720px){
  .card{ padding: 22px 18px; }
  .brand-title{ font-size: 34px; }
  .months-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .days-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media print{
  body{ background:#fff; }
  #confettiLayer{ display:none !important; }
  .topnav, .primary-btn, .ghost-btn, .icon-btn, #printHint{ display:none !important; }
  .card{ box-shadow:none; background:#fff; }
}
