/* ============ APP DO AMOR - ESTILOS ============ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
  background: #000000;
  color: #f5f5f5;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ============ ANIMATIONS ============ */

@keyframes pulse-red {
  0%, 100% {
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.6), 0 0 20px rgba(255, 0, 0, 0.4), 0 0 30px rgba(255, 0, 0, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8), 0 0 30px rgba(255, 0, 0, 0.6), 0 0 45px rgba(255, 0, 0, 0.3);
    transform: scale(1.03);
  }
}

@keyframes pulse-green {
  0%, 100% {
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.6), 0 0 20px rgba(76, 175, 80, 0.4), 0 0 30px rgba(76, 175, 80, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.8), 0 0 30px rgba(76, 175, 80, 0.6), 0 0 45px rgba(76, 175, 80, 0.3);
    transform: scale(1.02);
  }
}

@keyframes pulse-gold-3d {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5), 0 0 20px rgba(212, 175, 55, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(0) scale(1);
  }
  50% {
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.7), 0 0 35px rgba(212, 175, 55, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.02);
  }
}

@keyframes heartbeat-3d {
  0% {
    transform: scale(1) rotateY(0deg);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
  }
  5% {
    transform: scale(1.15) rotateY(5deg);
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.7));
  }
  10% {
    transform: scale(1.05) rotateY(-3deg);
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.5));
  }
  15% {
    transform: scale(1.2) rotateY(3deg);
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.8));
  }
  25% {
    transform: scale(1) rotateY(0deg);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
  }
  100% {
    transform: scale(1) rotateY(0deg);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
  }
}

/* Heartbeat for HALF heart - softer, more melancholic */
@keyframes heartbeat-half {
  0% {
    transform: scale(1) rotateY(0deg);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
  }
  5% {
    transform: scale(1.08) rotateY(3deg);
    filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.5));
  }
  10% {
    transform: scale(1.02) rotateY(-2deg);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
  }
  15% {
    transform: scale(1.12) rotateY(2deg);
    filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.6));
  }
  25% {
    transform: scale(1) rotateY(0deg);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
  }
  100% {
    transform: scale(1) rotateY(0deg);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
  }
}

@keyframes pulse-install {
  0%, 100% {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5), 0 0 30px rgba(212, 175, 55, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.8), 0 0 50px rgba(212, 175, 55, 0.5);
    transform: scale(1.02);
  }
}

@keyframes float-particle {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-20px) translateX(10px) scale(1.2);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-40px) translateX(-5px) scale(0.8);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-20px) translateX(-10px) scale(1.1);
    opacity: 0.7;
  }
}

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

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

/* Heart completion animation - premium (via QR Code) */
@keyframes heart-complete-premium {
  0% {
    transform: scale(1) rotateY(0deg);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
  }
  15% {
    transform: scale(1.3) rotateY(10deg);
    filter: drop-shadow(0 0 40px rgba(255, 215, 0, 1));
  }
  30% {
    transform: scale(1.4) rotateY(-8deg);
    filter: drop-shadow(0 0 60px rgba(255, 215, 0, 1)) brightness(1.5);
  }
  45% {
    transform: scale(1.35) rotateY(5deg);
    filter: drop-shadow(0 0 50px rgba(255, 215, 0, 0.9)) brightness(1.3);
  }
  60% {
    transform: scale(1.25) rotateY(-3deg);
    filter: drop-shadow(0 0 35px rgba(212, 175, 55, 0.7)) brightness(1.1);
  }
  75% {
    transform: scale(1.15) rotateY(2deg);
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.6));
  }
  100% {
    transform: scale(1) rotateY(0deg);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
  }
}

/* Heart completion animation - simple (auto 72h) */
@keyframes heart-complete-simple {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
  }
  30% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
  }
  60% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.5));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
  }
}

/* Sparkle burst for premium activation */
@keyframes sparkle-burst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--sparkle-x), var(--sparkle-y)) scale(0);
  }
}

/* Shimmer effect for waiting state */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Glow pulse for the waiting text */
@keyframes glow-text {
  0%, 100% {
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
    opacity: 0.8;
  }
  50% {
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.6), 0 0 25px rgba(212, 175, 55, 0.3);
    opacity: 1;
  }
}

/* Progress ring rotation */
@keyframes progress-ring-rotate {
  from { transform: rotate(-90deg); }
  to { transform: rotate(270deg); }
}

/* Dashed line animation for missing half */
@keyframes dash-missing {
  0% { stroke-dashoffset: 0; }
  50% { stroke-dashoffset: 10; }
  100% { stroke-dashoffset: 0; }
}

/* ============ LAYOUT ============ */

.page-container {
  min-height: 100vh;
  background: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
}

.content-wrapper {
  width: 100%;
  max-width: 448px;
  position: relative;
  z-index: 10;
}

/* ============ FLOATING PARTICLES ============ */

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: float-particle ease-in-out infinite;
}

/* ============ TITLE BOX ============ */

.title-box {
  width: 100%;
  margin-bottom: 32px;
  margin-top: 16px;
  border: 1px solid #D4AF37;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.3), inset 0 0 8px rgba(212, 175, 55, 0.1);
}

.title-box h1 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #D4AF37, #FFD700, #D4AF37, #B8860B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============ FORM FIELDS ============ */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: #F0E68C;
  font-family: 'Inter', sans-serif;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-icon.top-align {
  top: 16px;
  transform: none;
}

.form-input {
  width: 100%;
  background: #000000;
  color: #FFFFFF;
  padding-left: 40px;
  padding-right: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #D4AF37;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: #FFD700;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5), inset 0 0 6px rgba(212, 175, 55, 0.2);
}

.form-input.error {
  border-color: #FF0000;
}

.form-input::placeholder {
  color: #666;
}

textarea.form-input {
  resize: none;
  min-height: 90px;
}

.error-text {
  color: #FF0000;
  font-size: 12px;
  margin-top: 4px;
  font-family: 'Inter', sans-serif;
}

/* ============ TOGGLE SWITCH ============ */

.toggle-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #D4AF37;
  background: rgba(0, 0, 0, 0.9);
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-label span {
  color: #FFFFFF;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  background: #333;
  border-radius: 13px;
  cursor: pointer;
  transition: background 0.3s ease;
  border: 1px solid #D4AF37;
  flex-shrink: 0;
}

.toggle-switch.active {
  background: #D4AF37;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 3px;
  transition: transform 0.3s ease;
}

.toggle-switch.active::after {
  transform: translateX(21px);
}

.conditional-input {
  margin-top: 8px;
}

/* ============ BUTTONS ============ */

.buttons-container {
  margin-top: 16px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 18px;
  font-family: 'Inter', sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  transform-style: preserve-3d;
}

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

.btn-confira {
  animation: pulse-red 1.5s ease-in-out infinite;
  background: linear-gradient(135deg, #FF0000, #CC0000, #FF0000);
  color: #000000;
}

.btn-confira.validated {
  animation: pulse-green 1.8s ease-in-out infinite;
  background: linear-gradient(135deg, #4CAF50, #45a049, #4CAF50);
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.6), 0 0 30px rgba(76, 175, 80, 0.3);
}

.btn-criar {
  background: linear-gradient(135deg, #555, #666, #555);
  color: rgba(0, 0, 0, 0.5);
  cursor: not-allowed;
}

.btn-criar.enabled {
  animation: pulse-gold-3d 2s ease-in-out infinite;
  background: linear-gradient(135deg, #D4AF37, #FFD700, #D4AF37, #B8860B);
  color: #000000;
  cursor: pointer;
}

.btn-criar .spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.3);
  border-top-color: #000000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

.validated-message {
  text-align: center;
  font-size: 14px;
  color: #4CAF50;
  font-family: 'Inter', sans-serif;
}

/* ============ APP PAGE STYLES ============ */

.app-header {
  font-size: 14px;
  letter-spacing: 0.25em;
  color: #D4AF37;
  font-family: 'Playfair Display', serif;
  margin-bottom: 0;
  text-align: center;
}

/* Header wrapper with install button overlaid on top */
.app-header-wrapper {
  position: relative;
  width: 100%;
  text-align: center;
  margin-bottom: 24px;
  transition: padding-top 0.5s ease;
}

/* When install button is present, add padding so title appears below it */
.app-header-wrapper.has-install-btn {
  padding-top: 48px;
}

.app-header-wrapper .btn-install {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: 200px;
  max-width: 90%;
  padding: 10px 20px;
  font-size: 13px;
  border-radius: 20px;
  white-space: nowrap;
  z-index: 10;
}

.heart-3d {
  animation: heartbeat-3d 2s ease-in-out infinite;
  transform-style: preserve-3d;
  perspective: 1000px;
  margin-bottom: 24px;
  text-align: center;
}

/* ============ HALF HEART + PROGRESS SYSTEM ============ */

.heart-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}

.heart-svg-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Progress ring around the heart */
.progress-ring-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  pointer-events: none;
}

.progress-ring-bg {
  fill: none;
  stroke: rgba(212, 175, 55, 0.1);
  stroke-width: 3;
}

.progress-ring-fill {
  fill: none;
  stroke: #D4AF37;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.5));
}

/* The half-heart SVG animation */
.heart-half-anim {
  animation: heartbeat-half 2.5s ease-in-out infinite;
  transform-origin: center center;
}

.heart-full-anim {
  animation: heartbeat-3d 2s ease-in-out infinite;
  transform-origin: center center;
}

.heart-complete-premium-anim {
  animation: heart-complete-premium 2s ease-out forwards;
  transform-origin: center center;
}

.heart-complete-simple-anim {
  animation: heart-complete-simple 1.5s ease-out forwards;
  transform-origin: center center;
}

/* Missing half dashed outline */
.missing-half-path {
  stroke: rgba(212, 175, 55, 0.25);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
  fill: none;
  animation: dash-missing 3s ease-in-out infinite;
}

/* Waiting text */
.waiting-text {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  color: #D4AF37;
  letter-spacing: 0.1em;
  margin-top: 8px;
  margin-bottom: 8px;
  animation: glow-text 3s ease-in-out infinite;
  transition: opacity 0.8s ease;
}

/* Timer text below waiting */
.timer-text {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(212, 175, 55, 0.6);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

/* QR activate button */
.btn-activate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1px solid #D4AF37;
  border-radius: 24px;
  background: rgba(212, 175, 55, 0.08);
  color: #D4AF37;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 8px;
}

.btn-activate:hover {
  background: rgba(212, 175, 55, 0.15);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.btn-activate:active {
  transform: scale(0.97);
}

/* QR Scanner Modal */
.qr-scanner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.qr-scanner-box {
  background: #111;
  border: 1px solid #D4AF37;
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.qr-scanner-box h3 {
  font-family: 'Playfair Display', serif;
  color: #D4AF37;
  font-size: 18px;
  margin-bottom: 8px;
}

.qr-scanner-box p {
  color: #888;
  font-size: 13px;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
}

.qr-scanner-video {
  width: 100%;
  max-width: 280px;
  border-radius: 12px;
  border: 2px solid #D4AF37;
  margin-bottom: 16px;
}

.qr-scanner-input {
  width: 100%;
  background: #000;
  color: #FFD700;
  border: 1px solid #D4AF37;
  border-radius: 8px;
  padding: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.3em;
  outline: none;
  margin-bottom: 12px;
}

.qr-scanner-input::placeholder {
  color: #555;
  letter-spacing: 0.15em;
  font-weight: 400;
}

.qr-scanner-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.qr-scanner-btn-activate {
  background: linear-gradient(135deg, #D4AF37, #FFD700);
  color: #000;
}

.qr-scanner-btn-activate:hover {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.qr-scanner-btn-close {
  background: transparent;
  color: #D4AF37;
  border: 1px solid #D4AF37;
}

.qr-scanner-btn-close:hover {
  background: rgba(212, 175, 55, 0.1);
}

/* Sparkle particles for premium activation */
.sparkle-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  pointer-events: none;
  overflow: visible;
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #FFD700;
  animation: sparkle-burst 1.2s ease-out forwards;
}

/* Completion celebration overlay */
.completion-flash {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.3), transparent 70%);
  z-index: 100;
  pointer-events: none;
  animation: flash-fade 1.5s ease-out forwards;
}

@keyframes flash-fade {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.meu-amor {
  font-size: 18px;
  color: #D4AF37;
  font-family: 'Playfair Display', serif;
  margin-bottom: 4px;
  text-align: center;
}

.partner-name {
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
  background: linear-gradient(135deg, #D4AF37, #FFD700, #D4AF37, #B8860B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.quote-box {
  position: relative;
  border: 1px solid #D4AF37;
  border-radius: 12px;
  padding: 16px 20px;
  background: rgba(212, 175, 55, 0.05);
  margin-bottom: 24px;
}

.quote-box p {
  color: #FFFFFF;
  text-align: center;
  font-style: italic;
  line-height: 1.6;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
}

.quote-heart {
  position: absolute;
  top: -8px;
  right: -8px;
}

.counter-section {
  text-align: center;
  margin-bottom: 16px;
  width: 100%;
}

.counter-label {
  font-size: 14px;
  letter-spacing: 0.15em;
  color: #D4AF37;
  font-family: 'Inter', sans-serif;
  margin-bottom: 8px;
}

.counter-days {
  font-size: 24px;
  font-weight: 700;
  color: #D4AF37;
  font-family: 'Inter', sans-serif;
  margin-bottom: 12px;
}

.counter-box {
  border: 1px solid #D4AF37;
  border-radius: 12px;
  padding: 16px;
  background: rgba(212, 175, 55, 0.05);
}

.counter-detail {
  font-size: 18px;
  color: #D4AF37;
  font-family: 'Inter', sans-serif;
  margin-bottom: 8px;
}

.counter-start {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: #D4AF37;
  font-family: 'Inter', sans-serif;
  margin-bottom: 4px;
}

.counter-anniversary {
  font-size: 14px;
  color: #D4AF37;
  font-family: 'Inter', sans-serif;
}

/* ============ SOCIAL BUTTONS ============ */

.social-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px 0;
  width: 100%;
}

.social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #D4AF37;
  background: rgba(0, 0, 0, 0.9);
  flex: 1;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.social-btn span {
  color: #D4AF37;
  font-size: 11px;
  letter-spacing: 0.1em;
  font-family: 'Inter', sans-serif;
}

/* ============ QR CODE & INSTALL ============ */

.qr-section {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
  width: 100%;
}

.qr-section .title {
  color: #000000;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
}

.qr-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.btn-install {
  animation: pulse-install 1.8s ease-in-out infinite;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #D4AF37, #FFD700, #D4AF37, #B8860B);
  color: #000000;
  transform-style: preserve-3d;
  transition: all 0.2s ease;
}

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

.installed-text {
  color: #2E7D32;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

.footer-link {
  color: #D4AF37;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  margin-top: 8px;
  margin-bottom: 24px;
  display: inline-block;
}

.footer-link:hover {
  text-decoration: underline;
}

/* ============ HEART ICON IN SVG ============ */

.inline-heart {
  display: inline;
  vertical-align: middle;
  margin-right: 4px;
}

/* ============ SCROLLBAR ============ */

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: #D4AF37;
  border-radius: 2px;
}

/* ============ LOADING ============ */

.loading-container {
  min-height: 100vh;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-heart {
  animation: heartbeat-3d 2s ease-in-out infinite;
  transform-style: preserve-3d;
}

/* ============ FADE IN ANIMATION ============ */

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

/* ============ NAMORADO APP STYLES ============ */

/* Activation code display (blinking, replaces QR Code) */
.activation-code-display {
  background: #111;
  border: 2px solid #D4AF37;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin: 20px 0;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

.activation-romantic-text {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  color: #D4AF37;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.activation-code-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.activation-code-blink {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.5em;
  color: #FFD700;
  text-shadow: 0 0 25px rgba(255, 215, 0, 0.6), 0 0 50px rgba(255, 215, 0, 0.3);
  padding: 16px;
  background: rgba(212, 175, 55, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  margin-bottom: 16px;
  animation: blink-code 1.5s ease-in-out infinite;
}

@keyframes blink-code {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 25px rgba(255, 215, 0, 0.6), 0 0 50px rgba(255, 215, 0, 0.3);
  }
  50% {
    opacity: 0.4;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.2), 0 0 20px rgba(255, 215, 0, 0.1);
  }
}

.activation-code-instructions {
  color: #888;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

.paring-code-display {
  background: #111;
  border: 2px solid #D4AF37;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin: 20px 0;
}

.paring-code-display h3 {
  font-family: 'Playfair Display', serif;
  color: #D4AF37;
  font-size: 16px;
  margin-bottom: 12px;
}

.paring-code-value {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.4em;
  color: #FFD700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  padding: 16px;
  background: rgba(212, 175, 55, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  margin-bottom: 12px;
}

.paring-code-instructions {
  color: #888;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

/* ============ EDIT BUTTON ============ */

.btn-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 20px;
  background: rgba(212, 175, 55, 0.05);
  color: #D4AF37;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 16px;
  margin-bottom: 12px;
}

.btn-edit:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: #D4AF37;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.btn-edit:active {
  transform: scale(0.96);
}

/* ============ EDIT MODAL ============ */

.edit-modal-box {
  max-height: 85vh;
  overflow-y: auto;
}

.edit-field-group {
  margin-bottom: 14px;
  text-align: left;
}

.edit-label {
  display: block;
  color: #D4AF37;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
}

.edit-input {
  width: 100%;
  background: #000;
  color: #FFD700;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s ease;
}

.edit-input:focus {
  border-color: #D4AF37;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.edit-input::placeholder {
  color: #555;
  font-size: 13px;
}

textarea.edit-input {
  resize: none;
  min-height: 70px;
  line-height: 1.5;
}

/* ============ APP FOOTER ============ */

.app-footer {
  text-align: center;
  padding: 16px 0 24px 0;
  color: rgba(212, 175, 55, 0.5);
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  width: 100%;
}

.app-footer .footer-link {
  color: #D4AF37;
  font-weight: 600;
  margin: 0;
  display: inline;
}

/* ============ PREMIUM BADGE (Namorado Form) ============ */

.premium-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, 0.4);
  background: rgba(212, 175, 55, 0.08);
  margin-bottom: 24px;
  width: 100%;
}

.premium-badge span {
  color: #FFD700;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ============ INFO BOX (Namorado Form) ============ */

.info-box-namorado {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.05);
  margin-bottom: 16px;
  width: 100%;
}

.info-box-namorado span {
  color: #FFD700;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}

/* ============ ATIVAR PAGE (Payment) ============ */

.ativar-heart-icon {
  animation: heartbeat-3d 2s ease-in-out infinite;
  transform-style: preserve-3d;
  margin-bottom: 24px;
  margin-top: 16px;
}

.ativar-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #D4AF37, #FFD700, #D4AF37, #B8860B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ativar-product-box {
  width: 100%;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 16px;
  background: rgba(212, 175, 55, 0.05);
  margin-bottom: 20px;
}

.ativar-product-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.ativar-product-item:last-child {
  border-bottom: none;
}

.ativar-product-item span {
  color: #FFFFFF;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}

.ativar-price-box {
  text-align: center;
  margin-bottom: 24px;
}

.ativar-price-label {
  color: #888;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ativar-price-value {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, #D4AF37, #FFD700, #D4AF37, #B8860B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.ativar-price-sub {
  color: #888;
  font-size: 11px;
  font-family: 'Inter', sans-serif;
}

.ativar-pay-btn {
  width: 100%;
  margin-bottom: 12px;
}

.ativar-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.ativar-security span {
  color: #4CAF50;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
}

.ativar-back-link {
  color: rgba(212, 175, 55, 0.5);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  margin-bottom: 24px;
  display: inline-block;
  transition: color 0.3s ease;
}

.ativar-back-link:hover {
  color: #D4AF37;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 480px) {
  .title-box h1 {
    font-size: 20px;
  }

  .partner-name {
    font-size: 26px;
  }

  .social-buttons {
    gap: 8px;
  }

  .social-btn {
    padding: 8px;
  }

  .heart-svg-wrapper {
    width: 140px;
    height: 140px;
  }

  .progress-ring-container {
    width: 140px;
    height: 140px;
  }
}
