* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #1a0008 0%, #3d0012 25%, #5c001e 50%, #8b0033 75%, #2d000e 100%);
  min-height: 100vh;
  overflow-x: hidden;
  color: #fff;
}

#heart-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.heart-particle {
  position: absolute;
  font-size: 20px;
  opacity: 0;
  animation: floatHeart linear infinite;
  pointer-events: none;
}

@keyframes floatHeart {
  0% {
    opacity: 0;
    transform: translateY(100vh) rotate(0deg) scale(0.5);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translateY(-10vh) rotate(360deg) scale(1.2);
  }
}

.glass-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 182, 193, 0.15);
  border-radius: 16px;
}

.glass-card-strong {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 105, 180, 0.25);
  border-radius: 20px;
}

.btn-love {
  background: linear-gradient(135deg, #FF69B4, #C41E3A);
  border: none;
  border-radius: 50px;
  color: white;
  font-family: 'Crimson Pro', serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-love:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196, 30, 58, 0.4);
}

.btn-love:active {
  transform: translateY(0);
}

.btn-love::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.btn-love:hover::after {
  transform: translateX(100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 182, 193, 0.3);
  border-radius: 50px;
  color: #FFB6C1;
  font-family: 'Crimson Pro', serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 105, 180, 0.5);
  transform: translateY(-1px);
}

.template-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.template-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 30px rgba(255, 105, 180, 0.3);
}

.template-card.selected {
  border-color: #FF69B4 !important;
  box-shadow: 0 0 40px rgba(255, 105, 180, 0.4), inset 0 0 20px rgba(255, 105, 180, 0.1);
}

.template-card.selected::after {
  content: '💖';
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 20px;
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

input[type="text"], textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 182, 193, 0.2);
  border-radius: 12px;
  color: #fff;
  font-family: 'Crimson Pro', serif;
  transition: all 0.3s ease;
}

input[type="text"]:focus, textarea:focus {
  outline: none;
  border-color: #FF69B4;
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(255, 182, 193, 0.2);
  border-radius: 3px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: #FF69B4;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
  transition: all 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.7);
}

.suggestion-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 182, 193, 0.15);
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.suggestion-card:hover {
  background: rgba(255, 105, 180, 0.15);
  border-color: #FF69B4;
  transform: translateX(4px);
}

.spin-heart {
  display: inline-block;
  animation: spinHeart 1s ease-in-out infinite;
}

@keyframes spinHeart {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.2) rotate(-10deg); }
  50% { transform: scale(1) rotate(0deg); }
  75% { transform: scale(1.2) rotate(10deg); }
}

.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 105, 180, 0.2); }
  50% { box-shadow: 0 0 40px rgba(255, 105, 180, 0.4); }
}

.fade-in {
  animation: fadeIn 0.4s ease-out;
}

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

.slide-up {
  animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-overlay {
  background: rgba(10, 0, 4, 0.8);
  backdrop-filter: blur(8px);
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.meme-canvas-container {
  position: relative;
  display: inline-block;
}

.meme-canvas-container canvas {
  border-radius: 12px;
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .glass-card, .glass-card-strong {
    border-radius: 12px;
  }
}