* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #fff5f7;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

.hearts-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.heart-particle {
  position: absolute;
  font-size: 14px;
  opacity: 0.55;
  animation: floatUp 7s linear infinite;
  z-index: 2;
}

@keyframes floatUp {
  0% { transform: translateY(105vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

.app-container {
  width: 100%;
  max-w: 480px;
  z-index: 10;
  padding: 16px;
  position: relative;
}

.card {
  background: white;
  border-radius: 32px;
  padding: 32px 24px;
  box-shadow: 0 20px 40px rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.1);
  width: 100%;
  position: relative;
}

.avatar-circle {
  width: 84px;
  height: 84px;
  background: linear-gradient(135deg, #ffeef2 0%, #ffd6e0 100%);
  border-radius: 50%;
  margin: 0 auto 20px auto;
  box-shadow: 0 8px 16px rgba(244, 63, 94, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
}

.core-heart {
  font-size: 34px;
  display: inline-block;
  animation: heartPulse 1.8s infinite ease-in-out;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); filter: drop-shadow(0 0 6px rgba(244,63,94,0.4)); }
}

.header-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: #1a1a1a;
  text-align: center;
  line-height: 1.2;
}

.header-text h1 span {
  color: #d946ef;
  font-style: italic;
}

.header-text p {
  text-align: center;
  color: #666;
  font-size: 13px;
  margin-top: 8px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #8c8c8c;
  margin-bottom: 8px;
}

.form-group input[type="text"], .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #f0f0f0;
  background-color: #fafafa;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: #f43f5e;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.1);
}

.radio-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-tile {
  position: relative;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  cursor: pointer;
  background-color: white;
  transition: all 0.2s ease;
}

.radio-tile input[type="radio"] {
  accent-color: #d946ef;
  margin-right: 12px;
  transform: scale(1.15);
}

.radio-label {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.radio-tile:has(input:checked) {
  border-color: #f43f5e;
  background-color: #fff5f7;
}

.hidden-input {
  display: none;
  margin-top: 10px;
}

.hidden-input.show {
  display: block;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #f43f5e 0%, #db2777 100%);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(244, 63, 94, 0.2);
  transition: all 0.2s ease;
  margin-top: 10px;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.3);
}

.brand-footer {
  text-align: center;
  font-size: 11px;
  color: #aaa;
  margin-top: 24px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.full-screen-proposal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  text-align: center;
}

.romantic-bg-loop {
  background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 50%, #96e6a1 100%);
  background-size: 400% 400%;
  animation: romanticGradientShift 14s ease infinite;
}

@keyframes romanticGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn-back {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  color: #333;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  z-index: 50;
}

.proposal-content {
  position: relative;
  z-index: 30;
}

.proposal-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  color: white;
  text-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-bottom: 4px;
}

.proposal-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  color: white;
  text-shadow: 0 4px 16px rgba(0,0,0,0.15);
  margin-bottom: 12px;
}

.from-tag {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  margin-bottom: 40px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.interactive-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  min-height: 80px;
  position: relative;
  width: 100%;
}

#yes-btn {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  color: white;
  border: none;
  padding: 14px 38px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.4);
  z-index: 40;
  transition: transform 0.2s ease;
}

#no-btn {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s linear;
  z-index: 35;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.btn-subtext {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 30px;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.sticky-bottom-bar {
  position: absolute;
  bottom: 24px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 24px;
  z-index: 45;
}

.btn-sticky {
  background: white;
  color: #1a1a1a;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.btn-sticky:hover {
  transform: scale(1.03);
}

.victory-heading {
  font-size: 34px !important;
  text-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
}
.final-letter-text {
  color: white;
  font-size: 16px;
  margin: 18px auto;
  max-width: 320px;
  opacity: 0.95;
  line-height: 1.5;
  font-style: italic;
  text-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.from-tag-victory {
  color: white;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 24px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.video-frame {
  width: 240px;
  height: 240px;
  border-radius: 24px;
  overflow: hidden;
  margin: 0 auto;
  border: 4px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
  background-color: black;
}
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(5px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

@media(min-width: 480px) {
  .modal-overlay {
    align-items: center;
  }
}

.modal-box {
  background: white;
  width: 100%;
  max-w: 440px;
  border-radius: 32px 32px 0 0;
  padding: 32px 24px;
  position: relative;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
  animation: slideUp 0.3s ease-out forwards;
}

@media(min-width: 480px) {
  .modal-box {
    border-radius: 28px;
  }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f5f5f5;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  color: #666;
}

.modal-header {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 24px;
}

.coupon-container {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.coupon-container input {
  flex: 1;
  padding: 14px;
  border: 1px solid #f0f0f0;
  background: #fafafa;
  border-radius: 12px;
  font-size: 13px;
  outline: none;
}

.btn-apply {
  background: #b23b68;
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
}

.btn-pay {
  width: 100%;
  background: linear-gradient(135deg, #f43f5e 0%, #db2777 100%);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(244, 63, 94, 0.2);
}

.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.4s ease forwards; }
@keyframes fadeIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }

.link-display-box {
  background: #f8fafc;
  border: 2px dashed #e2e8f0;
  padding: 14px;
  border-radius: 12px;
  font-family: monospace;
  font-size: 13px;
  color: #db2777;
  word-break: break-all;
  margin: 16px 0;
  user-select: all;
}
.success-icon { font-size: 48px; margin-bottom: 12px; }