:root {
  --pink: #ff8fa3;
  --pink-hover: #ff748c;
  --pink-light: #ffd6df;
  --cream: #fff9f9;
  --dark-text: #593d43;
  --gray: #b5a3a7;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--cream);
  color: var(--dark-text);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 20px;
}

h1,
h2,
h3 {
  margin-bottom: 15px;
  color: var(--pink);
}

.screen {
  display: none;
  width: 100%;
  max-width: 500px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.fadeout {
  transition:'opacity 1s ease';
  opacity: 0;
}

.screen.active {
  display: flex;
  animation: fadeIn 0.4s ease;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.btn.primary {
  background-color: var(--pink);
  color: var(--white);
}

.btn.primary:hover:not(:disabled) {
  background-color: var(--pink-hover);
  transform: translateY(-2px);
}

.btn.primary:disabled {
  background-color: var(--gray);
  cursor: not-allowed;
  transform: none;
}

.btn.secondary {
  background-color: var(--pink-light);
  color: var(--dark-text);
}

.btn.outline {
  background-color: transparent;
  border: 2px solid var(--pink);
  color: var(--pink);
}

.btn-icon {
  background: var(--pink-light);
  border: none;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  color: var(--dark-text);
}

/* Landing Logic CSS */
.landing-buttons {
  position: relative;
  display: flex;
  gap: 20px;
  margin-top: 20px;
  min-height: 50px;
  justify-content: center;
  width: 100%;
}

/* Z-index trick: Yes is higher so No can slide under it */
#btn-yes {
  position: relative;
  z-index: 20;
}

#btn-no {
  position: relative;
  z-index: 10;
  transition: transform 0.2s ease;
}

#no-hint {
  margin-top: 50px;
  color: var(--gray);
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

.invisible {
  visibility: hidden;
}

.qrcode{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(400%);
  background: var(--white);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 5px 400px 100px rgb(0, 0, 0);
  z-index: 100;
  cursor: pointer;
}

.progress-bar {
  display: flex;
  width: 100%;
  justify-content: space-between;
  margin-bottom: 30px;
  background: var(--white);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.step-indicator {
  flex: 1;
  text-align: center;
  padding: 8px;
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: bold;
  border-radius: 15px;
  transition: all 0.3s;
}

.step-indicator.active {
  color: var(--white);
  background-color: var(--pink);
}

.step-indicator.completed {
  color: var(--pink);
  cursor: pointer;
}

.wizard-step {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: center;
}

.wizard-step.active {
  display: flex;
  animation: slideIn 0.3s ease;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 30px;
}

.calendar-wrapper {
  background: var(--white);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
  margin-bottom: 20px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
}

.calendar-nav {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: var(--pink-light);
  color: var(--dark-text);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.calendar-nav:hover {
  background: var(--pink);
  color: var(--white);
  transform: translateY(-1px);
}

#month-year-display {
  flex: 1;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 8px;
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 700;
}

.weekday-label {
  text-align: center;
  padding: 4px 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 5px;
  height: 230px;
}

.cal-day {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  text-align: center;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.cal-day:hover:not(.empty) {
  background: var(--pink-light);
}

.cal-day.weekend:not(.selected) {
  background: #fff0f3;
  color: var(--dark-text);
}

.cal-day.selected {
  background: var(--pink);
  color: var(--white);
  font-weight: bold;
}

.cal-day.empty {
  cursor: default;
  opacity: 0.25;
}

.time-chips {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.time-chip {
  padding: 8px 16px;
  border: 2px solid var(--pink-light);
  background: transparent;
  border-radius: 20px;
  cursor: pointer;
  color: var(--dark-text);
  font-weight: bold;
}

.time-chip.selected {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
}

.wallet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}

.activities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  width: 100%;
}

.activity-card {
  background: var(--white);
  padding: 15px;
  border-radius: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.activity-card.selected {
  border-color: var(--pink);
  background: var(--pink-light);
}

.activity-card.locked {
  opacity: 0.6;
  cursor: not-allowed;
}

.activity-cost {
  display: inline-block;
  background: var(--cream);
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
  margin-top: 10px;
  font-weight: bold;
  align-self: flex-start;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(89, 61, 67, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(3px);
}

.overlay-card {
  background: var(--cream);
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.boosts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.boost-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  padding: 12px 15px;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
}

.boost-item:hover {
  border-color: var(--pink-light);
}

.boost-item.claimed {
  text-decoration: line-through;
}

.summary-card {
  background: var(--white);
  padding: 20px;
  border-radius: 15px;
  width: 100%;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.summary-item {
  margin-bottom: 15px;
}

.summary-item ul {
  list-style-type: none;
  margin-top: 5px;
  padding-left: 10px;
}

.summary-item li::before {
  content: "💖 ";
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 400px) {
  .activities-grid {
    grid-template-columns: 1fr;
  }
}