/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(135deg, #ffe4f0 0%, #ffd6e8 40%, #fce8f3 100%);
  min-height: 100vh;
  color: #4a2040;
  position: relative;
  overflow-x: hidden;
}

/* ── Arya Background Watermark ────────────────────────────── */
.arya-bg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 480px;
  background: url('dog.jpg') center/cover no-repeat;
  border-radius: 50%;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

/* ── Nav ──────────────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(200,100,150,0.15);
  border-bottom: 2px solid rgba(255,180,210,0.4);
}

.nav-logo {
  font-family: 'Pacifico', cursive;
  font-size: 1.3rem;
  color: #c0507a;
}

.nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.nav-links a {
  text-decoration: none;
  color: #b06080;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.nav-links a:hover, .nav-links a.active {
  background: linear-gradient(135deg, #f472b6, #ec4899);
  color: white;
  box-shadow: 0 4px 12px rgba(236,72,153,0.35);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 4rem 2rem 3rem;
  position: relative;
  z-index: 1;
}

.small-hero { padding: 2.5rem 2rem 2rem; }

.hero h1 {
  font-family: 'Pacifico', cursive;
  font-size: 3rem;
  color: #c0507a;
  text-shadow: 2px 2px 0 rgba(255,255,255,0.6);
  margin-bottom: 0.8rem;
}

.small-hero h1 { font-size: 2.2rem; }

.hero-sub {
  font-size: 1.15rem;
  color: #b06080;
  max-width: 540px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.streak-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff7eb3, #ff4d94);
  color: white;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 0.6rem 1.8rem;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(255,77,148,0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* ── Sections ─────────────────────────────────────────────── */
.section {
  max-width: 1000px;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: 'Pacifico', cursive;
  font-size: 1.5rem;
  color: #c0507a;
  margin-bottom: 1.2rem;
}

/* ── Cards ────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.card {
  background: rgba(255,255,255,0.8);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(200,100,150,0.12);
  border: 2px solid rgba(255,180,210,0.4);
  transition: transform 0.2s;
}

.card:hover { transform: translateY(-4px); }

.card-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.card-label { font-size: 0.85rem; color: #b06080; font-weight: 700; margin-bottom: 0.3rem; }
.card-value { font-size: 2rem; font-weight: 800; color: #c0507a; }

/* ── Next Reward Preview ──────────────────────────────────── */
.reward-preview {
  background: rgba(255,255,255,0.85);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 4px 20px rgba(200,100,150,0.15);
  border: 2px solid rgba(255,180,210,0.4);
}

.reward-icon { font-size: 3rem; }

.reward-info { flex: 1; }
.reward-name { font-size: 1.2rem; font-weight: 800; color: #c0507a; margin-bottom: 0.3rem; }
.reward-pts  { font-size: 0.9rem; color: #b06080; margin-bottom: 0.7rem; }

.progress-bar-wrap {
  background: #f8d7e8;
  border-radius: 20px;
  height: 14px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f472b6, #ec4899);
  border-radius: 20px;
  transition: width 0.6s ease;
  width: 0%;
}

.progress-label { font-size: 0.85rem; color: #b06080; font-weight: 700; }

/* ── Quick Links ──────────────────────────────────────────── */
.quick-links { display: flex; gap: 1rem; flex-wrap: wrap; }

.quick-btn {
  display: inline-block;
  background: linear-gradient(135deg, #f9a8d4, #ec4899);
  color: white;
  text-decoration: none;
  font-weight: 800;
  padding: 0.9rem 1.8rem;
  border-radius: 30px;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(236,72,153,0.3);
  transition: all 0.2s;
}

.quick-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(236,72,153,0.4);
}

/* ── Arya Cheer ───────────────────────────────────────────── */
.arya-cheer {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  z-index: 200;
}

.arya-float {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 6px 20px rgba(200,100,150,0.35);
  animation: float 3s ease-in-out infinite;
  cursor: pointer;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.arya-bubble {
  background: white;
  color: #c0507a;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(200,100,150,0.2);
  max-width: 200px;
  text-align: right;
  border: 2px solid rgba(255,180,210,0.5);
}

/* ── Form Card ────────────────────────────────────────────── */
.form-card {
  background: rgba(255,255,255,0.85);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(200,100,150,0.15);
  border: 2px solid rgba(255,180,210,0.4);
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  font-weight: 800;
  color: #c0507a;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.form-group select,
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid rgba(255,180,210,0.6);
  border-radius: 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: #4a2040;
  background: rgba(255,255,255,0.9);
  outline: none;
  transition: border 0.2s;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus { border-color: #ec4899; }

.form-group textarea { height: 90px; resize: vertical; }

.duration-btns { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.8rem; }

.dur-btn {
  padding: 0.5rem 1.2rem;
  border: 2px solid rgba(255,180,210,0.6);
  border-radius: 20px;
  background: white;
  color: #c0507a;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.dur-btn:hover, .dur-btn.selected {
  background: linear-gradient(135deg, #f472b6, #ec4899);
  color: white;
  border-color: transparent;
}

.points-preview {
  background: linear-gradient(135deg, #fce4f0, #ffd6e8);
  border-radius: 14px;
  padding: 1rem 1.5rem;
  color: #c0507a;
  font-weight: 800;
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 1.2rem;
  border: 2px dashed rgba(255,180,210,0.6);
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #f472b6, #ec4899);
  color: white;
  border: none;
  border-radius: 20px;
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(236,72,153,0.35);
  transition: all 0.2s;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(236,72,153,0.45);
}

/* ── Log List ─────────────────────────────────────────────── */
.log-list { display: flex; flex-direction: column; gap: 0.8rem; }

.log-item {
  background: rgba(255,255,255,0.85);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 2px solid rgba(255,180,210,0.3);
  box-shadow: 0 2px 10px rgba(200,100,150,0.08);
}

.log-item-left { display: flex; align-items: center; gap: 0.8rem; }
.log-item-icon { font-size: 1.5rem; }
.log-item-name { font-weight: 800; color: #c0507a; }
.log-item-detail { font-size: 0.85rem; color: #b06080; }
.log-item-pts { font-weight: 800; color: #ec4899; font-size: 1.1rem; }

/* ── Habit Cards ──────────────────────────────────────────── */
.habit-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }

.habit-card {
  background: rgba(255,255,255,0.85);
  border-radius: 20px;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 2px solid rgba(255,180,210,0.3);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(200,100,150,0.08);
}

.habit-card:hover { transform: translateX(4px); }

.habit-card.done {
  background: linear-gradient(135deg, #fce4f0, #ffd6e8);
  border-color: #ec4899;
}

.habit-icon { font-size: 1.8rem; }
.habit-info { flex: 1; }
.habit-name { font-weight: 800; color: #c0507a; font-size: 1rem; }
.habit-desc { font-size: 0.82rem; color: #b06080; margin-top: 0.2rem; line-height: 1.4; }
.habit-pts { font-weight: 800; color: #ec4899; font-size: 1rem; white-space: nowrap; }
.habit-check { font-size: 1.5rem; color: #ec4899; min-width: 28px; text-align: center; }

.habits-total-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.8);
  border-radius: 14px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.2rem;
  border: 2px solid rgba(255,180,210,0.4);
  font-weight: 700;
  color: #c0507a;
}

.habits-pts-val { font-size: 1.3rem; font-weight: 800; color: #ec4899; }

/* ── Rewards Page ─────────────────────────────────────────── */
.big-points-box {
  background: linear-gradient(135deg, #f472b6, #ec4899);
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
  color: white;
  box-shadow: 0 8px 30px rgba(236,72,153,0.4);
}

.big-points-label { font-size: 1rem; font-weight: 700; opacity: 0.9; margin-bottom: 0.5rem; }
.big-points-val { font-family: 'Pacifico', cursive; font-size: 4rem; margin-bottom: 0.5rem; }
.big-points-sub { font-size: 0.95rem; opacity: 0.85; }

.rewards-list { display: flex; flex-direction: column; gap: 1rem; }

.reward-item {
  background: rgba(255,255,255,0.85);
  border-radius: 20px;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  border: 2px solid rgba(255,180,210,0.3);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.reward-item.unlocked {
  border-color: #ec4899;
  background: linear-gradient(135deg, #fce4f0, #ffd6e8);
}

.reward-item.unlocked::after {
  content: '✅ UNLOCKED!';
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  background: #ec4899;
  color: white;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

.reward-item.locked { opacity: 0.6; }

.ri-icon { font-size: 2.2rem; }
.ri-info { flex: 1; }
.ri-name { font-weight: 800; color: #c0507a; font-size: 1.05rem; }
.ri-pts  { font-size: 0.85rem; color: #b06080; margin-top: 0.2rem; }
.ri-bar-wrap { background: #f8d7e8; border-radius: 20px; height: 8px; margin-top: 0.5rem; overflow: hidden; }
.ri-bar-fill { height: 100%; background: linear-gradient(90deg,#f472b6,#ec4899); border-radius:20px; transition:width 0.5s; }

/* ── Points Guide ─────────────────────────────────────────── */
.points-guide {
  background: rgba(255,255,255,0.85);
  border-radius: 20px;
  padding: 1.5rem;
  border: 2px solid rgba(255,180,210,0.3);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.points-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,180,210,0.2);
  font-weight: 600;
  color: #4a2040;
}

.points-row:last-child { border-bottom: none; }
.pts-badge { background: #fce4f0; color: #ec4899; font-weight: 800; padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.9rem; }
.pts-badge.gold { background: #fff3cd; color: #d4a017; }

/* ── Calendar ─────────────────────────────────────────────── */
.calendar-wrap {
  background: rgba(255,255,255,0.85);
  border-radius: 20px;
  padding: 1.5rem;
  border: 2px solid rgba(255,180,210,0.3);
}

.cal-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.cal-day-label {
  text-align: center;
  font-weight: 800;
  color: #c0507a;
  font-size: 0.8rem;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255,255,255,0.6);
  color: #b06080;
  border: 1px solid rgba(255,180,210,0.2);
}

.cal-cell.workout { background: linear-gradient(135deg,#f472b6,#ec4899); color:white; }
.cal-cell.habits  { background: linear-gradient(135deg,#fce4f0,#ffd6e8); color:#c0507a; border-color:#f472b6; }
.cal-cell.today   { border: 2px solid #ec4899; }
.cal-cell.empty   { background: transparent; border: none; }

/* ── Quote Box ────────────────────────────────────────────── */
.quote-box {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(252,228,240,0.8));
  border-radius: 20px;
  padding: 1.8rem 2rem;
  text-align: center;
  border: 2px solid rgba(255,180,210,0.4);
  box-shadow: 0 4px 20px rgba(200,100,150,0.12);
  position: relative;
}

.quote-mark {
  font-family: 'Pacifico', cursive;
  font-size: 4rem;
  color: #f9a8d4;
  line-height: 1;
  margin-bottom: -0.5rem;
}

.quote-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #4a2040;
  line-height: 1.6;
  margin-bottom: 0.6rem;
  font-style: italic;
}

.quote-author {
  font-size: 0.85rem;
  color: #c0507a;
  font-weight: 700;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 2rem;
  color: #c0507a;
  font-weight: 700;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

/* ── Toast ────────────────────────────────────────────────── */
.toast {
  position: fixed;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: linear-gradient(135deg,#f472b6,#ec4899);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 30px;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 6px 20px rgba(236,72,153,0.4);
  z-index: 999;
  opacity: 0;
  transition: all 0.4s;
}

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

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  nav { flex-direction: column; gap: 0.8rem; padding: 1rem; }
  .hero h1 { font-size: 2rem; }
  .nav-links { justify-content: center; }
  .reward-preview { flex-direction: column; text-align: center; }
  .arya-cheer { bottom: 1rem; right: 1rem; }
  .arya-float { width: 70px; height: 70px; }
}
