/* ======================================================
   SUPER CUTE DATE PROPOSAL THEME & DESIGN SYSTEM
   ====================================================== */

:root {
  --primary-pink: #ff4e79;
  --primary-hover: #ff2d60;
  --primary-light: #ffe5ec;
  --primary-gradient: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
  --yes-btn-gradient: linear-gradient(135deg, #ff2a70 0%, #ff6584 50%, #ff9a8b 100%);
  --secondary-peach: #ffb199;
  --pastel-lavender: #f1e4ff;
  --pastel-yellow: #fff3bf;
  --bg-gradient: linear-gradient(135deg, #ffeef4 0%, #ffe4ec 35%, #f4e8ff 70%, #ffeff7 100%);
  
  --text-main: #4a2835;
  --text-muted: #8b5d6f;
  --text-light: #ab7f91;
  
  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.95);
  --glass-shadow: 0 20px 45px rgba(255, 117, 140, 0.18), 0 8px 16px rgba(0, 0, 0, 0.04);
  
  --radius-xl: 32px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-full: 9999px;
  
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-cute: 'Playpen Sans', 'Outfit', cursive, sans-serif;
  --font-cursive: 'Sacramento', cursive;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px 40px;
  overflow-x: hidden;
  position: relative;
}

/* Floating Hearts Background */
#hearts-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  bottom: -40px;
  font-size: 1.5rem;
  opacity: 0.6;
  user-select: none;
  animation: floatUp 8s linear infinite;
  filter: drop-shadow(0 4px 8px rgba(255, 117, 140, 0.3));
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  15% {
    opacity: 0.65;
  }
  85% {
    opacity: 0.65;
  }
  100% {
    transform: translateY(-110vh) rotate(360deg) scale(1.2);
    opacity: 0;
  }
}

/* Confetti Canvas */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
}

/* Sound Toggle Button */
.sound-toggle-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid var(--glass-border);
  box-shadow: 0 6px 16px rgba(255, 78, 121, 0.15);
  backdrop-filter: blur(12px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 100;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sound-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(255, 78, 121, 0.25);
}

/* Main Container */
.app-container {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Glass Panels & Cards */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 2px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-xl);
}

.card {
  width: 100%;
  padding: 36px 28px;
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeInScale 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

.card.active-card {
  display: flex;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(15px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ======================================================
   SCREEN 1: THE BIG QUESTION
   ====================================================== */

.cute-badge {
  display: inline-block;
  background: linear-gradient(135deg, #fff0f5, #ffe4eb);
  color: var(--primary-pink);
  font-family: var(--font-cute);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
  border: 1.5px solid #ffccd8;
  box-shadow: 0 4px 12px rgba(255, 78, 121, 0.1);
  animation: pulseBadge 2.5s infinite ease-in-out;
}

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

/* Cute Bear Character Avatar (Pure CSS & SVGs) */
.avatar-container {
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
  position: relative;
}

.character-illustration {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bear-face {
  width: 130px;
  height: 120px;
  background: #ffffff;
  border-radius: 50% 50% 46% 46%;
  position: relative;
  box-shadow: 0 10px 24px rgba(255, 117, 140, 0.2), inset 0 -4px 8px rgba(255, 180, 195, 0.3);
  border: 3.5px solid #ffc0cb;
  animation: bearBreathe 3s ease-in-out infinite;
}

@keyframes bearBreathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.02); }
}

.ear {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 3.5px solid #ffc0cb;
  border-radius: 50%;
  position: absolute;
  top: -16px;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.ear-left { left: 4px; transform: rotate(-15deg); }
.ear-right { right: 4px; transform: rotate(15deg); }

.ear-inner {
  width: 24px;
  height: 24px;
  background: #ffb8c6;
  border-radius: 50%;
}

.eyes {
  display: flex;
  justify-content: space-between;
  width: 72px;
  position: absolute;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
}

.eye {
  width: 14px;
  height: 18px;
  background: #3c242c;
  border-radius: 50%;
  position: relative;
  animation: bearBlink 4s infinite ease-in-out;
}

.eye-sparkle {
  width: 5px;
  height: 5px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
}

@keyframes bearBlink {
  0%, 94%, 98%, 100% { transform: scaleY(1); }
  96% { transform: scaleY(0.1); }
}

.blush {
  width: 22px;
  height: 14px;
  background: #ff8ca3;
  opacity: 0.65;
  border-radius: 50%;
  position: absolute;
  top: 56px;
  filter: blur(1px);
}
.blush-left { left: 12px; }
.blush-right { right: 12px; }

.snout {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nose {
  width: 14px;
  height: 10px;
  background: #3c242c;
  border-radius: 50% 50% 40% 40%;
}

.mouth {
  width: 18px;
  height: 9px;
  border-bottom: 2.5px solid #3c242c;
  border-radius: 0 0 10px 10px;
  margin-top: -1px;
  transition: all 0.3s ease;
}

.mouth.sad {
  border-bottom: none;
  border-top: 2.5px solid #3c242c;
  border-radius: 10px 10px 0 0;
  margin-top: 4px;
}

.mouth.open-happy {
  width: 20px;
  height: 14px;
  background: #ff5277;
  border: 2px solid #3c242c;
  border-radius: 4px 4px 14px 14px;
}

.held-heart {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.2rem;
  filter: drop-shadow(0 4px 8px rgba(255, 78, 121, 0.4));
  animation: heartWiggle 1.8s ease-in-out infinite;
}

@keyframes heartWiggle {
  0%, 100% { transform: translateX(-50%) rotate(-6deg) scale(1); }
  50% { transform: translateX(-50%) rotate(6deg) scale(1.1); }
}

/* Titles and Typography */
.content-header {
  margin-bottom: 28px;
}

.main-title {
  font-family: var(--font-cute);
  font-size: 2rem;
  font-weight: 800;
  color: #3b1e2b;
  line-height: 1.25;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Action Buttons Container */
.buttons-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  min-height: 120px;
  margin-bottom: 16px;
  position: relative;
  flex-wrap: wrap;
}

/* Generic Button Styles */
.btn {
  font-family: var(--font-cute);
  font-weight: 700;
  border: none;
  outline: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease;
  user-select: none;
  position: relative;
}

/* Big "YES" Button */
.btn-yes {
  background: var(--yes-btn-gradient);
  color: #ffffff;
  font-size: 1.35rem;
  padding: 16px 36px;
  box-shadow: 0 10px 28px rgba(255, 42, 112, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  z-index: 20;
  transform-origin: center center;
  animation: glowPulse 2s infinite ease-in-out;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-yes:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 34px rgba(255, 42, 112, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

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

.btn-sparkle {
  font-size: 1.1rem;
  margin: 0 4px;
  animation: sparkleTwinkle 1.5s infinite alternate;
}

@keyframes sparkleTwinkle {
  0% { transform: scale(0.8) rotate(0deg); opacity: 0.7; }
  100% { transform: scale(1.2) rotate(30deg); opacity: 1; }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(255, 42, 112, 0.45); }
  50% { box-shadow: 0 14px 36px rgba(255, 42, 112, 0.65), 0 0 20px rgba(255, 117, 140, 0.4); }
}

/* "NO" Button */
.btn-no {
  background: rgba(255, 255, 255, 0.85);
  color: #7a5061;
  font-size: 1.1rem;
  padding: 14px 26px;
  border: 1.5px solid #e2c0cd;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  z-index: 10;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 90%;
  white-space: normal;
  text-align: center;
}

.btn-no:hover {
  background: #fff;
  border-color: #d19fb3;
  color: #573342;
}

.hint-text {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
}

/* ======================================================
   SCREEN 2: DATE & TIME PLANNER
   ====================================================== */

.celebration-badge {
  background: linear-gradient(135deg, #ffe082, #ffb300);
  color: #5d4037;
  font-family: var(--font-cute);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 12px;
  box-shadow: 0 6px 16px rgba(255, 179, 0, 0.3);
}

.section-title {
  font-family: var(--font-cute);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.date-form {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-cute);
  font-weight: 700;
  font-size: 1.05rem;
  color: #3b1e2b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.label-icon {
  font-size: 1.25rem;
}

/* Quick Pills */
.quick-pills-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.pill-btn {
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid #ffccd8;
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-btn:hover {
  background: #ffffff;
  border-color: var(--primary-pink);
  color: var(--primary-pink);
  transform: translateY(-2px);
}

.pill-btn.active {
  background: var(--primary-gradient);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 117, 140, 0.35);
}

/* Custom Inputs */
.input-wrapper {
  width: 100%;
}

.custom-input,
.custom-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid #ffccd8;
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-input:focus,
.custom-textarea:focus {
  border-color: var(--primary-pink);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 78, 121, 0.18);
}

.time-input-row {
  margin-top: 6px;
}

.input-sublabel {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* Activity Grid */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.activity-card {
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid #ffccd8;
  border-radius: var(--radius-lg);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
  outline: none;
}

.activity-card:hover {
  transform: translateY(-3px);
  border-color: #ff8ca3;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(255, 117, 140, 0.15);
}

.activity-card.selected {
  background: linear-gradient(145deg, #fff0f5, #ffe4ec);
  border-color: var(--primary-pink);
  box-shadow: 0 8px 20px rgba(255, 78, 121, 0.25);
  transform: translateY(-3px) scale(1.02);
}

.activity-emoji {
  font-size: 2rem;
  margin-bottom: 6px;
  transition: transform 0.2s ease;
}

.activity-card:hover .activity-emoji {
  transform: scale(1.15) rotate(5deg);
}

.activity-name {
  font-family: var(--font-cute);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.activity-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  background: var(--primary-pink);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.activity-card.selected .activity-check {
  display: flex;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Confirm Button */
.btn-confirm {
  width: 100%;
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 1.2rem;
  padding: 16px 24px;
  box-shadow: 0 10px 25px rgba(255, 78, 121, 0.4);
  margin-top: 10px;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-confirm:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 30px rgba(255, 78, 121, 0.5);
}

/* ======================================================
   SCREEN 3: OFFICIAL DATE TICKET
   ====================================================== */

.ticket-header-badge {
  background: #ff2a70;
  color: #ffffff;
  font-family: var(--font-cute);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(255, 42, 112, 0.35);
  animation: pulseBadge 2s infinite ease-in-out;
}

/* Realistic Cute Ticket */
.date-ticket {
  width: 100%;
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 15px 35px rgba(255, 117, 140, 0.25), 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 2px solid #ffccd8;
  overflow: hidden;
  margin: 18px 0 24px;
  position: relative;
  text-align: left;
}

.ticket-top {
  background: linear-gradient(135deg, #ff6584, #ff7eb3);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.ticket-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticket-pass-title {
  font-family: var(--font-cute);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 1.5px;
}

.ticket-stamp {
  background: rgba(255, 255, 255, 0.25);
  border: 2px dashed #ffffff;
  border-radius: 8px;
  padding: 4px 10px;
  font-family: var(--font-cute);
  font-weight: 800;
  font-size: 0.8rem;
  transform: rotate(-6deg);
  letter-spacing: 0.5px;
}

.ticket-body {
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ticket-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.ticket-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ticket-col.full-width {
  flex: 100%;
}

.ticket-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-light);
  text-transform: uppercase;
}

.ticket-value {
  font-family: var(--font-cute);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
}

.ticket-value.highlight {
  color: var(--primary-pink);
  font-size: 1.25rem;
}

.ticket-value.italic {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.95rem;
  color: #6a4454;
}

/* Ticket Divider with punched notches */
.ticket-divider {
  position: relative;
  display: flex;
  align-items: center;
  margin: 6px -24px;
}

.dashed-line {
  flex: 1;
  border-bottom: 2px dashed #ffb8c6;
  margin: 0 18px;
}

.notch {
  width: 24px;
  height: 24px;
  background: var(--bg-gradient);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.notch-left {
  left: -12px;
  border-right: 2px solid #ffccd8;
  background: #fdeaf2;
}

.notch-right {
  right: -12px;
  border-left: 2px solid #ffccd8;
  background: #fdeaf2;
}

/* Barcode Area */
.ticket-barcode-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid #ffe1e8;
  margin-top: 6px;
}

.barcode-lines {
  display: flex;
  gap: 3px;
  height: 32px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.barcode-lines span {
  display: inline-block;
  background: #4a2835;
  height: 100%;
}

.barcode-lines span:nth-child(even) { width: 4px; }
.barcode-lines span:nth-child(odd) { width: 2px; }
.barcode-lines span:nth-child(3n) { width: 6px; }
.barcode-lines span:nth-child(5n) { width: 1px; }

.barcode-code {
  font-family: monospace;
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--text-light);
}

/* Ticket Actions */
.ticket-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  font-size: 1.15rem;
  padding: 15px 24px;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
  gap: 8px;
}

.btn-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.45);
}

.btn-calendar,
.btn-ics {
  background: #ffffff;
  color: #3b1e2b;
  border: 1.5px solid #ffccd8;
  font-size: 1rem;
  padding: 13px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  gap: 8px;
}

.btn-calendar:hover,
.btn-ics:hover {
  background: #fff0f5;
  border-color: var(--primary-pink);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 10px;
}

.btn-secondary:hover {
  color: var(--text-main);
  text-decoration: underline;
}

/* Footer */
.app-footer {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  position: relative;
  z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  body {
    padding: 14px 12px 30px;
  }

  .card {
    padding: 28px 18px;
  }

  .main-title {
    font-size: 1.65rem;
  }

  .activity-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn-yes {
    font-size: 1.2rem;
    padding: 14px 28px;
  }

  .date-ticket {
    border-radius: var(--radius-lg);
  }

  .ticket-top {
    padding: 14px 18px;
  }

  .ticket-body {
    padding: 18px 18px 16px;
  }
}
