:root, [data-theme="rose"] {
  --primary: #ff5c7c;
  --primary-hover: #ff3b61;
  --primary-light: #ffe8ee;
  --primary-dark: #cc294b;
  --secondary: #ff8fab;
  --accent-blue: #4a90e2;
  --accent-blue-light: #eaf3ff;
  --accent-purple: #9b51e0;
  --bg-gradient: linear-gradient(135deg, #fff1f3 0%, #fef5e7 50%, #f3f7ff 100%);
  --header-bg: rgba(255, 245, 247, 0.88);
  --header-border: rgba(255, 182, 193, 0.35);
  --card-bg: rgba(255, 255, 255, 0.92);
  --card-border: rgba(255, 214, 224, 0.7);
  --card-hover-border: rgba(255, 92, 124, 0.4);
  --text-main: #2d262a;
  --text-muted: #736b70;
  --nav-bg: rgba(255, 255, 255, 0.94);
  --nav-border: rgba(255, 182, 193, 0.4);
  --input-bg: #fafafa;
  --input-border: #ffd6e0;
  --modal-bg: #ffffff;
  --shadow-sm: 0 4px 12px rgba(184, 80, 107, 0.08);
  --shadow-md: 0 8px 24px rgba(184, 80, 107, 0.12);
  --shadow-lg: 0 16px 36px rgba(184, 80, 107, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

[data-theme="matcha"] {
  --primary: #588157;
  --primary-hover: #3a5a40;
  --primary-light: #e9f0e8;
  --primary-dark: #344e41;
  --secondary: #a3b18a;
  --accent-blue: #52796f;
  --accent-blue-light: #e6edea;
  --accent-purple: #726a95;
  --bg-gradient: linear-gradient(135deg, #f4f7f4 0%, #edf3eb 50%, #f8faf6 100%);
  --header-bg: rgba(244, 247, 244, 0.88);
  --header-border: rgba(163, 177, 138, 0.35);
  --card-bg: rgba(255, 255, 255, 0.94);
  --card-border: rgba(163, 177, 138, 0.35);
  --card-hover-border: rgba(88, 129, 87, 0.45);
  --text-main: #24301a;
  --text-muted: #5e6b56;
  --nav-bg: rgba(255, 255, 255, 0.94);
  --nav-border: rgba(163, 177, 138, 0.4);
  --input-bg: #f9fbf8;
  --input-border: #ccd5ae;
  --modal-bg: #ffffff;
  --shadow-sm: 0 4px 12px rgba(58, 90, 64, 0.08);
  --shadow-md: 0 8px 24px rgba(58, 90, 64, 0.12);
  --shadow-lg: 0 16px 36px rgba(58, 90, 64, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

[data-theme="latte"] {
  --primary: #c86d51;
  --primary-hover: #b0573c;
  --primary-light: #f7ede8;
  --primary-dark: #8c3b24;
  --secondary: #dd9b6b;
  --accent-blue: #606c38;
  --accent-blue-light: #edf0e6;
  --accent-purple: #9c6644;
  --bg-gradient: linear-gradient(135deg, #faf4ef 0%, #f4ede4 50%, #fcf9f6 100%);
  --header-bg: rgba(250, 244, 239, 0.88);
  --header-border: rgba(221, 155, 107, 0.35);
  --card-bg: rgba(255, 255, 255, 0.94);
  --card-border: rgba(221, 155, 107, 0.35);
  --card-hover-border: rgba(200, 109, 81, 0.45);
  --text-main: #3b251d;
  --text-muted: #786154;
  --nav-bg: rgba(255, 255, 255, 0.94);
  --nav-border: rgba(221, 155, 107, 0.4);
  --input-bg: #faf7f4;
  --input-border: #e6ccb2;
  --modal-bg: #ffffff;
  --shadow-sm: 0 4px 12px rgba(140, 59, 36, 0.08);
  --shadow-md: 0 8px 24px rgba(140, 59, 36, 0.12);
  --shadow-lg: 0 16px 36px rgba(140, 59, 36, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

[data-theme="midnight"] {
  --primary: #ff5c7c;
  --primary-hover: #ff7593;
  --primary-light: #2c1a24;
  --primary-dark: #ff3b61;
  --secondary: #bd597b;
  --accent-blue: #64b5f6;
  --accent-blue-light: #162438;
  --accent-purple: #bb86fc;
  --bg-gradient: linear-gradient(135deg, #0b0c13 0%, #11121d 50%, #0b0c13 100%);
  --header-bg: rgba(13, 14, 23, 0.92);
  --header-border: rgba(255, 255, 255, 0.09);
  --card-bg: rgba(20, 21, 34, 0.94);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-border: rgba(255, 92, 124, 0.45);
  --text-main: #f0edf2;
  --text-muted: #9b94a0;
  --nav-bg: rgba(15, 16, 26, 0.96);
  --nav-border: rgba(255, 255, 255, 0.1);
  --input-bg: #181928;
  --input-border: #2e3047;
  --modal-bg: #151624;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.7);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  padding-bottom: 90px; /* Space for bottom nav */
  display: flex;
  flex-direction: column;
  align-items: center;
}

body, .app-header, .main-content, .bottom-nav, .user-selector, .user-pill, .modal-card, .form-control, .relationship-plant-card {
  transition: background 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* App Header */
.app-header {
  width: 100%;
  max-width: 900px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand h1 {
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(45deg, #ff416c, #ff4b2b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.user-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  padding: 4px;
  border-radius: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border);
}

.user-pill {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
}

.user-pill.active.ava {
  background: #ff5c7c;
  color: white;
  box-shadow: 0 2px 8px rgba(255, 92, 124, 0.4);
}

.user-pill.active.brandon {
  background: var(--accent-blue);
  color: white;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.4);
}

/* App Content Containers */
.main-content {
  width: 100%;
  max-width: 860px;
  padding: 16px 16px 24px;
}

.view-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.view-section.active {
  display: block;
}

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

/* Section Headers */
.section-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 14px;
}

.section-title-bar h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #3b2832;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Generic Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Daily Passage Hero Card */
.daily-passage-card {
  background: linear-gradient(135deg, #ffffff 0%, #fff7f9 100%);
  border: 1px solid #ffd6e0;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.daily-passage-card::before {
  content: "“";
  position: absolute;
  top: 10px;
  left: 14px;
  font-size: 90px;
  font-family: Georgia, serif;
  color: rgba(255, 92, 124, 0.12);
  line-height: 1;
  pointer-events: none;
}

.passage-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.passage-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.passage-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.passage-text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #33242c;
  font-style: italic;
  margin: 12px 0 16px;
  position: relative;
  z-index: 1;
}

.passage-source {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Dual Reflection Grid */
.reflections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

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

.reflection-box {
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
}

.reflection-box.ava {
  background: #fff2f5;
  border: 1px solid #ffd1dc;
}

.reflection-box.brandon {
  background: #f2f7ff;
  border: 1px solid #cce0ff;
}

.reflection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.82rem;
}

.reflection-header.ava { color: #d6335c; }
.reflection-header.brandon { color: #236bc7; }

.reflection-body {
  color: #443740;
  white-space: pre-line;
  word-break: break-word;
  max-height: none;
  overflow: visible;
}

.reflection-empty {
  font-style: italic;
  color: #9a8f96;
}

/* Book Club Cards */
.book-card-hero {
  display: flex;
  gap: 20px;
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #ffe5eb;
  margin-bottom: 24px;
}

.book-card-hero img {
  width: 130px;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.book-hero-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.book-hero-info h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
  color: #2b1f26;
}

.book-author {
  color: #8c6b77;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.book-summary {
  font-size: 0.85rem;
  color: #55444e;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 580px) {
  .book-card-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .book-card-hero img {
    width: 140px;
    height: 200px;
  }
}

/* Finished Books List */
.finished-book-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #fce3e9;
  margin-bottom: 18px;
}

.finished-book-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.finished-book-header img {
  width: 70px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.finished-book-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #2e2029;
}

.star-rating {
  color: #ffb800;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

/* To Read Grid */
.to-read-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}

.to-read-item {
  background: white;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid #ffe8ed;
}

.to-read-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}

.to-read-item h4 {
  font-size: 0.82rem;
  line-height: 1.3;
  margin-bottom: 2px;
}

.to-read-item p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* -------------------------------------- */
/* Dinner & Date Roulette Module          */
/* -------------------------------------- */
.roulette-container {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid #ffd9e2;
  margin-bottom: 24px;
}

.roulette-box {
  background: linear-gradient(135deg, #fff5f7, #ffeef2);
  border: 2px dashed #ff94ab;
  border-radius: var(--radius-md);
  padding: 30px 16px;
  margin: 16px auto;
  max-width: 500px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s;
}

.roulette-result-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ff3b61;
  transition: transform 0.15s ease;
}

.roulette-result-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  background: white;
  color: #66505a;
  box-shadow: var(--shadow-sm);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.filter-pill {
  border: 1px solid #ffccd7;
  background: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #735e68;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 92, 124, 0.3);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #ff5c7c, #ff3b61);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 60, 97, 0.35);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 60, 97, 0.45);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 1px solid #ffccd7;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #fff5f7;
  border-color: var(--primary);
}

.btn-sm {
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 12px;
}

/* Watchlist Cards */
.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.watch-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid #ffe5ec;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.watch-card.watched {
  opacity: 0.6;
  text-decoration: line-through;
  background: #fbfbfb;
}

.watch-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #eef3ff;
  color: #3b6bd6;
  margin-top: 4px;
}

/* Milestones Timer */
.milestone-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid #ffd6e0;
  margin-bottom: 20px;
}

.milestone-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #3b2832;
  margin-bottom: 12px;
}

.timer-digits {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.digit-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.digit-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  background: #fff1f4;
  padding: 6px 12px;
  border-radius: 10px;
  width: 100%;
}

.digit-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Polaroids Wall */
.polaroids-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 10px 0;
}

.polaroid-card {
  background: white;
  padding: 12px 12px 24px;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.polaroid-card:hover {
  transform: scale(1.05) rotate(0deg);
  z-index: 10;
  box-shadow: 0 14px 28px rgba(0,0,0,0.16);
}

.polaroid-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
}

.polaroid-caption {
  font-size: 0.85rem;
  font-weight: 600;
  color: #3f3139;
  text-align: center;
}

.polaroid-date {
  font-size: 0.72rem;
  color: #9c8b93;
  text-align: center;
  margin-top: 2px;
}

/* Buzz Section */
.buzz-card {
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid #ffd9e2;
}

.gf-photo {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  box-shadow: 0 8px 20px rgba(255, 92, 124, 0.3);
  border: 4px solid white;
  transition: transform 0.2s ease;
  display: block;
}

.gf-photo.buzzed {
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.15) rotate(-6deg); }
  50% { transform: scale(1.2) rotate(6deg); }
  75% { transform: scale(1.15) rotate(-4deg); }
}

/* Floating Hearts */
.heart {
  position: fixed;
  animation: floatUp 2.4s ease-out forwards;
  pointer-events: none;
  z-index: 9999;
}

@keyframes floatUp {
  0% { transform: translateY(0) scale(0.6); opacity: 1; }
  100% { transform: translateY(-700px) scale(2); opacity: 0; }
}

/* Bottom Navigation Bar (PWA Mobile-First) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--nav-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

.nav-btn {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 12px;
  transition: all 0.2s;
}

.nav-btn .nav-icon {
  font-size: 1.35rem;
  transition: transform 0.2s;
}

.nav-btn.active {
  color: var(--primary);
}

.nav-btn.active .nav-icon {
  transform: translateY(-2px) scale(1.1);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 16px;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  background: var(--modal-bg);
  color: var(--text-main);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

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

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.close-btn {
  background: var(--input-bg);
  color: var(--text-main);
  border: 1px solid var(--card-border);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--input-bg);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 92, 124, 0.2);
}

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

/* Toast */
#toast {
  position: fixed;
  top: 75px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #332029;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 3000;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

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

/* ============================================== */
/* Daily Question & Blind Reveal Styling          */
/* ============================================== */
.daily-question-card {
  background: linear-gradient(135deg, #ffffff 0%, #fff0f5 100%);
  border: 1px solid #ffccd7;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
  position: relative;
}

.question-prompt {
  font-size: 1.15rem;
  font-weight: 800;
  color: #2b1c25;
  margin: 12px 0 16px;
  line-height: 1.45;
}

.blind-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}

.blind-status-badge.locked {
  background: #fff0f3;
  color: #d6335c;
  border: 1px solid #ffc2d1;
}

.blind-status-badge.unlocked {
  background: #e8f9ee;
  color: #1e7e34;
  border: 1px solid #c3e6cb;
}

.blur-locked-text {
  filter: blur(5px);
  user-select: none;
  opacity: 0.5;
  transition: filter 0.3s ease;
}

.locked-notice {
  font-size: 0.82rem;
  color: #a84260;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

/* ============================================== */
/* Song of the Week Card                          */
/* ============================================== */
.song-card {
  background: linear-gradient(135deg, #ffffff 0%, #f6f0ff 100%);
  border: 1px solid #e2d4f8;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.song-icon {
  font-size: 2rem;
  background: #f0e6ff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.song-info {
  flex-grow: 1;
}

.song-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #311c47;
}

.song-artist {
  font-size: 0.85rem;
  color: #70588a;
  font-weight: 600;
}

.song-note {
  font-size: 0.8rem;
  color: #554466;
  font-style: italic;
  margin-top: 4px;
}

/* ============================================== */
/* Gift Vault / Wishlist Section                  */
/* ============================================== */
.wishlist-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.wishlist-tab-btn {
  flex: 1;
  border: 1px solid #ffd1dc;
  background: white;
  padding: 10px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

.wishlist-tab-btn.active.ava {
  background: #ff5c7c;
  color: white;
  border-color: #ff5c7c;
  box-shadow: 0 4px 12px rgba(255, 92, 124, 0.3);
}

.wishlist-tab-btn.active.brandon {
  background: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.wishlist-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid #ffe3eb;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wishlist-item-title {
  font-size: 1rem;
  font-weight: 800;
  color: #2e1e27;
  margin-bottom: 4px;
}

.wishlist-price-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #eef9f2;
  color: #1e7e34;
  margin-bottom: 8px;
}

.wishlist-notes {
  font-size: 0.82rem;
  color: #63525b;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Question Archive List */
.archive-card {
  background: #fff8fa;
  border: 1px solid #ffccd7;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
}

.archive-q-title {
  font-weight: 800;
  font-size: 0.98rem;
  color: #3b2532;
  margin-bottom: 10px;
}

/* ============================================== */
/* Moments Subtabs & Travel Map Styling           */
/* ============================================== */
.moments-subtabs {
  display: flex;
  gap: 8px;
  background: white;
  padding: 6px;
  border-radius: 30px;
  border: 1px solid #ffd6e0;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.moments-subtab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.moments-subtab.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 92, 124, 0.35);
}

#travelMap {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-md);
  border: 2px solid #ffd6e0;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  z-index: 5;
}

/* Leaflet Custom Marker & Popup */
.custom-pin-marker {
  font-size: 26px;
  text-align: center;
  filter: drop-shadow(0 3px 6px rgba(255, 92, 124, 0.4));
  cursor: pointer;
}

.leaflet-popup-content-wrapper {
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(184, 80, 107, 0.2) !important;
  border: 1px solid #ffd6e0 !important;
  padding: 4px !important;
}

.leaflet-popup-content {
  margin: 12px 14px !important;
  line-height: 1.4 !important;
  font-family: inherit !important;
}

.popup-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #3b2532;
  margin-bottom: 2px;
}

.popup-date {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 6px;
}

.popup-section {
  font-size: 0.8rem;
  color: #4a3843;
  margin-top: 6px;
}

.popup-section strong {
  color: #2b1a24;
}

/* Travel Trip Card */
.travel-trip-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid #ffe3eb;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}

.trip-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.trip-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #311c29;
}

.trip-card-date {
  font-size: 0.78rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 700;
}

/* ============================================== */
/* Theme Modal & Aesthetic Switcher Styles        */
/* ============================================== */
.theme-options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.theme-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.theme-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.theme-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.theme-swatch {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  flex-shrink: 0;
}

.swatch-color {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  display: inline-block;
}

.theme-details {
  flex-grow: 1;
}

.theme-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.theme-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.theme-badge-check {
  font-size: 1rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: scale(0.6);
}

.theme-card.active .theme-badge-check {
  opacity: 1;
  transform: scale(1.1);
}

/* ============================================== */
/* Relationship Tamagotchi Plant (Love Tree)      */
/* ============================================== */
.relationship-plant-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.relationship-plant-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.plant-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.plant-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.plant-badge-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.plant-season-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--card-border);
}

.plant-streak-badge {
  font-size: 0.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ff8a00, #e52e71);
  color: white;
  padding: 4px 12px;
  border-radius: 14px;
  box-shadow: 0 3px 8px rgba(229, 46, 113, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.plant-main-stage {
  display: flex;
  gap: 22px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 600px) {
  .plant-main-stage {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}

/* Plant Interactive Visual Scene */
.plant-visual-scene {
  flex-shrink: 0;
  width: 170px;
  height: 180px;
  background: radial-gradient(circle at bottom, var(--primary-light) 0%, transparent 75%);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  cursor: pointer;
  padding-bottom: 8px;
  border: 1px solid var(--card-border);
  overflow: visible;
  user-select: none;
}

.plant-speech-bubble {
  position: absolute;
  top: -12px;
  background: var(--modal-bg);
  color: var(--text-main);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  max-width: 160px;
  text-align: center;
  line-height: 1.25;
  pointer-events: none;
  animation: floatBubble 3s ease-in-out infinite alternate;
  z-index: 10;
}

.plant-speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: var(--modal-bg) transparent;
  display: block;
  width: 0;
}

@keyframes floatBubble {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

.plant-ambient-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 20px;
}

.ambient-particle {
  position: absolute;
  pointer-events: none;
  animation: driftAmbient linear infinite;
}

@keyframes driftAmbient {
  0% {
    transform: translateY(-10px) translateX(0) rotate(0deg);
    opacity: 0;
  }
  20% { opacity: 0.9; }
  80% { opacity: 0.8; }
  100% {
    transform: translateY(190px) translateX(25px) rotate(360deg);
    opacity: 0;
  }
}

.plant-graphics-wrapper {
  width: 130px;
  height: 140px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.plant-graphics-wrapper.plant-wobble {
  animation: plantWobbleAnim 0.7s ease;
}

@keyframes plantWobbleAnim {
  0% { transform: scale(1, 1); }
  25% { transform: scale(1.15, 0.85) rotate(-4deg); }
  50% { transform: scale(0.9, 1.12) rotate(4deg); }
  75% { transform: scale(1.05, 0.95) rotate(-2deg); }
  100% { transform: scale(1, 1) rotate(0deg); }
}

.plant-tap-hint {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 4px;
}

/* Floating Heart when Tapped */
.plant-love-heart {
  position: absolute;
  bottom: 50px;
  font-size: 1.3rem;
  pointer-events: none;
  animation: floatHeart 1.4s ease-out forwards;
  z-index: 20;
}

@keyframes floatHeart {
  0% { transform: translateY(0) scale(0.5); opacity: 1; }
  50% { transform: translateY(-45px) scale(1.2); opacity: 0.9; }
  100% { transform: translateY(-90px) scale(0.8); opacity: 0; }
}

/* Plant Details & Meters */
.plant-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plant-stage-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .plant-stage-title-row {
    justify-content: center;
  }
}

.plant-stage-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.plant-level-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 6px rgba(255, 92, 124, 0.3);
}

.plant-xp-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plant-xp-bar {
  width: 100%;
  height: 10px;
  background: var(--input-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.plant-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #42e695 0%, #3bb2b8 50%, var(--primary) 100%);
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.plant-xp-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.plant-status-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .plant-status-chips {
    justify-content: center;
  }
}

.plant-chip {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--input-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.plant-last-action {
  font-size: 0.76rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.3;
}

.plant-action-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .plant-action-row {
    justify-content: center;
  }
}

.plant-water-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.water-xp-tag {
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 0.72rem;
}

/* Plant Growth Guide Perks List */
.guide-perks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.guide-perk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--input-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.perk-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.perk-info {
  flex-grow: 1;
}

.perk-info strong {
  display: block;
  font-size: 0.86rem;
  color: var(--text-main);
}

.perk-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.perk-xp {
  font-size: 0.82rem;
  font-weight: 800;
  color: #27ae60;
  background: rgba(39, 174, 96, 0.12);
  padding: 3px 8px;
  border-radius: 10px;
  flex-shrink: 0;
}
