/**
 * I MISS YOU PAGE STYLES
 * EXACT copy from our finalized prototypes
 */

/* Base variables matching prototype */
:root {
  /* Typography */
  --font-primary: 'Poppins', sans-serif;
  --font-decorative: 'Great Vibes', cursive;
  
  /* Sizing */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 15px;
  --border-radius-xl: 20px;
  
  /* Spacing */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 15px;
  --spacing-lg: 20px;
  --spacing-xl: 25px;
  --spacing-2xl: 30px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 15px rgba(255, 192, 203, 0.3);
  --shadow-lg: 0 4px 15px rgba(255, 192, 203, 0.4);
}

/* I Miss You page container - WORKS WITHIN ROUTER CONTAINER */
.i-love-you-page {
  font-family: var(--font-primary);
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  user-select: none;
  color: white;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: all 0.6s ease;
  position: relative;
  box-sizing: border-box;
}

/* Background pattern like main site */
.i-love-you-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://www.transparenttextures.com/patterns/hearts.png');
  opacity: 0.05;
  z-index: 0;
}

/* Back button - REMOVE, use global router back button pattern */

/* Loading state */
.i-love-you-page.loading-mode {
  justify-content: center;
}

.loading-container {
  text-align: center;
  z-index: 2;
}

.loading-heart {
  font-size: 4rem;
  animation: heartbeat 1s infinite ease-in-out;
  margin-bottom: var(--spacing-lg);
}

.loading-text {
  font-size: 1.2rem;
  color: var(--theme-text-secondary);
  opacity: 0.8;
}

/* Send mode layout - WITHIN ROUTER CONTAINER */
.i-love-you-page.send-mode {
  justify-content: center;
  align-items: center;
  padding: var(--spacing-lg);
  min-height: calc(100vh - 120px); /* Account for router container padding */
}

.send-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--spacing-lg);
}

/* Title styles */
.i-love-you-page .title {
  font-family: var(--font-decorative);
  color: var(--theme-text-primary);
  font-size: 3em;
  margin-bottom: var(--spacing-sm);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  opacity: 0;
  animation: fadeInDown 1s ease-out 0.5s forwards;
  letter-spacing: 2px;
  word-spacing: 4px;
}

.i-love-you-page .subtitle {
  color: var(--theme-text-secondary);
  font-size: 1.1em;
  margin-bottom: var(--spacing-sm);
  opacity: 0;
  animation: fadeInUp 1s ease-out 1s forwards;
}

.i-love-you-page .subtitle-hint {
  color: var(--theme-text-secondary);
  font-size: 0.9em;
  opacity: 0.8;
  margin-top: 0.5rem;
  margin-bottom: var(--spacing-2xl);
  animation: fadeInUp 1s ease-out 1.2s forwards;
}

/* Heart container */
.heart-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto var(--spacing-2xl);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.heart-container:hover {
  transform: scale(1.02);
}

/* SVG Heart that Scales without Pixelation */
.main-heart {
  width: 80px;
  height: 80px;
  transform: scale(1);
  transition: transform 0.2s ease;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.main-heart svg {
  width: 100%;
  height: 100%;
  fill: url(#heartGradient);
  stroke: rgba(0,0,0,0.1);
  stroke-width: 0.3;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  transition: filter 0.3s ease;
}

/* Dynamic glow effect based on heart size - CRISP, NO BLUR */
.main-heart[data-glow="1"] svg {
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3)) drop-shadow(0 0 8px rgba(255,255,255,0.3));
}

.main-heart[data-glow="2"] svg {
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3)) drop-shadow(0 0 16px rgba(255,255,255,0.4));
}

.main-heart[data-glow="3"] svg {
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3)) drop-shadow(0 0 24px rgba(255,255,255,0.5));
}

.main-heart[data-glow="4"] svg {
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3)) drop-shadow(0 0 32px rgba(255,255,255,0.6));
}

/* Growth animation on tap */
.main-heart.growing {
  animation: heartGrow 0.2s ease-out;
}

@keyframes heartGrow {
  0% { transform: scale(var(--current-scale, 1)); }
  50% { transform: scale(calc(var(--current-scale, 1) * 1.1)); }
  100% { transform: scale(var(--current-scale, 1)); }
}

.main-heart.beating {
  animation: heartbeat var(--beat-speed, 0.8s) infinite ease-in-out;
}

/* Floating heart emojis */
.floating-hearts {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  top: 0;
  left: 0;
}

.floating-heart {
  position: absolute;
  font-size: 24px;
  color: var(--theme-primary);
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

/* Milestone-based progress bar */
.progress-container {
  width: 100%;
  max-width: 350px;
  margin: 0 auto var(--spacing-xl);
  opacity: 0;
  animation: slideUp 1s ease-out 2s forwards;
}

.progress-label {
  color: var(--theme-text-primary);
  font-size: 1.1em;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 1px 5px rgba(0,0,0,0.3);
  font-weight: 500;
}

.progress-track {
  position: relative;
  width: 100%;
  height: 12px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--theme-primary), rgba(255,255,255,0.3));
  border-radius: var(--border-radius-md);
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 15px rgba(255, 107, 157, 0.4);
  position: relative;
}

.progress-fill.pulsing {
  animation: progressPulse 1s infinite ease-in-out;
}

/* Milestone markers */
.milestones {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.milestone {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: 2px solid rgba(255,255,255,0.5);
  transition: all 0.4s ease;
  z-index: 2;
}

.milestone.reached {
  background: var(--theme-primary);
  border-color: white;
  box-shadow: 0 0 12px var(--theme-primary);
  transform: scale(1.2);
}

.milestone.current {
  background: white;
  border-color: var(--theme-primary);
  box-shadow: 0 0 16px white;
  animation: milestoneGlow 1.5s infinite ease-in-out;
}

/* Milestone labels */
.milestone-labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--spacing-sm);
  font-size: 0.8em;
  color: var(--theme-text-muted);
}

.milestone-label {
  text-align: center;
  max-width: 60px;
  font-weight: 400;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.milestone-label.reached {
  color: var(--theme-text-primary);
  opacity: 1;
  font-weight: 500;
}

.milestone-label.current {
  color: white;
  opacity: 1;
  font-weight: 600;
  text-shadow: 0 0 8px white;
}

/* Current milestone display */
.current-milestone {
  margin-top: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(255,255,255,0.1);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--theme-text-primary);
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.current-milestone.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Metrics - FIXED SPACING */
.metrics {
  display: flex;
  justify-content: space-around;
  gap: var(--spacing-md);
  margin: 20px 0;
  opacity: 0;
  animation: fadeIn 1s ease-out 2.5s forwards;
  padding: 0 var(--spacing-md);
}

.metric {
  text-align: center;
  color: white;
  flex: 1;
  min-width: 0;
}

.metric-value {
  font-size: 1.5em;
  font-weight: bold;
  white-space: nowrap;
  text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.metric-label {
  font-size: 0.8em;
  opacity: 0.8;
  margin-top: 5px;
}

/* Send button - CLICKABLE and VISIBLE */
.send-button {
  background: linear-gradient(45deg, #ff6b9d, #ff4757);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4);
  opacity: 0.5;
  transform: translateY(0) scale(1);
  margin-top: 20px;
  z-index: 100;
  position: relative;
  pointer-events: auto;
  min-width: 200px;
}

.send-button.ready {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: buttonGlow 2s infinite ease-in-out;
  pointer-events: auto;
}

.send-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(255, 107, 157, 0.6);
}

.send-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  background: var(--theme-accent-primary);
}

.send-button:disabled:hover {
  transform: none;
  filter: none;
  box-shadow: 0 4px 15px rgba(255, 192, 203, 0.3);
}

@keyframes sendingPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.send-button.sending {
  animation: sendingPulse 1s infinite;
}

.send-button:active {
  transform: translateY(-1px) scale(0.98);
}

/* Instructions - POSITIONED TO AVOID OVERLAP */
.instructions {
  color: rgba(255,255,255,0.7);
  font-size: 0.9em;
  text-align: center;
  opacity: 0;
  animation: fadeIn 1s ease-out 3s forwards;
  margin-top: var(--spacing-lg);
  position: relative;
  z-index: 10;
}

/* Ensure all buttons are clickable with MAXIMUM priority */
.back-button, .trigger-button, .action-btn, .clickable-btn, #backToHomeBtn, #receiveBackBtn {
  pointer-events: auto !important;
  z-index: 9999 !important;
  position: relative !important;
  cursor: pointer !important;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.back-button {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-md);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Trigger button styles are defined in the receive mode section below */

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes heartAppear {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(var(--heart-scale, 1)); }
  50% { transform: scale(calc(var(--heart-scale, 1) * 1.2)); }
}

@keyframes progressPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(255, 107, 157, 0.4); }
  50% { box-shadow: 0 0 25px rgba(255, 107, 157, 0.8); }
}

@keyframes milestoneGlow {
  0%, 100% { box-shadow: 0 0 16px white; }
  50% { box-shadow: 0 0 24px white, 0 0 8px var(--theme-primary); }
}

@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-120px) scale(0.5) rotate(15deg);
  }
}

@keyframes buttonGlow {
  0%, 100% { box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4); }
  50% { box-shadow: 0 8px 30px rgba(255, 107, 157, 0.7); }
}

/* RECEIVE MODE STYLES (from prototype) */

/* Container layout for receive mode - FULL SCREEN */
.i-love-you-page.receive-mode {
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg);
  min-height: calc(100vh - 120px); /* Account for router container padding */
}

.i-love-you-page.receive-mode .container {
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: var(--spacing-lg);
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Full Screen Heart Canvas */
.burst-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

#heartBurstCanvas {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Header Section */
.header-section {
  flex: 0 0 auto;
  z-index: 20;
  position: relative;
  text-align: center;
  padding-top: var(--spacing-xl);
}

/* Main Content Section */
.main-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
  position: relative;
  gap: var(--spacing-2xl);
}

/* Footer Section */
.footer-section {
  flex: 0 0 auto;
  z-index: 20;
  position: relative;
}

/* Center Heart (Pre-burst) */
.center-heart {
  width: 100px;
  height: 100px;
  transition: all 0.5s ease;
  opacity: 1;
}

.center-heart svg {
  width: 100%;
  height: 100%;
  fill: url(#centerHeartGradient);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  animation: gentlePulse 2s ease-in-out infinite;
}

@keyframes gentlePulse {
  0%, 100% { 
    transform: scale(1); 
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  }
  50% { 
    transform: scale(1.15); 
    filter: drop-shadow(0 6px 20px rgba(0,0,0,0.4)) drop-shadow(0 0 20px rgba(255,255,255,0.3));
  }
}

.center-heart.hidden {
  opacity: 0;
  transform: scale(0);
}

/* Trigger Button */
.trigger-button {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: var(--spacing-lg) var(--spacing-2xl);
  border-radius: var(--border-radius-xl);
  color: var(--theme-text-primary);
  font-size: 1.1rem;
  font-family: var(--font-primary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  text-transform: none;
  letter-spacing: 0.5px;
  min-width: 240px;
  text-align: center;
  position: relative;
  z-index: 25;
  pointer-events: auto;
}

.trigger-button:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.25));
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
}

.trigger-button:active {
  transform: translateY(-2px) scale(1.01);
}

.trigger-button.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

/* Love Stats - Hidden by default, shows in container after animation */
.love-stats {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-2xl);
  margin: var(--spacing-xl) auto;
  max-width: 400px;
  backdrop-filter: blur(30px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  display: none;
}

.love-stats.visible {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

.stats-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xl);
  color: var(--theme-text-primary);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md) var(--spacing-lg);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(10px);
}

.stat-row:last-child {
  margin-bottom: var(--spacing-lg);
}

.stat-label {
  color: var(--theme-text-secondary);
  font-weight: 400;
  font-size: 1rem;
}

.stat-value {
  color: var(--theme-text-primary);
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.milestone-message {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  font-style: italic;
  color: var(--theme-text-secondary);
  border-left: 4px solid var(--theme-primary);
  line-height: 1.5;
  font-size: 0.95rem;
  text-align: left;
}

/* Action Buttons - Part of Stats Card */
.action-buttons {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.action-btn, .clickable-btn {
  flex: 1;
  min-width: 120px;
  max-width: 160px;
  background: linear-gradient(135deg, var(--theme-primary), rgba(255, 255, 255, 0.1));
  border: none;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  pointer-events: auto !important;
  z-index: 1000;
  position: relative;
}

.action-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.action-btn.secondary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--theme-text-primary);
}

/* Tap Counter Display */
.tap-counter {
  position: fixed;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
  z-index: 25;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.tap-counter.visible {
  opacity: 1;
}

/* Completion Message */
.completion-message {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  font-weight: 500;
  color: white;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
  z-index: 25;
  opacity: 0;
  transition: all 0.8s ease;
  pointer-events: none;
  text-align: center;
  max-width: 80vw;
  line-height: 1.4;
}

.completion-message.visible {
  opacity: 1;
}

/* SENT MODE STYLES */
.i-love-you-page.sent-mode {
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 120px); /* Account for router container padding */
  padding: var(--spacing-lg);
}

.sent-container {
  text-align: center;
  max-width: 400px;
  z-index: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xl);
}

.sent-heart {
  font-size: 4rem;
  margin-bottom: var(--spacing-lg);
  animation: heartbeat 1s infinite ease-in-out;
}

.sent-title {
  font-size: 2rem;
  color: var(--theme-text-primary);
  margin-bottom: var(--spacing-md);
}

.sent-message {
  font-size: 1.1rem;
  color: var(--theme-text-secondary);
  margin-bottom: var(--spacing-xl);
}

/* Mobile optimizations */
@media (max-width: 480px) {
  .i-love-you-page {
    min-height: calc(100vh - 80px); /* Adjusted for mobile router padding */
  }
  
  .i-love-you-page .title {
    font-size: 2em;
  }
  
  .send-container,
  .sent-container {
    padding: 0 var(--spacing-md);
  }
  
  .sent-container {
    gap: var(--spacing-md);
  }
  
  .sent-title {
    font-size: 1.5rem;
  }
  
  .sent-message {
    font-size: 1rem;
  }
}
  
  .heart-container {
    width: 250px;
    height: 250px;
  }
  
  .send-container {
    padding: 15px;
  }
  
  .trigger-button {
    font-size: 1rem;
    padding: var(--spacing-md) var(--spacing-xl);
    min-width: 200px;
    max-width: 280px; /* Prevent expansion */
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Show ... if text is too long */
  }
  
  /* Mobile-friendly stats card */
  .love-stats {
    max-width: 350px;
    padding: var(--spacing-xl);
    margin: var(--spacing-lg) auto;
  }
  
  .stats-title {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-lg);
    flex-direction: column;
    text-align: center;
    gap: 0.25rem;
  }
  
  .stat-row {
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
  
  .stat-value {
    font-size: 1rem;
  }
  
  .milestone-message {
    font-size: 0.9rem;
    padding: var(--spacing-md);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
  }
  
  .action-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .action-btn {
    min-width: auto;
    max-width: none;
    width: 100%;
  }
}

/* Love Success Animation */
.love-success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.love-success-overlay.show {
  opacity: 1;
}

.love-success-overlay.hide {
  opacity: 0;
}

.love-success-animation {
  text-align: center;
  color: white;
  transform: scale(0.5);
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.love-success-overlay.show .love-success-animation {
  transform: scale(1);
}

.love-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: loveIconBounce 0.8s ease-in-out;
}

.love-message {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.love-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 1rem;
  font-weight: 400;
}

.love-hearts {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.love-heart {
  font-size: 1.8rem;
  animation: loveHeartFloat 1.2s ease-in-out infinite;
}

.love-heart:nth-child(1) { animation-delay: 0s; }
.love-heart:nth-child(2) { animation-delay: 0.15s; }
.love-heart:nth-child(3) { animation-delay: 0.3s; }
.love-heart:nth-child(4) { animation-delay: 0.45s; }
.love-heart:nth-child(5) { animation-delay: 0.6s; }

@keyframes loveIconBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) scale(1);
  }
  40% {
    transform: translateY(-40px) scale(1.1);
  }
  60% {
    transform: translateY(-20px) scale(1.05);
  }
}

@keyframes loveHeartFloat {
  0%, 100% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-10px) scale(1.1) rotate(5deg);
    opacity: 0.8;
  }
}

/* Theme-specific love animation colors */
[data-theme="wholesome"] .love-success-overlay {
  background: rgba(255, 192, 203, 0.1);
}

[data-theme="missing"] .love-success-overlay {
  background: rgba(135, 206, 250, 0.1);
}

[data-theme="horny"] .love-success-overlay {
  background: rgba(255, 69, 108, 0.1);
}

/* Mobile responsiveness for love animation */
@media (max-width: 768px) {
  .love-icon {
    font-size: 4rem;
  }
  
  .love-message {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .love-hearts {
    gap: 0.6rem;
  }
  
  .love-heart {
    font-size: 1.5rem;
  }
  
  .love-subtitle {
    font-size: 0.9rem;
  }
}