/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cochin', 'Georgia', serif;
  background: linear-gradient(135deg, #ffd0e6 0%, #ffb3d9 50%, #ff9fcf 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

:root {
  --accent-pink: #ff1493; /* deep pink accent */
}

/* Surface tint variables (used to replace harsh white surfaces) */
:root {
  --surface-light: rgba(255, 245, 250, 0.98);
  --surface-lighter: rgba(255, 240, 250, 0.98);
  --surface-soft: rgba(255, 235, 245, 0.95);
}

/* ===== ANIMATED GRADIENT BACKGROUND ===== */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== FLOATING HEARTS BACKGROUND ===== */
.floating-messages { position: fixed; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; overflow: hidden; }

/* Controls that appear on the background page for adding messages and date ideas */
.background-controls input[type="text"] {
  min-width: 180px;
  font-size: 14px;
  outline: none;
}

.background-controls .open-gift-btn,
.background-controls .next-gift-btn {
  pointer-events: auto; /* allow clicking these buttons */
  padding: 8px 12px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(90deg,#ff8fb3,#ff6b9d);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255,20,147,0.18);
  cursor: pointer;
}

/* Slightly smaller message bubbles when many are present */
.floating-messages .message {
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 14px;
}

/* Ensure controls are visible above floating messages */
.background-controls { z-index: 60; }

/* Dates page small input for new ideas */
.dates-controls input[type="text"] {
  font-size: 14px;
}

.dates-controls {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.dates-controls input[type="text"] {
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,105,180,0.22);
  background: rgba(255,250,252,0.96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  color: #5b1032;
  flex: 1;
  min-width: 140px;
}

.dates-controls .open-gift-btn {
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(90deg,#ff8fb3,#ff6b9d);
  color: #fff;
  border: none;
  box-shadow: 0 8px 22px rgba(255,20,147,0.14);
  cursor: pointer;
  font-weight: 600;
}

/* Make the control responsive: stack vertically on narrow screens */
@media (max-width: 640px) {
  .dates-controls { flex-direction: column; align-items: stretch; }
  .dates-controls .open-gift-btn { width: 100%; }
}

/* Make the Add Idea button match the app theme (pink gradient, soft shadow) */
.dates-controls .open-gift-btn {
  background: linear-gradient(90deg,#ff8fb3,#ff6b9d);
  color: #fff;
  border: none;
  box-shadow: 0 6px 18px rgba(255,20,147,0.16);
  cursor: pointer;
}

/* Background controls moved to top-left: ensure legibility on varied backgrounds */
.background-controls input#bgMessageInput {
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(255,105,180,0.25);
}

/* Make custom background messages slightly translucent and towards the right */
.floating-messages .message.custom {
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.92), rgba(255, 105, 180, 0.86));
  opacity: 0.95;
}

/* Hide scrollbars but keep scrolling across the app */
/* Works for WebKit (Chrome, Edge Chromium, Safari), Firefox and legacy IE/Edge */
/* Hide scrollbars but keep scrolling across the app and in modals */
html, body, .page-content, .sidebar-nav, .main-content, .modal, .modal-content, #popupModal, #messageModal, #popupContent {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* WebKit browsers: hide scrollbar visuals for the listed containers */
html::-webkit-scrollbar, body::-webkit-scrollbar, .page-content::-webkit-scrollbar, .sidebar-nav::-webkit-scrollbar, .main-content::-webkit-scrollbar, .modal::-webkit-scrollbar, .modal-content::-webkit-scrollbar, #popupModal::-webkit-scrollbar, #messageModal::-webkit-scrollbar, #popupContent::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

/* Keep textarea scrollbars visible for usability (message box) */
textarea {
  -ms-overflow-style: auto; /* IE and Edge */
  scrollbar-width: auto; /* Firefox */
}
textarea::-webkit-scrollbar { width: 10px; height: 10px; }
textarea::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 6px; }

/* Keep focus outlines visible for accessibility */
*:focus { outline: 2px solid rgba(255,20,147,0.25); outline-offset: 2px; }

/* Scoped Flower page background iframe: placed inside .flower-stage (only visible on Flower page) */
.flower-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.flower-stage iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none; /* non-interactive background */
  z-index: 0; /* behind any flower page content inside the stage */
  border-radius: 10px;
}

.modal { z-index: 99999; }
.modal { z-index: 99999; }

.message {
  position: absolute;
  white-space: nowrap;
  font-size: 16px;
  color: rgba(255, 245, 250, 0.98);
  padding: 8px 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.92), rgba(255, 105, 180, 0.88));
  box-shadow: 0 6px 18px rgba(255, 20, 147, 0.12);
  transform: translateY(110vh) rotate(var(--rot, -6deg));
  /* Use CSS variables to randomize horizontal wiggle */
  --drift: 0px;
  --rot: -6deg;
  animation-name: floatMessage;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

/* Heart variant (smaller, a few of them) */
.message.heart {
  background: transparent;
  padding: 4px 6px;
  font-size: 20px;
  color: rgba(255, 230, 240, 0.98);
  text-shadow: 0 4px 12px rgba(255, 20, 147, 0.25);
}

/* Emoji nav icons */
.emoji-icon {
  font-size: 20px;
  display: inline-block;
  line-height: 1;
}

/* Floating messages positioning and animation is now handled by JavaScript for better randomization */

@keyframes floatMessage {
  0% { transform: translateY(110vh) translateX(0) rotate(-6deg); opacity: 0; }
  8% { opacity: 1; }
  50% { transform: translateY(40vh) translateX(var(--drift)) rotate(-4deg); }
  100% { transform: translateY(-20vh) translateX(calc(var(--drift) * -1)) rotate(-2deg); opacity: 0; }
}

/* ===== SPLASH SCREEN ===== */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8fb3 35%, #ffa6c9 65%, #ffc0cb 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.5s ease-out;
}

.splash-content {
  text-align: center;
  animation: scaleIn 0.8s ease-out;
}

.typing-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-height: 80px;
}

.greeting-text {
  font-size: clamp(28px, 6vw, 48px);
  color: white;
  font-weight: bold;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.cursor {
  font-size: clamp(28px, 6vw, 48px);
  color: white;
  animation: blink 1s infinite;
  font-weight: 300;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.splash-hearts {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.splash-heart {
  font-size: 40px;
  animation: heartBounce 1s ease-in-out infinite;
}

.splash-heart:nth-child(1) { animation-delay: 0s; }
.splash-heart:nth-child(2) { animation-delay: 0.2s; }
.splash-heart:nth-child(3) { animation-delay: 0.4s; }

@keyframes heartBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.2); }
}

@keyframes scaleIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== MAIN APP CONTAINER ===== */
.main-app {
  position: relative;
  z-index: 20;
  min-height: 100vh;
  display: flex;
  animation: fadeIn 1s ease-out;
}

/* Start hidden; JS will show when ready */
#mainApp { display: none; }

.hidden {
  display: none !important;
}

/* ===== SIDEBAR NAVIGATION ===== */
.sidebar {
  width: 280px;
  /* Pink-toned surface to replace the stark white panel */
  background: linear-gradient(180deg, rgba(255, 244, 249, 0.96) 0%, rgba(255, 235, 244, 0.96) 100%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-right: 2px solid rgba(255, 105, 180, 0.22);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 30px rgba(255, 105, 180, 0.15);
}

.sidebar.sidebar-collapsed {
  width: 80px;
}

.sidebar.sidebar-collapsed .logo-text,
.sidebar.sidebar-collapsed .nav-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.sidebar.sidebar-collapsed .sidebar-header {
  padding: 25px 10px;
  justify-content: center;
}

.sidebar.sidebar-collapsed .logo {
  justify-content: center;
}

/* Hide the heart logo when collapsed so the toggle can be perfectly centered */
.sidebar.sidebar-collapsed .logo-icon {
  display: none !important;
}

/* Playlist footer glyph styling */
.playlist-btn-sidebar .footer-icon-glyph {
  font-size: 20px; /* slightly larger */
  color: #000; /* black */
  display: inline-block;
  line-height: 1;
  margin-right: 8px;
  vertical-align: middle;
}

.playlist-btn-sidebar {
  color: inherit; /* ensure icon inherits color if changed */
}

.sidebar.sidebar-collapsed .sidebar-toggle {
  /* Keep the toggle visible when collapsed so the user can reopen from the
     compact sidebar. Slightly reduce its size for better fit. */
  display: flex;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 16px;
}

.sidebar.sidebar-collapsed .sidebar-footer {
  padding: 15px 10px;
}

.sidebar.sidebar-collapsed .message-btn-sidebar span:last-child,
.sidebar.sidebar-collapsed .playlist-btn-sidebar span:last-child {
  display: none;
}

.sidebar.sidebar-collapsed .nav-item {
  /* Center icons when collapsed. Remove the flex gap so icons truly
     center (nav-text is hidden but still participates in gap). Also remove
     horizontal padding/margins to avoid visual offset. */
  justify-content: center;
  gap: 0;
  padding: 10px 0;
  margin: 4px 0;
}

.sidebar.sidebar-collapsed .nav-text {
  /* Ensure the hidden text doesn't occupy space in collapsed state. */
  display: none !important;
}

.sidebar.sidebar-collapsed .nav-item:hover {
  /* Avoid lateral movement in collapsed state; provide gentle scale feedback */
  transform: scale(1.05);
}

/* Floating Reopen Button */
.sidebar-reopen-btn {
  position: fixed;
  left: 20px;
  top: 20px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  border: 2px solid rgba(255, 105, 180, 0.4);
  border-radius: 12px;
  color: white;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(255, 20, 147, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

.sidebar.sidebar-collapsed ~ .sidebar-reopen-btn {
  /* Hide the floating reopen button when the sidebar keeps its internal
     toggle visible to avoid duplicate controls. If you prefer the floating
     button instead, remove or change this rule. */
  display: none;
}

.sidebar-reopen-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(255, 20, 147, 0.6);
  background: linear-gradient(135deg, #ff69b4, #ff99d1);
}

.sidebar-reopen-btn span {
  line-height: 1;
  display: inline-block;
}

.sidebar-header {
  padding: 25px 20px;
  /* slightly pink header divider instead of neutral white */
  border-bottom: 2px solid rgba(255, 105, 180, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(255,250,253,0.6), rgba(255,242,247,0.35));
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.logo-icon {
  font-size: 30px;
  filter: drop-shadow(0 2px 8px rgba(255, 105, 180, 0.4));
  transition: transform 0.3s ease;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  transition: all 0.4s ease;
  white-space: nowrap;
}

.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.1), rgba(255, 105, 180, 0.15));
  border: 2px solid rgba(255, 105, 180, 0.3);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
  color: #ff1493;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

/* Better visual for the toggle: pill background to anchor it visually */
.sidebar-toggle {
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,240,245,0.9));
  border: 1px solid rgba(255,105,180,0.18);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 18px rgba(255, 20, 147, 0.08);
}

.sidebar-toggle .toggle-icon .emoji-icon {
  color: #ff1493;
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-toggle:hover .toggle-icon .emoji-icon {
  transform: scale(1.05) rotate(0deg);
}

/* Hide scrollbars but keep ability to scroll */
.sidebar-nav {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.sidebar-nav::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

.sidebar-toggle span {
  font-size: 18px;
  font-weight: bold;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  line-height: 1;
}

/* New SVG toggle icon styling */
.sidebar-toggle .toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sidebar-toggle .toggle-icon .emoji-icon {
  display: block;
}

/* Rotate toggle emoji when sidebar is collapsed (points right when closed) */
.sidebar.sidebar-collapsed .sidebar-toggle .toggle-icon .emoji-icon {
  transform: rotate(180deg);
}

/* Slightly smaller toggle in collapsed state */
.sidebar.sidebar-collapsed .sidebar-toggle {
  width: 36px;
  height: 36px;
}

.sidebar-toggle:hover {
  background: linear-gradient(135deg, rgba(255, 120, 170, 0.18), rgba(255, 80, 150, 0.2));
  border-color: rgba(255, 80, 150, 0.5);
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(255, 80, 150, 0.16);
}

.sidebar-nav {
  flex: 1;
  padding: 20px 0;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 20px;
  margin: 4px 12px;
  color: #8b4789;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  position: relative;
}

.nav-item:hover {
  /* stronger dark-pink hover so the item clearly highlights */
  background: linear-gradient(135deg, rgba(255,95,140,0.18), rgba(255,60,120,0.22));
  color: #fff; /* switch to white for contrast */
  transform: none;
  box-shadow: 0 8px 24px rgba(255, 60, 120, 0.12);
}

/* Stronger override to ensure icons are centered when the sidebar is collapsed.
   Placed after the main .nav-item rules so it wins in cascade. */
.sidebar.sidebar-collapsed .sidebar-nav .nav-item {
  justify-content: center !important;
  gap: 0 !important;
  padding: 10px 0 !important;
  margin: 6px 0 !important;
  width: calc(100% - 0px) !important; /* ensure full width but no horizontal padding */
}

.sidebar.sidebar-collapsed .sidebar-nav .nav-item .nav-icon {
  margin: 0 auto !important;
}

.nav-item.active {
  background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(255, 20, 147, 0.35);
}

.nav-icon {
  font-size: 22px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* Make inline SVGs inherit the app accent and render consistently */
.nav-icon svg {
  display: inline-block;
  vertical-align: middle;
  color: var(--accent-pink);
  stroke: currentColor;
  fill: none;
}

/* When sidebar is collapsed, keep SVGs compact and maintain stroke weight */
.sidebar.sidebar-collapsed .sidebar-nav .nav-item .nav-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.6;
}

.nav-item:hover .nav-icon {
  transform: scale(1.15);
}

.nav-text {
  flex: 1;
  letter-spacing: 0.2px;
  transition: all 0.4s ease;
  white-space: nowrap;
}

.sidebar-footer {
  padding: 15px;
  border-top: 2px solid rgba(255, 105, 180, 0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message-btn-sidebar,
.playlist-btn-sidebar {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(255, 20, 147, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.3px;
  font-family: 'Cochin', serif;
}

.playlist-btn-sidebar {
  background: linear-gradient(135deg, #1DB954 0%, #1ed760 100%);
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.35);
}

.message-btn-sidebar:hover,
.playlist-btn-sidebar:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 20, 147, 0.5);
}

.message-btn-sidebar:hover {
  background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
}

.playlist-btn-sidebar:hover {
  background: linear-gradient(135deg, #1ed760 0%, #1DB954 100%);
  box-shadow: 0 10px 30px rgba(29, 185, 84, 0.5);
}

.message-btn-sidebar:active,
.playlist-btn-sidebar:active {
  transform: translateY(-1px);
}

.sidebar.sidebar-collapsed .playlist-btn-sidebar span:last-child {
  display: none;
}

/* ===== MAIN CONTENT AREA ===== */
.main-content {
  margin-left: 280px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-collapsed ~ .main-content {
  margin-left: 80px;
}

.top-header {
  /* pink-toned top header to match sidebar surface */
  background: linear-gradient(180deg, rgba(255,250,253,0.82), rgba(255,242,247,0.72));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid rgba(255, 105, 180, 0.12);
  padding: 25px 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(255, 105, 180, 0.12);
}

.header-left {
  flex: 1;
}

.page-title {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
}

.page-subtitle {
  font-size: 16px;
  color: #c44569;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-actions {
  display: flex;
  gap: 12px;
}

/* Legacy button near header (links to old look) */
.legacy-btn {
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255, 235, 245, 0.95));
  border: 1px solid rgba(255, 105, 180, 0.22);
  color: var(--accent-pink);
  padding: 8px 12px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(255, 20, 147, 0.08);
}

.legacy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255, 20, 147, 0.16);
}

.header-btn {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border: 2px solid rgba(255, 105, 180, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.12);
}

.header-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 20, 147, 0.25);
  border-color: rgba(255, 20, 147, 0.4);
  background: rgba(255, 245, 250, 1);
}

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

/* ===== PAGE CONTENT ===== */
.page-content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
  animation: fadeIn 0.5s ease-out;
  transition: opacity 0.3s ease;
}

/* Flower page sizing: allow the flower stage to use abundant vertical space */
.flower-page { width: 100%; }
.flower-animation-wrapper { width: 100%; display: flex; justify-content: center; }
#flowerStage { width: 100%; height: calc(100vh - 180px); max-width: 1200px; }
.flower-stage iframe { border-radius: 12px; display: block; }

/* When flower stage is fixed we want it behind the UI but filling the content area */
#flowerStage {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  margin: 0 auto;
  max-width: none;
  pointer-events: none;
  z-index: 2;
}
#flowerStage iframe { width: 100%; height: 100%; }

/* ===== DASHBOARD COMPONENTS ===== */
.dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1200px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

.stat-card {
  background: linear-gradient(135deg, rgba(255, 245, 250, 0.98), rgba(255, 230, 240, 0.98));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 105, 180, 0.25);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(255, 105, 180, 0.18);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.6s ease-out both;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 107, 157, 0.35);
  border-color: rgba(255, 107, 157, 0.6);
}

.stat-icon {
  font-size: 48px;
  filter: drop-shadow(0 3px 10px rgba(255, 107, 157, 0.4));
}

/* Small variant used only for dashboard's camera (memories) and cat photos stat */
.stat-icon-small {
  font-size: 28px; /* keeps the container spacing consistent but smaller visually */
}
.stat-icon-small .emoji-icon,
.stat-icon-small .cat-glyph {
  font-size: 28px;
  line-height: 1;
  display: inline-block;
  transform: translateY(1px); /* tiny vertical tweak for visual centering */
}

/* Inline SVG for nav icons (use when emoji fallback shows question marks) */
.nav-icon-svg {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}

/* Footer icons (messages, playlist) */
.footer-icon-svg {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

/* Black music icon variant for footer playlist */
.footer-icon-svg.black {
  color: #000;
}
.playlist-btn-sidebar .footer-icon-svg {
  color: #000; /* make the music icon black */
}

/* Outlined camera SVG sizing for dashboard small stat */
.stat-icon-small .icon-camera-outlined {
  width: 28px;
  height: 28px;
  display: inline-block;
}

/* Cat glyph: slightly smaller and colored on the dashboard stat only */
.stat-icon-small .cat-glyph {
  font-size: 18px; /* smaller than camera to match desired look */
  color: #ff5a8b; /* pinkish color to match theme */
  text-shadow: 0 2px 6px rgba(255, 90, 139, 0.18);
  transform: translateY(2px);
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff6b9d, #ff1493);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.08; /* slightly taller to avoid glyph clipping */
  display: inline-block;
  padding-bottom: 2px;
  margin: 0 0 6px 0;
}

.stat-label {
  /* Use a subtle pink-tinted transparent background instead of a solid white block
     so stat subheadings (like "Days Together") blend with the surface. */
  background: linear-gradient(135deg, rgba(255,240,247,0.65), rgba(255,225,238,0.55));
  color: #c44569;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  padding: 2px 6px; /* small padding so text doesn't touch edges */
  border-radius: 6px;
  display: inline-block;
}

/* Countdown Card Dashboard */
.countdown-card-dashboard {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 240, 250, 0.98));
  -webkit-backdrop-filter: blur(20px);
  overflow: visible; /* ensure larger glyphs/descenders are visible */
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 105, 180, 0.3);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 35px rgba(255, 105, 180, 0.2);
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

.countdown-header-dash {
  text-align: center;
  margin-bottom: 25px;
}

.countdown-header-dash h2 {
  font-size: 28px;
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  margin: 0 0 8px 0;
}

.event-name-dash {
  font-size: 18px;
  color: #ff1493;
  font-weight: 600;
  margin: 0;
}

.countdown-display-dash {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.countdown-item-dash {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 153, 209, 0.25), rgba(255, 179, 217, 0.25));
  padding: 20px;
  border-radius: 15px;
  min-width: 100px;
  flex: 1;
  max-width: 150px;
  border: 2px solid rgba(255, 105, 180, 0.4);
  transition: all 0.3s ease;
}

.countdown-item-dash:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 20, 147, 0.35);
  border-color: rgba(255, 20, 147, 0.5);
}

.countdown-number-dash {
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* increase line-height slightly and add bottom padding to avoid descender clipping
     (helps across browsers and different font rendering engines) */
  line-height: 1.12;
  display: inline-block;
  padding-bottom: 4px;
}

.countdown-label-dash {
  font-size: 13px;
  color: #ff1493;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Dashboard Main Grid */
.dashboard-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  animation: fadeInUp 0.6s ease-out 0.6s both;
  align-items: stretch; /* ensure both columns stretch to the same height */
}

@media (max-width: 1024px) {
  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }
}

/* Hero Image Dashboard */
.dashboard-hero {
  position: relative;
}

.hero-image-container-dash {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(255, 20, 147, 0.35);
  border: 3px solid rgba(255, 105, 180, 0.4);
  transition: all 0.4s ease;
}

.hero-image-container-dash:hover {
  box-shadow: 0 20px 60px rgba(255, 20, 147, 0.5);
  border-color: rgba(255, 20, 147, 0.5);
  transform: translateY(-3px);
}

.hero-image-dash {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image-container-dash:hover .hero-image-dash {
  transform: scale(1.05);
}

.hero-overlay-dash {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 25px;
  transition: opacity 0.3s ease;
}

.hero-image-container-dash:hover .hero-overlay-dash {
  opacity: 1;
}

.change-photo-btn-dash {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.95);
  color: #ff1493;
  border: 2px solid #ff1493;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Cochin', serif;
}

.change-photo-btn-dash:hover {
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 20, 147, 0.4);
}

/* Quick Actions Card */
.quick-actions-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 240, 250, 0.98));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 105, 180, 0.3);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.18);
  display: flex;
  flex-direction: column;
  height: 100%; /* let the grid cell stretch and this card fill it */
}

.quick-actions-card h3 {
  font-size: 20px;
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  margin: 0 0 20px 0;
  text-align: center;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  /* Make grid rows stretch so buttons grow evenly to fill the card */
  grid-auto-rows: 1fr;
}

.quick-action-btn {
  background: linear-gradient(135deg, rgba(255, 240, 250, 0.95), rgba(255, 230, 245, 0.95));
  border: 2px solid rgba(255, 105, 180, 0.3);
  border-radius: 15px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%; /* fill the grid cell */
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Cochin', serif;
}

.quick-action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 20, 147, 0.3);
  border-color: rgba(255, 20, 147, 0.5);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 240, 250, 1));
}

.quick-icon {
  font-size: 32px;
  filter: drop-shadow(0 2px 8px rgba(255, 20, 147, 0.3));
}

.quick-text {
  font-size: 13px;
  font-weight: 700;
  color: #ff1493;
  text-align: center;
  line-height: 1.2;
}

/* Cat Preview Card */
.cat-preview-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 240, 250, 0.98));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 105, 180, 0.3);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.18);
  animation: fadeInUp 0.6s ease-out 0.7s both;
}

/* Emoticon/glyph icon used for sidebar/dashboard cat (𑄝) */
.icon-emoticon {
  display: inline-block;
  /* Prefer fonts that support rare or historic glyphs; fall back to emoji/system fonts */
  font-family: 'Noto Sans Chakma', 'Noto Sans Symbols2', 'Segoe UI Emoji', 'Segoe UI Symbol', system-ui, sans-serif;
  font-size: 22px; /* slightly larger to match other nav icons */
  line-height: 1;
  color: var(--accent-pink);
  transform: translateY(1px);
}

/* helper for foreignObject wrapper used with emoticon SVG fallback */
.icon-emoticon-fo {
  display:flex;
  align-items:center;
  justify-content:center;
  height:24px;
}

/* Paw emoji in sidebar nav */
.nav-paw {
  font-size: 20px;
  line-height: 1;
  color: var(--accent-pink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* make sure inline SVG inside .nav-paw inherits the accent color */
.nav-paw svg {
  color: var(--accent-pink);
}

/* Sidebar nav SVGs should inherit the accent color for stroke/fill */
.sidebar .nav-icon svg {
  color: var(--accent-pink);
  stroke: currentColor;
  fill: currentColor; /* allow subtle fills for book cover or cat eyes */
}

.cat-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cat-preview-header h3 {
  font-size: 20px;
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  margin: 0;
}

.view-all-btn {
  padding: 8px 18px;
  background: linear-gradient(135deg, #ff69b4, #ff99d1);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Cochin', serif;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.view-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 20, 147, 0.4);
  background: linear-gradient(135deg, #ff1493, #ff69b4);
}

.cat-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.cat-preview-item {
  aspect-ratio: 1;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(255, 105, 180, 0.25);
  border: 2px solid rgba(255, 105, 180, 0.3);
  transition: all 0.3s ease;
}

.cat-preview-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 20, 147, 0.4);
  border-color: rgba(255, 20, 147, 0.5);
}

.cat-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cat-preview-item:hover img {
  transform: scale(1.1);
}

/* ===== APP HEADER ===== */
.app-header {
  background: linear-gradient(135deg, rgba(255, 240, 245, 0.98), rgba(255, 228, 240, 0.98));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(255, 182, 193, 0.3);
  padding: 25px 30px;
  position: sticky;
  top: 0;
  z-index: 100;
  animation: slideDown 0.6s ease-out;
  border-bottom: 2px solid rgba(255, 182, 193, 0.3);
}

@keyframes slideDown {
  0% { transform: translateY(-100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.app-title {
  font-size: clamp(24px, 4vw, 36px);
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
}

@keyframes titleShimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

.message-btn {
  padding: 14px 32px;
  font-size: 17px;
  background: linear-gradient(135deg, #ff6b9d, #ff5a8d);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Cochin', serif;
  letter-spacing: 0.5px;
}

.message-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 35px rgba(255, 107, 157, 0.6);
  background: linear-gradient(135deg, #ff5a8d, #ff4479);
}

.message-btn:active {
  transform: translateY(-1px) scale(1.02);
}

/* ===== APP CONTAINER ===== */
.app-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 25px 20px;
  width: 100%;
  flex: 1;
}

/* ===== DASHBOARD GRID LAYOUT ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

.dashboard-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dashboard-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-header h2 {
  font-size: 32px;
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
  margin-bottom: 10px;
}

.section-header p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 17px;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(255, 182, 193, 0.3);
}

/* ===== COUNTDOWN SECTION ===== */
.countdown-section {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.countdown-section.compact {
  margin-bottom: 0;
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.countdown-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 245, 250, 0.98));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 10px 40px rgba(255, 182, 193, 0.35);
  border: 2px solid rgba(255, 182, 193, 0.4);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.countdown-card.compact-card {
  padding: 20px;
}

.countdown-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmerRotate 4s linear infinite;
  pointer-events: none;
}

@keyframes shimmerRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.countdown-title {
  font-size: clamp(20px, 3vw, 24px);
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  font-weight: 800;
}

.countdown-display {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.25), rgba(255, 192, 203, 0.25));
  padding: 15px;
  border-radius: 15px;
  min-width: 70px;
  flex: 1;
  border: 2px solid rgba(255, 182, 193, 0.5);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(255, 182, 193, 0.2);
}

.countdown-item:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(255, 107, 157, 0.35);
  border-color: rgba(255, 107, 157, 0.6);
}

.countdown-item:nth-child(1) { animation-delay: 0s; }
.countdown-item:nth-child(2) { animation-delay: 0.2s; }
.countdown-item:nth-child(3) { animation-delay: 0.4s; }
.countdown-item:nth-child(4) { animation-delay: 0.6s; }

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

.countdown-number {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: bold;
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Slightly larger line-height and padding to avoid descender clipping across fonts/browsers */
  line-height: 1.12;
  display: inline-block;
  padding-bottom: 3px;
}

.countdown-label {
  font-size: 14px;
  color: #ff6b9d;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.event-name {
  font-size: clamp(16px, 2.5vw, 20px);
  color: #c44569;
  font-weight: 700;
  margin-top: 12px;
}

/* ===== CAT GALLERY SECTION ===== */
.cat-gallery-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 245, 250, 0.98));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(255, 182, 193, 0.35);
  border: 2px solid rgba(255, 182, 193, 0.4);
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

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

.gallery-header h3 {
  font-size: 20px;
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  margin: 0;
}

.shuffle-btn {
  background: linear-gradient(135deg, #ff8fb3, #ffa6c9);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 143, 179, 0.4);
  transition: all 0.3s ease;
}

.shuffle-btn:hover {
  transform: rotate(180deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 143, 179, 0.6);
}

.cat-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.cat-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(255, 182, 193, 0.3);
  border: 2px solid rgba(255, 182, 193, 0.4);
  transition: all 0.3s ease;
}

.cat-card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 107, 157, 0.5);
  border-color: rgba(255, 107, 157, 0.6);
}

.cat-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cat-card:hover .cat-thumbnail {
  transform: scale(1.1);
}

/* ===== STATS CARD ===== */
.stats-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 245, 250, 0.98));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(255, 182, 193, 0.35);
  border: 2px solid rgba(255, 182, 193, 0.4);
  text-align: center;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.stats-card h3 {
  font-size: 20px;
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  margin-bottom: 15px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.25), rgba(255, 192, 203, 0.25));
  padding: 15px;
  border-radius: 15px;
  border: 2px solid rgba(255, 182, 193, 0.5);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(255, 107, 157, 0.3);
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff6b9d, #ff1493);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: #c44569;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ===== HERO IMAGE SECTION ===== */
.hero-section {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-section.compact {
  margin-bottom: 0;
}

.hero-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(255, 107, 157, 0.45);
  border: 3px solid rgba(255, 182, 193, 0.5);
  background: linear-gradient(135deg, rgba(255, 240, 245, 0.2), rgba(255, 228, 240, 0.2));
  transition: all 0.4s ease;
}

.hero-image-container:hover {
  box-shadow: 0 20px 60px rgba(255, 107, 157, 0.6);
  border-color: rgba(255, 107, 157, 0.7);
  transform: translateY(-3px);
}

.hero-label {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 245, 250, 0.95));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  color: #c44569;
  border: 2px solid rgba(255, 182, 193, 0.5);
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
  cursor: pointer;
}

.hero-image:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  padding: 30px;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-image-container:hover .image-overlay {
  opacity: 1;
}

.change-photo-btn {
  padding: 12px 24px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.98);
  color: #ff6b9d;
  border: 2px solid #ff6b9d;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: 'Cochin', serif;
}

.change-photo-btn:hover {
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

/* ===== FEATURES SECTION ===== */
.features-section {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.features-section.compact {
  margin-bottom: 0;
}

.section-title {
  font-size: 22px;
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  margin-bottom: 18px;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
}

.features-grid.compact-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.feature-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 245, 250, 0.98));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 182, 193, 0.4);
  border-radius: 18px;
  padding: 20px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(255, 182, 193, 0.25);
  position: relative;
  overflow: hidden;
  font-family: 'Cochin', serif;
}

.feature-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.1), rgba(255, 107, 157, 0.1));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.feature-btn:hover::before {
  opacity: 1;
}

.feature-btn:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(255, 107, 157, 0.4);
  border-color: rgba(255, 107, 157, 0.6);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 240, 248, 1));
}

.feature-btn:active {
  transform: translateY(-2px);
}

.btn-icon {
  font-size: 40px;
  filter: drop-shadow(0 3px 10px rgba(255, 107, 157, 0.4));
  transition: transform 0.3s ease;
  z-index: 1;
}

.feature-btn:hover .btn-icon {
  transform: scale(1.15);
}

.btn-text {
  font-size: 13px;
  font-weight: 700;
  color: #c44569;
  text-align: center;
  letter-spacing: 0.3px;
  z-index: 1;
  line-height: 1.3;
}

/* ===== PLAYLIST SECTION ===== */
.playlist-section {
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.playlist-section.compact {
  margin-bottom: 0;
}

.spotify-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 245, 250, 0.98));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 25px 30px;
  box-shadow: 0 10px 40px rgba(255, 182, 193, 0.35);
  border: 2px solid rgba(255, 182, 193, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.spotify-info {
  text-align: left;
}

.spotify-info h3 {
  font-size: 22px;
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  margin-bottom: 5px;
}

.spotify-info p {
  font-size: 14px;
  color: #c44569;
  font-weight: 500;
  margin: 0;
}

.spotify-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  font-size: 16px;
  background: #1DB954;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.4);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Cochin', serif;
  flex-shrink: 0;
}

.spotify-btn:hover {
  background: #1ed760;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 35px rgba(29, 185, 84, 0.6);
}

.spotify-btn:active {
  transform: translateY(-2px) scale(1.02);
}

.spotify-icon {
  font-size: 22px;
}

.spotify-text {
  font-size: 16px;
}

/* ===== FOOTER ===== */
.app-footer {
  background: linear-gradient(135deg, rgba(255, 240, 245, 0.95), rgba(255, 228, 240, 0.95));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 25px;
  text-align: center;
  box-shadow: 0 -4px 20px rgba(255, 182, 193, 0.3);
  border-top: 2px solid rgba(255, 182, 193, 0.3);
}

.app-footer p {
  color: #c44569;
  font-size: 16px;
  margin: 0;
  font-weight: 600;
}

/* ===== MODAL STYLES ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: all 0.4s ease;
  padding: 20px;
}

.modal.show {
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.modal-content {
  /* Book-like modal surface */
  background: linear-gradient(180deg, rgba(255,250,249,1) 0%, rgba(255,242,247,1) 100%);
  border: 4px solid rgba(245, 190, 205, 0.9);
  padding: 38px;
  border-radius: 18px;
  text-align: center;
  max-width: 900px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 35px 90px rgba(200, 60, 110, 0.18), inset 0 2px 0 rgba(255,255,255,0.6);
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  transition: all 0.36s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-content::-webkit-scrollbar {
  width: 10px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(255, 240, 250, 0.5);
  border-radius: 0 30px 30px 0;
}

.modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  border-radius: 10px;
  border: 2px solid rgba(255, 240, 250, 0.5);
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ff69b4, #ff99d1);
}

.modal.show .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  color: #ff1493;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 240, 245, 0.9);
  border: 2px solid rgba(255, 105, 180, 0.4);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  line-height: 1;
  font-weight: 300;
  transform-origin: center center;
}

.close-btn:hover {
  color: white;
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  border-color: rgba(255, 20, 147, 0.6);
  box-shadow: 0 6px 20px rgba(255, 20, 147, 0.4);
  transform: rotate(90deg) scale(1.1);
}

.close-popup-btn {
  margin-top: 25px;
  padding: 14px 35px;
  font-size: 17px;
  color: white;
  background: linear-gradient(135deg, #ff6b9d, #ff5a8d);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.45);
  font-family: 'Cochin', serif;
  letter-spacing: 0.5px;
}

.close-popup-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 35px rgba(255, 107, 157, 0.65);
  background: linear-gradient(135deg, #ff5a8d, #ff4479);
}

.close-popup-btn:active {
  transform: translateY(-2px) scale(1.02);
}

/* Message Modal Specific Styles */
.message-modal-content {
  max-width: 600px;
}

.message-form-container h2 {
  background: linear-gradient(135deg, #ff6b9d, #ff1493);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  font-size: 30px;
  font-weight: 800;
}

.message-subtitle {
  color: #c44569;
  margin-bottom: 28px;
  font-size: 17px;
  font-weight: 500;
}

#messageForm {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#messageText {
  width: 100%;
  padding: 16px;
  border: 2px solid rgba(255, 107, 157, 0.4);
  border-radius: 18px;
  font-size: 16px;
  font-family: 'Cochin', serif;
  resize: vertical;
  background: rgba(255, 255, 255, 0.95);
  color: #c44569;
  transition: all 0.3s ease;
  min-height: 120px;
}

#messageText:focus {
  outline: none;
  border-color: #ff6b9d;
  box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.15);
  background: rgba(255, 255, 255, 1);
}

.char-counter {
  text-align: right;
  color: #c44569;
  font-size: 14px;
  font-weight: 600;
}

.submit-message-btn {
  padding: 16px 35px;
  font-size: 18px;
  color: white;
  background: linear-gradient(135deg, #ff6b9d, #ff5a8d);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.45);
  font-family: 'Cochin', serif;
  letter-spacing: 0.5px;
}

.submit-message-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 35px rgba(255, 107, 157, 0.65);
  background: linear-gradient(135deg, #ff5a8d, #ff4479);
}

.submit-message-btn:active {
  transform: translateY(-2px) scale(1.02);
}

/* Modal Content Styles */
#popupContent {
  font-size: 17px;
  color: #c44569;
  line-height: 1.7;
}

#popupContent img {
  width: 100%;
  max-width: 600px;
  max-height: 600px;
  border-radius: 20px;
  margin: 15px auto;
  display: block;
  box-shadow: 0 15px 40px rgba(255, 107, 157, 0.4);
  border: 3px solid rgba(255, 182, 193, 0.4);
  transition: all 0.3s ease;
}

/* Story images should have consistent sizing with cover */
#popupContent img[src*="Story/"] {
  height: 450px;
  object-fit: cover;
  object-position: center;
}

/* Love story: book-like page styles */
.love-story-container {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  justify-items: center;
}

.book-page {
  background: linear-gradient(180deg, rgba(255,250,248,1), rgba(255,244,247,1));
  border: 1px solid rgba(235, 180, 200, 0.6);
  border-radius: 12px;
  padding: 18px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(200, 40, 100, 0.08);
  transform-origin: left center;
  perspective: 1200px;
}

.book-page img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(200, 60, 110, 0.12);
}

.book-caption {
  font-family: 'Cochin', 'Georgia', serif;
  color: #8b004b;
  font-size: 16px;
  line-height: 1.7;
  text-align: left;
  margin-top: 12px;
}

/* Page-turn animation */
.page-turn {
  animation: pageTurn 480ms ease-in-out forwards;
}

@keyframes pageTurn {
  0% { transform: rotateY(0deg) translateX(0); box-shadow: 0 10px 30px rgba(200,40,100,0.08); }
  40% { transform: rotateY(-20deg) translateX(-6%); box-shadow: 0 20px 40px rgba(200,40,100,0.12); }
  100% { transform: rotateY(-2deg) translateX(-2%); box-shadow: 0 8px 24px rgba(180,40,100,0.06); }
}

/* Navigation buttons styled like page controls */
.nav-btn {
  background: linear-gradient(180deg, #fff, #ffeef6);
  border: 2px solid rgba(255,160,190,0.6);
  color: #c43476;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  margin: 8px;
  transition: all 0.28s cubic-bezier(0.2,0.8,0.2,1);
  box-shadow: 0 6px 18px rgba(200,40,100,0.08);
}

.nav-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(200,40,100,0.12); }

.love-story-counter { color: #ff69b4; font-weight: 700; margin-top: 12px; }

#popupContent img:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 50px rgba(255, 107, 157, 0.5);
}

#popupContent h3 {
  background: linear-gradient(135deg, #ff6b9d, #ff1493);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 22px;
  font-size: 26px;
  font-weight: 800;
}

.special-caption {
  font-family: 'Cochin', 'Georgia', serif;
  font-size: 17px;
  color: #c44569;
  margin-top: 18px;
  padding: 0 12px;
  text-align: center;
  line-height: 1.6;
  font-weight: 500;
}

#storyContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#storyContent img {
  max-width: 100%;
  height: auto;
  max-height: 390px;
  border-radius: 10px;
  margin-bottom: 10px;
}

#captionArea {
  font-size: 15px;
  color: #c44569;
  margin-top: 18px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(255, 240, 245, 0.98), rgba(255, 228, 240, 0.98));
  border: 2px solid rgba(255, 182, 193, 0.5);
  border-radius: 22px;
  display: inline-block;
  max-width: 420px;
  word-wrap: break-word;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.25);
  text-align: center;
  font-weight: 500;
  line-height: 1.6;
}

/* Navigation Buttons */
.navigation-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.arrow-btn, .regenerate-btn, .nav-btn {
  background: linear-gradient(135deg, #ff6b9d, #ff5a8d);
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 17px;
  border-radius: 28px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.45);
  font-weight: 700;
  font-family: 'Cochin', serif;
  letter-spacing: 0.4px;
}

.arrow-btn:hover, .regenerate-btn:hover, .nav-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 35px rgba(255, 107, 157, 0.65);
  background: linear-gradient(135deg, #ff5a8d, #ff4479);
}

.arrow-btn:active, .regenerate-btn:active, .nav-btn:active {
  transform: translateY(-2px) scale(1.02);
}

.letter-option {
  width: 100%;
  margin: 12px 0;
  padding: 16px 30px;
  font-size: 17px;
  background: linear-gradient(135deg, #ff6b9d, #ff5a8d);
  color: white;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.45);
  font-weight: 700;
  font-family: 'Cochin', serif;
  letter-spacing: 0.4px;
}

.letter-option:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 35px rgba(255, 107, 157, 0.65);
  background: linear-gradient(135deg, #ff5a8d, #ff4479);
}

.letter-option:active {
  transform: translateY(-2px) scale(1);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fadeOut {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.95); }
}

@keyframes slideOutLeft {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(-50px); opacity: 0; }
}

@keyframes slideInRight {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(50px); opacity: 0; }
}

@keyframes slideInLeft {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.fade-out {
  animation: fadeOut 0.3s forwards;
}

.fade-in {
  animation: fadeIn 0.3s forwards;
}

.slide-out-left {
  animation: slideOutLeft 0.3s forwards;
}

.slide-in-right {
  animation: slideInRight 0.3s forwards;
}

.slide-out-right {
  animation: slideOutRight 0.3s forwards;
}

.slide-in-left {
  animation: slideInLeft 0.3s forwards;
}

/* Full-page letter modal */
.full-page-modal .modal-content {
  max-width: 95%;
  width: 95%;
  max-height: 95vh;
  padding: 50px 40px;
}

/* Gift journey styles */
.gift-journey-container {
  text-align: center;
  padding: 20px;
  animation: fadeIn 0.8s ease-out;
}

.gift-box {
  background: linear-gradient(135deg, rgba(255, 245, 250, 0.98), rgba(255, 228, 240, 0.95));
  border: 3px solid rgba(255, 107, 157, 0.5);
  border-radius: 30px;
  padding: 45px;
  margin: 20px auto;
  max-width: 650px;
  box-shadow: 0 20px 60px rgba(255, 107, 157, 0.45);
  animation: bounceIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.gift-box:hover {
  box-shadow: 0 25px 70px rgba(255, 107, 157, 0.55);
  border-color: rgba(255, 107, 157, 0.7);
}

.gift-box::before {
  content: '🎁';
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 100px;
  opacity: 0.1;
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.gift-number {
  font-size: 52px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff6b9d, #ff1493);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 18px;
}

.gift-clue {
  font-size: 21px;
  color: #c44569;
  font-style: italic;
  margin: 25px 0;
  line-height: 1.7;
  font-weight: 500;
}

.gift-reveal {
  font-size: 36px;
  background: linear-gradient(135deg, #ff6b9d, #ff1493);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  margin: 30px 0;
  animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  10%, 30% { transform: scale(1.1); }
  20%, 40% { transform: scale(1.05); }
}

.open-gift-btn {
  background: linear-gradient(135deg, #ff6b9d, #ff5a8d);
  color: white;
  border: none;
  padding: 18px 45px;
  font-size: 20px;
  border-radius: 35px;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(255, 107, 157, 0.5);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 18px;
  font-family: 'Cochin', serif;
  letter-spacing: 0.5px;
}

.open-gift-btn:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 15px 45px rgba(255, 107, 157, 0.7);
  background: linear-gradient(135deg, #ff5a8d, #ff4479);
}

.open-gift-btn:active {
  transform: translateY(-3px) scale(1.05);
}

.next-gift-btn {
  background: linear-gradient(135deg, #ff8fb3, #ffa6c9);
  color: white;
  border: none;
  padding: 16px 38px;
  font-size: 18px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(255, 143, 179, 0.45);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 12px;
  font-family: 'Cochin', serif;
  letter-spacing: 0.4px;
}

.next-gift-btn:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 12px 35px rgba(255, 143, 179, 0.65);
  background: linear-gradient(135deg, #ff7fa8, #ff92b8);
}

.next-gift-btn:active {
  transform: translateY(-2px) scale(1.03);
}

.journey-progress {
  margin: 30px 0;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.progress-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 182, 193, 0.4);
  border: 2px solid rgba(255, 107, 157, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-dot.active {
  background: linear-gradient(135deg, #ff6b9d, #ff1493);
  transform: scale(1.4);
  box-shadow: 0 0 20px rgba(255, 107, 157, 0.7), 0 0 35px rgba(255, 107, 157, 0.4);
  border-color: #ff1493;
}

.progress-dot.completed {
  background: linear-gradient(135deg, #ff8fb3, #ffa6c9);
  border-color: #ff8fb3;
  box-shadow: 0 0 10px rgba(255, 143, 179, 0.5);
}

/* Enhanced animations */
@keyframes sparkleIn {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes floatIn {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}

.sparkle-entrance {
  animation: sparkleIn 0.8s ease-out;
}

.float-entrance {
  animation: floatIn 0.6s ease-out;
}

/* Enhanced feature buttons */
.feature-btn {
  animation: floatIn 0.6s ease-out;
  animation-fill-mode: both;
}

.feature-btn:nth-child(1) { animation-delay: 0.1s; }
.feature-btn:nth-child(2) { animation-delay: 0.15s; }
.feature-btn:nth-child(3) { animation-delay: 0.2s; }
.feature-btn:nth-child(4) { animation-delay: 0.25s; }
.feature-btn:nth-child(5) { animation-delay: 0.3s; }
.feature-btn:nth-child(6) { animation-delay: 0.35s; }
.feature-btn:nth-child(7) { animation-delay: 0.4s; }
.feature-btn:nth-child(8) { animation-delay: 0.45s; }

/* ===== RESPONSIVE DESIGN (MOBILE) ===== */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dashboard-left {
    order: 2;
  }

  .dashboard-right {
    order: 1;
  }

  .features-grid.compact-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (max-width: 768px) {
  .app-header {
    padding: 15px;
  }

  .header-content {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 12px;
  }

  .app-title {
    font-size: 24px;
  }

  .message-btn {
    padding: 10px 24px;
    font-size: 15px;
  }

  .app-container {
    padding: 15px 12px;
  }

  .dashboard-grid {
    gap: 15px;
  }

  .countdown-card {
    padding: 18px 15px;
  }

  .countdown-title {
    font-size: 20px;
  }

  .countdown-display {
    gap: 8px;
  }

  .countdown-item {
    padding: 12px 8px;
    min-width: 60px;
  }

  .countdown-number {
    font-size: 28px;
  }

  .countdown-label {
    font-size: 11px;
  }

  .cat-gallery-section {
    padding: 15px;
  }

  .gallery-header h3 {
    font-size: 18px;
  }

  .stats-card {
    padding: 15px;
  }

  .stats-card h3 {
    font-size: 18px;
  }

  .stat-number {
    font-size: 28px;
  }

  .section-title {
    font-size: 20px;
  }

  .features-grid,
  .features-grid.compact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .feature-btn {
    padding: 18px 12px;
  }

  .btn-icon {
    font-size: 36px;
  }

  .btn-text {
    font-size: 12px;
  }

  .spotify-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .spotify-info {
    text-align: center;
  }

  .spotify-info h3 {
    font-size: 20px;
  }

  .spotify-btn {
    padding: 12px 24px;
    font-size: 15px;
  }

  .modal-content {
    padding: 25px 20px;
    max-width: 95%;
  }

  .full-page-modal .modal-content {
    padding: 30px 20px;
  }

  .greeting-text {
    font-size: 28px;
  }

  .cursor {
    font-size: 28px;
  }

  .gift-box {
    padding: 25px;
  }

  .gift-number {
    font-size: 40px;
  }

  .gift-clue {
    font-size: 18px;
  }

  .gift-reveal {
    font-size: 28px;
  }

  .open-gift-btn {
    padding: 15px 30px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .app-title {
    font-size: 22px;
  }

  .countdown-display {
    gap: 8px;
  }

  .countdown-item {
    padding: 12px 8px;
    min-width: 55px;
  }

  .countdown-number {
    font-size: 24px;
  }

  .countdown-label {
    font-size: 10px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .btn-icon {
    font-size: 32px;
  }

  .btn-text {
    font-size: 13px;
  }

  .greeting-text {
    font-size: 24px;
  }

  .cursor {
    font-size: 24px;
  }
}

/* ===== TABLET RESPONSIVE ===== */
@media (min-width: 769px) and (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .countdown-display {
    gap: 15px;
  }
}

/* ===== LARGE SCREENS ===== */
@media (min-width: 1400px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== ADDITIONAL UTILITY ANIMATIONS ===== */
@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes gentleGlow {
  0% { box-shadow: 0 0 10px rgba(255, 105, 180, 0.3); }
  100% { box-shadow: 0 0 20px rgba(255, 105, 180, 0.6); }
}

@keyframes imageZoom {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes slideIn {
  0% { transform: translateX(50px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes bounce {
  0% { transform: translateY(-30px) scale(0.8); opacity: 0; }
  50% { transform: translateY(10px) scale(1.1); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes sparkle {
  0% { transform: scale(0) rotate(0deg); opacity: 1; }
  100% { transform: scale(1) rotate(180deg); opacity: 0; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.romantic-text {
  animation: fadeIn 1s ease-in 0.5s both;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 228, 240, 0.3);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  border-radius: 6px;
  border: 2px solid rgba(255, 240, 245, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ff69b4, #ff99d1);
  border-color: rgba(255, 240, 245, 0.8);
}

/* ===== PAGE-SPECIFIC STYLES ===== */

/* Memories Page */
.memories-page {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.memories-header-section {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 240, 250, 0.98));
  border-radius: 20px;
  border: 2px solid rgba(255, 105, 180, 0.3);
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.18);
}

.memories-main-title {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 10px 0;
}

.memories-subtitle {
  font-size: 18px;
  color: #ff1493;
  font-weight: 600;
  margin: 0 0 20px 0;
}

.memories-actions-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  flex-direction: column;
}

.memories-filter-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.memories-action-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.upload-photo-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(155, 89, 182, 0.35);
  font-family: 'Cochin', serif;
  white-space: nowrap;
}

.upload-photo-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 30px rgba(155, 89, 182, 0.5);
  background: linear-gradient(135deg, #a569bd, #9b59b6);
}

/* ===== PET PHOTOS HEADER ===== */
.pets-header-section {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 240, 250, 0.98));
  border-radius: 20px;
  border: 2px solid rgba(255, 105, 180, 0.3);
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.18);
  margin-bottom: 25px;
}

.pets-main-title {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 10px 0;
}

.pets-subtitle {
  font-size: 18px;
  color: #ff1493;
  font-weight: 600;
  margin: 0 0 20px 0;
}

.pets-actions-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  flex-direction: column;
}

.pets-filter-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.pets-action-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.shuffle-memories-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(255, 20, 147, 0.35);
  font-family: 'Cochin', serif;
  white-space: nowrap;
}

.shuffle-memories-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 20, 147, 0.5);
  background: linear-gradient(135deg, #ff69b4, #ff99d1);
}

.filter-btn {
  padding: 10px 24px;
  background: rgba(255, 240, 250, 0.8);
  border: 2px solid rgba(255, 105, 180, 0.3);
  border-radius: 25px;
  color: #ff1493;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Cochin', serif;
}

.filter-btn:hover {
  background: linear-gradient(135deg, #ff69b4, #ff99d1);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 20, 147, 0.3);
}

.filter-btn.active {
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(255, 20, 147, 0.35);
}

.memories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.memory-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.2);
  border: 2px solid rgba(255, 105, 180, 0.25);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.6s ease-out both;
}

.memory-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 15px 40px rgba(255, 20, 147, 0.35);
  border-color: rgba(255, 20, 147, 0.4);
}

.memory-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.memory-card:hover img {
  transform: scale(1.1);
}

.memory-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255, 20, 147, 0.8), transparent);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 15px;
  transition: opacity 0.3s ease;
}

.memory-card:hover .memory-overlay {
  opacity: 1;
}

.memory-number {
  color: white;
  font-weight: 700;
  font-size: 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.favorite-heart-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 105, 180, 0.3);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.favorite-heart-btn:hover {
  transform: scale(1.15);
  background: white;
  border-color: rgba(255, 20, 147, 0.5);
  box-shadow: 0 6px 18px rgba(255, 20, 147, 0.3);
}

.favorite-heart-btn.favorited {
  background: linear-gradient(135deg, rgba(255, 240, 245, 0.98), rgba(255, 250, 252, 0.98));
  border-color: rgba(255, 20, 147, 0.5);
  animation: heartPulse 0.4s ease-out;
}

.favorite-heart-btn.favorited:hover {
  transform: scale(1.15) rotate(10deg);
}

/* Heart SVG inside favorite button */
.favorite-heart-btn .heart-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  transition: fill 0.25s ease, transform 0.25s ease;
  color: rgba(255, 105, 180, 1);
}

.favorite-heart-btn .heart-icon path {
  stroke: currentColor;
  fill: transparent;
}

.favorite-heart-btn.favorited .heart-icon path {
  fill: currentColor;
  transform-origin: center;
  transform: scale(1);
}

/* Stat icons styling (dashboard) */
.stat-icon svg {
  width: 28px;
  height: 28px;
  display: block;
  fill: none;
  stroke: var(--accent-pink);
  color: var(--accent-pink); /* for stroke-based icons using currentColor */
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-icon svg,
.header-btn svg,
.sidebar-footer svg {
  fill: none;
  stroke: var(--accent-pink);
  color: var(--accent-pink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Normalize nav icon container and visuals */
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 8px;
}

.nav-item .nav-icon svg {
  width: 20px;
  height: 20px;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 20, 147, 0.06);
}

.nav-item.active .nav-icon svg {
  transform: scale(1.06);
}

/* Love Notes Page */
.love-notes-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.love-notes-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  width: 100%;
  max-width: 1000px;
}

.action-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 240, 250, 0.98));
  border: 2px solid rgba(255, 105, 180, 0.3);
  border-radius: 25px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(255, 105, 180, 0.18);
  text-align: center;
  font-family: 'Cochin', serif;
}

.action-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(255, 20, 147, 0.3);
  border-color: rgba(255, 20, 147, 0.4);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 235, 248, 1));
}

.action-icon {
  font-size: 64px;
  filter: drop-shadow(0 4px 12px rgba(255, 20, 147, 0.3));
}

.action-card h3 {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.action-card p {
  font-size: 16px;
  color: #ff1493;
  font-weight: 600;
  margin: 0;
}

/* Dates Page */
.dates-page {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.dates-header-section {
  text-align: center;
  padding: 25px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 240, 250, 0.98));
  border-radius: 20px;
  border: 2px solid rgba(255, 105, 180, 0.3);
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.18);
}

.dates-main-title {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 10px 0;
}

.dates-subtitle {
  font-size: 18px;
  color: #ff1493;
  font-weight: 600;
  margin: 0;
}

.date-generator-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 240, 250, 0.98));
  border: 2px solid rgba(255, 105, 180, 0.3);
  border-radius: 25px;
  padding: 35px;
  box-shadow: 0 10px 35px rgba(255, 105, 180, 0.2);
  text-align: center;
}

.generator-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.generator-icon {
  font-size: 60px;
  filter: drop-shadow(0 4px 12px rgba(255, 20, 147, 0.3));
}

.generator-content h3 {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.generator-content p {
  font-size: 16px;
  color: #ff1493;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.generate-date-btn {
  padding: 16px 40px;
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(255, 20, 147, 0.35);
  font-family: 'Cochin', serif;
}

.generate-date-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 35px rgba(255, 20, 147, 0.5);
  background: linear-gradient(135deg, #ff69b4, #ff99d1);
}

.generated-result {
  margin-top: 25px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 240, 250, 0.98), rgba(255, 230, 245, 0.98));
  border: 2px solid rgba(255, 105, 180, 0.4);
  border-radius: 20px;
  font-size: 20px;
  font-weight: 700;
  color: #ff1493;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.dates-list-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-heading {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin: 0;
}

.dates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.date-idea-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 240, 250, 0.98));
  border: 2px solid rgba(255, 105, 180, 0.25);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.15);
  animation: fadeInUp 0.5s ease-out both;
}

.date-idea-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(255, 20, 147, 0.25);
  border-color: rgba(255, 20, 147, 0.4);
}

.date-idea-number {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  min-width: 35px;
}

.date-idea-text {
  font-size: 15px;
  color: #ff1493;
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
}

/* Music Page */
.music-page {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.music-header-section {
  text-align: center;
  padding: 25px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 240, 250, 0.98));
  border-radius: 20px;
  border: 2px solid rgba(255, 105, 180, 0.3);
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.18);
}

.music-main-title {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 10px 0;
}

.music-subtitle {
  font-size: 18px;
  color: #ff1493;
  font-weight: 600;
  margin: 0;
}

.spotify-main-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 240, 250, 0.98));
  border: 2px solid rgba(255, 105, 180, 0.3);
  border-radius: 25px;
  padding: 40px;
  box-shadow: 0 12px 40px rgba(255, 105, 180, 0.2);
}

.spotify-info-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.spotify-logo-big {
  font-size: 72px;
  filter: drop-shadow(0 6px 15px rgba(255, 20, 147, 0.3));
}

.spotify-info-section h3 {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.spotify-description {
  font-size: 16px;
  color: #ff1493;
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
}

.playlist-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-item-music {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(255, 240, 250, 0.95), rgba(255, 230, 245, 0.95));
  border: 2px solid rgba(255, 105, 180, 0.3);
  border-radius: 25px;
}

.stat-icon-music {
  font-size: 20px;
}

.stat-text-music {
  font-size: 14px;
  color: #ff1493;
  font-weight: 700;
}

.spotify-play-btn-large {
  padding: 18px 45px;
  background: #1DB954;
  color: white;
  border: none;
  border-radius: 35px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(29, 185, 84, 0.4);
  font-family: 'Cochin', serif;
  align-self: flex-start;
}

.spotify-play-btn-large:hover {
  background: #1ed760;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 35px rgba(29, 185, 84, 0.6);
}

.spotify-icon {
  font-size: 24px;
}

.music-visual-section {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.music-note-animation {
  position: relative;
  width: 100%;
  height: 300px;
}

.floating-note {
  position: absolute;
  font-size: 48px;
  animation: floatUpDown 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(255, 20, 147, 0.4));
}

.floating-note:nth-child(1) { top: 10%; left: 20%; }
.floating-note:nth-child(2) { top: 30%; left: 60%; }
.floating-note:nth-child(3) { top: 50%; left: 30%; }
.floating-note:nth-child(4) { top: 70%; left: 70%; }
.floating-note:nth-child(5) { top: 40%; left: 50%; }

@keyframes floatUpDown {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

.music-memories-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.music-memories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.music-memory-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 240, 250, 0.98));
  border: 2px solid rgba(255, 105, 180, 0.25);
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.15);
}

.music-memory-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(255, 20, 147, 0.25);
  border-color: rgba(255, 20, 147, 0.4);
}

.memory-music-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 15px;
  filter: drop-shadow(0 4px 12px rgba(255, 20, 147, 0.3));
}

.music-memory-card h4 {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 10px 0;
}

.music-memory-card p {
  font-size: 14px;
  color: #ff1493;
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
}

/* Story Container */
.story-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.start-story-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 240, 250, 0.98));
  border: 2px solid rgba(255, 105, 180, 0.3);
  border-radius: 30px;
  padding: 50px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 15px 45px rgba(255, 105, 180, 0.25);
  text-align: center;
  font-family: 'Cochin', serif;
}

.start-story-btn:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 25px 60px rgba(255, 20, 147, 0.35);
  border-color: rgba(255, 20, 147, 0.4);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 235, 248, 1));
}

.story-icon {
  font-size: 80px;
  filter: drop-shadow(0 6px 15px rgba(255, 20, 147, 0.35));
}

.start-story-btn h2 {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.start-story-btn p {
  font-size: 18px;
  color: #ff1493;
  font-weight: 600;
  margin: 0;
}

/* Cats Page */
.cats-page {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.cats-header {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 20px;
  flex-wrap: wrap;
}

.upload-pet-btn {
  padding: 14px 32px;
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(155, 89, 182, 0.35);
  font-family: 'Cochin', serif;
}

.upload-pet-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 35px rgba(155, 89, 182, 0.5);
  background: linear-gradient(135deg, #a569bd, #9b59b6);
}

.shuffle-cats-btn {
  padding: 14px 32px;
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(255, 20, 147, 0.35);
  font-family: 'Cochin', serif;
}

.shuffle-cats-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 35px rgba(255, 20, 147, 0.5);
  background: linear-gradient(135deg, #ff69b4, #ff99d1);
}

.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.cat-grid-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.2);
  border: 2px solid rgba(255, 105, 180, 0.25);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.5s ease-out both;
}

.cat-grid-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 15px 40px rgba(255, 20, 147, 0.35);
  border-color: rgba(255, 20, 147, 0.4);
}

.cat-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cat-grid-item:hover img {
  transform: scale(1.1);
}

/* Gifts Page New */
.gifts-page-new {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.gifts-header-section {
  text-align: center;
  padding: 25px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 240, 250, 0.98));
  border-radius: 20px;
  border: 2px solid rgba(255, 105, 180, 0.3);
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.18);
}

.gifts-main-title {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 10px 0;
}

.gifts-subtitle {
  font-size: 18px;
  color: #ff1493;
  font-weight: 600;
  margin: 0;
}

.gifts-sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.gifts-section-card-new {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 240, 250, 0.98));
  border: 2px solid rgba(255, 105, 180, 0.3);
  border-radius: 25px;
  padding: 40px 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 12px 35px rgba(255, 105, 180, 0.2);
  text-align: center;
  font-family: 'Cochin', serif;
}

.gifts-section-card-new:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(255, 20, 147, 0.3);
  border-color: rgba(255, 20, 147, 0.4);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 235, 248, 1));
}

.section-icon-large {
  font-size: 72px;
  filter: drop-shadow(0 6px 15px rgba(255, 20, 147, 0.3));
  margin-bottom: 10px;
}

.gifts-section-card-new h3 {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.gifts-section-card-new p {
  font-size: 16px;
  color: #ff1493;
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
}

.view-coupons-btn,
.view-ious-btn {
  margin-top: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(255, 20, 147, 0.35);
  font-family: 'Cochin', serif;
}

.view-coupons-btn:hover,
.view-ious-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 20, 147, 0.5);
  background: linear-gradient(135deg, #ff69b4, #ff99d1);
}

@media (max-width: 768px) {
  .gifts-sections-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive adjustments for new pages */
@media (max-width: 768px) {
  .memories-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }

  .spotify-main-card {
    grid-template-columns: 1fr;
    padding: 25px;
  }

  .music-visual-section {
    display: none;
  }

  .dates-grid {
    grid-template-columns: 1fr;
  }

  .cats-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
  }
}

/* ===== OLD LOOK STYLING (ORIGINAL IPHONE APP INSPIRED) ===== */
/* When body has class 'old-look', apply iPhone app styling to modern layout */

body.old-look {
  font-family: 'Cochin', 'Georgia', serif;
  background: url('assets/heart-background.jpg') no-repeat center center fixed;
  background-size: cover;
}

/* Hide floating messages in old look */
body.old-look .floating-messages {
  display: none;
}

/* Simplify sidebar - more compact iPhone style */
body.old-look .sidebar {
  background: rgba(241, 212, 223, 0.95);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  border-right: 2px solid rgba(255, 105, 180, 0.3);
}

body.old-look .sidebar-header {
  background: rgba(255, 105, 180, 0.4);
  padding: 16px;
  border-bottom: 2px solid rgba(255, 105, 180, 0.3);
}

body.old-look .logo-text {
  color: #800080;
  font-weight: bold;
  font-size: 18px;
}

body.old-look .logo-icon {
  font-size: 22px;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1));
}

body.old-look .nav-item {
  background: transparent;
  border-radius: 20px;
  margin: 3px 6px;
  padding: 10px 14px;
  transition: all 0.3s ease;
  font-size: 14px;
}

body.old-look .nav-item:hover {
  background: rgba(255, 20, 147, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

body.old-look .nav-item.active {
  background: #ff1493;
  color: white;
  box-shadow: 0 4px 8px rgba(255, 20, 147, 0.3);
}

body.old-look .nav-item.active .nav-icon {
  filter: brightness(0) invert(1);
}

/* Main content area styling */
body.old-look .main-content {
  background: transparent;
}

body.old-look .top-header {
  background: rgba(241, 212, 223, 0.9);
  border-radius: 15px;
  margin: 15px;
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 105, 180, 0.2);
}

body.old-look .page-title {
  color: #ff69b4;
  font-weight: bold;
}

body.old-look .page-subtitle {
  color: #721f72;
}

body.old-look .page-content {
  background: rgba(241, 212, 223, 0.85);
  border-radius: 15px;
  margin: 15px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 105, 180, 0.2);
}

/* Card styling - iPhone app inspired */
body.old-look .card,
body.old-look .stat-card,
body.old-look .story-card,
body.old-look .date-card,
body.old-look .coupon-card {
  background: rgba(252, 226, 234, 0.95);
  border: 2px solid #fab1d5;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  border-radius: 15px;
  transition: all 0.3s ease;
}

body.old-look .card:hover,
body.old-look .stat-card:hover,
body.old-look .date-card:hover,
body.old-look .coupon-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

/* Button styling - matches original iPhone app */
body.old-look .header-btn,
body.old-look .open-gift-btn,
body.old-look .next-gift-btn,
body.old-look .redeem-btn,
body.old-look .submit-message-btn,
body.old-look button {
  background-color: #ff1493;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 16px;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  font-family: 'Cochin', 'Georgia', serif;
}

body.old-look .header-btn:hover,
body.old-look .open-gift-btn:hover,
body.old-look .next-gift-btn:hover,
body.old-look .redeem-btn:hover,
body.old-look .submit-message-btn:hover,
body.old-look button:hover {
  background-color: #d34d8e;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

body.old-look button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}

/* Legacy button positioning */
body.old-look .legacy-btn {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #ff1493;
  color: #ff1493;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

body.old-look .legacy-btn:hover {
  background: #ff1493;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* Remove stat animations */
body.old-look .stat-icon {
  animation: none;
}

/* Modal styling - iPhone app inspired */
body.old-look .modal {
  backdrop-filter: blur(3px);
}

body.old-look .modal-content {
  background: rgba(252, 226, 234, 0.98);
  border: 3px solid #ff85c0;
  border-radius: 15px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  padding: 20px;
}

body.old-look #popupContent {
  color: #800080;
  font-family: 'Cochin', 'Georgia', serif;
}

body.old-look #popupContent img {
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

body.old-look .close-btn {
  color: #800080;
  font-size: 24px;
  font-weight: bold;
  transition: all 0.5s ease;
}

body.old-look .close-btn:hover {
  color: #ff1493;
  transform: rotate(360deg) scale(1.2);
}

body.old-look .close-popup-btn {
  background-color: #ff1493;
  color: white;
  border-radius: 20px;
  padding: 10px 20px;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  font-family: 'Cochin', 'Georgia', serif;
}

body.old-look .close-popup-btn:hover {
  background-color: #db083c;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Gift box styling */
body.old-look .gift-box {
  background: rgba(250, 226, 234, 0.95);
  border: 3px solid #fab1d5;
  border-radius: 20px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
}

/* Image gallery - simpler style */
body.old-look .memory-item,
body.old-look .cat-item {
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s ease;
  border: 2px solid rgba(255, 182, 193, 0.3);
}

body.old-look .memory-item:hover,
body.old-look .cat-item:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.25);
}

/* Countdown styling */
body.old-look .countdown-container {
  background: rgba(241, 212, 223, 0.9);
  border: 3px solid #ff85c0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 15px;
}

body.old-look .countdown-unit {
  background: rgba(255, 240, 250, 0.95);
  border: 2px solid #fab1d5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

/* Story/caption styling */
body.old-look #captionArea {
  background-color: rgba(250, 226, 234, 0.95);
  border: 2px solid #fab1d5;
  border-radius: 20px;
  color: #800080;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
  font-family: 'Cochin', 'Georgia', serif;
}

body.old-look #captionArea:hover {
  background-color: rgba(252, 232, 238, 0.98);
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
}

/* Letter modal */
body.old-look .letter-modal {
  background: linear-gradient(to bottom right, #ffe6f0, #ffcce6);
  border: 3px solid #ff85c0;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

body.old-look .letter-option {
  background-color: #ff1493;
  color: white;
  border-radius: 20px;
  padding: 10px 20px;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  font-family: 'Cochin', 'Georgia', serif;
}

body.old-look .letter-option:hover {
  background-color: #ff85c0;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Navigation arrows */
body.old-look .arrow-btn,
body.old-look .regenerate-btn {
  background-color: #ff1493;
  color: white;
  border-radius: 20px;
  padding: 10px 20px;
  border: none;
  transition: all 0.3s ease;
  font-family: 'Cochin', 'Georgia', serif;
}

body.old-look .arrow-btn:hover,
body.old-look .regenerate-btn:hover {
  background-color: #ff85c0;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Scrollbar styling */
body.old-look #popupContent::-webkit-scrollbar-thumb {
  background-color: #ff85c0;
  border-radius: 10px;
}

body.old-look #popupContent::-webkit-scrollbar-track {
  background-color: #fcd9e5;
}
