:root {
  --primary-gradient: linear-gradient(135deg, #ff758c 0%, #ff7eb3 50%, #764ba2 100%);
  --yes-gradient: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  --no-color: #6c757d;
  --bg-color: #0f0c20;
  --card-bg: rgba(255, 255, 255, 0.15);
  --card-border: rgba(255, 255, 255, 0.3);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.85);
  --accent-pink: #ff4081;
  --accent-gold: #ffd700;
  --shadow-glow: 0 15px 35px rgba(255, 65, 108, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  background: var(--bg-color);
  background-image: 
    radial-gradient(at 10% 20%, rgba(255, 65, 108, 0.35) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(118, 75, 162, 0.4) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(255, 117, 140, 0.25) 0px, transparent 50%);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  padding: 20px;
  position: relative;
}

#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.main-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 540px;
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero-image-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto 20px;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-glow);
  position: relative;
  z-index: 2;
}

.glowing-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 65, 108, 0.6) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulseOrb 2.5s infinite alternate ease-in-out;
  z-index: 1;
}

@keyframes pulseOrb {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.9; }
}

.romantic-title {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 2.2rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.heart-pulse {
  display: inline-block;
  animation: heartBeat 1.2s infinite ease-in-out;
}

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

.subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.dodges-counter {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 8px 14px;
  display: inline-block;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.counter-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

.button-zone {
  position: relative;
  min-height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.btn {
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 50px;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.btn-yes {
  background: var(--yes-gradient);
  color: white;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(255, 65, 108, 0.6);
  position: relative;
}

.btn-yes:hover {
  transform: scale(1.08);
  box-shadow: 0 15px 35px rgba(255, 65, 108, 0.8);
}

.btn-no {
  background: rgba(255, 255, 255, 0.85);
  color: #333;
  z-index: 99;
  position: relative;
  white-space: nowrap;
  transition: top 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              left 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              transform 0.15s ease, 
              background 0.2s ease;
}

.btn-no.dodging {
  position: absolute;
}

/* Celebration Card & Planner */
.celebration-card {
  text-align: left;
}

.hidden {
  display: none !important;
}

.celebration-header {
  text-align: center;
  margin-bottom: 24px;
}

.heart-burst-icon {
  font-size: 3.5rem;
  margin-bottom: 10px;
}

.celebration-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.9rem;
  color: #fff;
  margin-bottom: 6px;
}

.celebration-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.planner-steps {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 25px;
}

.planner-step h3 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 12px;
  font-weight: 600;
}

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

.option-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 14px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #fff;
}

.option-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.option-card.active {
  background: linear-gradient(135deg, rgba(255, 65, 108, 0.4) 0%, rgba(255, 117, 140, 0.4) 100%);
  border-color: #ff416c;
  box-shadow: 0 5px 15px rgba(255, 65, 108, 0.3);
}

.option-card .emoji {
  font-size: 1.5rem;
}

.option-card .label {
  font-size: 0.85rem;
  font-weight: 600;
}

.date-time-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.custom-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  outline: none;
}

.custom-input option {
  background: #1a1532;
  color: #fff;
}

/* Ticket preview */
.ticket-preview {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 240, 245, 0.95) 100%);
  border-radius: 18px;
  color: #222;
  padding: 18px;
  margin-bottom: 24px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  border: 2px dashed #ff416c;
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 0.8rem;
  color: #ff416c;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 65, 108, 0.2);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.ticket-body p {
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #333;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  width: 100%;
}
.btn-whatsapp:hover {
  background: #1eb956;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 100%;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.9rem;
  z-index: 9999;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  transition: opacity 0.3s ease;
}

/* Animations */
@keyframes popIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.glass-card {
  animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 480px) {
  .glass-card {
    padding: 24px 18px;
  }
  .romantic-title {
    font-size: 1.75rem;
  }
  .options-grid {
    grid-template-columns: 1fr;
  }
  .date-time-picker {
    grid-template-columns: 1fr;
  }
}
