/* Custom Properties / Design Tokens */
:root {
  --primary-pink: #ff758f;
  --secondary-pink: #ffb3c1;
  --lily-white: #ffffff;
  --lily-cream: #fff0f5;
  --accent-gold: #f7d070;
  --accent-rose: #e63946;
  --sage-green: #70e000;
  --leaf-green: #38b000;
  --dark-text: #2b2d42;
  --sub-text: #5c677d;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 15px 35px rgba(255, 117, 143, 0.15);
  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  color: var(--dark-text);
  background: linear-gradient(135deg, #fff5f7 0%, #ffdde1 40%, #ee9ca7 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  position: relative;
  overflow-x: hidden;
}

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

/* Navigation Header */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50px;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.nav-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-pink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.icon-btn {
  background: white;
  border: 1px solid #ffd6ff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 117, 143, 0.15);
}

.icon-btn:hover {
  transform: scale(1.1) rotate(5deg);
  background: #fff0f3;
}

/* Main Container */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 20px 60px;
  position: relative;
  z-index: 1;
}

/* Section Styling */
.section-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(255, 117, 143, 0.22);
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ffe5ec, #ffc2d1);
  color: #c9184a;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #800f2f;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--sub-text);
  max-width: 600px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 60px 20px 40px;
}

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

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid white;
  box-shadow: 0 15px 35px rgba(255, 117, 143, 0.3);
  animation: float 4s ease-in-out infinite;
}

.hero-badge-tag {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 2px solid #ffb3c1;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #a4133c;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #a4133c 0%, #ff4d6d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-desc {
  font-size: 1.2rem;
  color: #4a4e69;
  max-width: 650px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.primary-btn {
  background: linear-gradient(135deg, #ff4d6d 0%, #c9184a 100%);
  color: white;
  border: none;
  padding: 16px 36px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(201, 24, 74, 0.35);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.primary-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 30px rgba(201, 24, 74, 0.45);
}

/* Apology Text Card */
.apology-box {
  background: rgba(255, 255, 255, 0.9);
  border-left: 6px solid #ff4d6d;
  padding: 28px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.apology-paragraph {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 16px;
}

.apology-paragraph:last-child {
  margin-bottom: 0;
}

/* Instagram Widget */
.ig-loyalty-card {
  background: linear-gradient(145deg, #ffffff, #fff0f5);
  border: 2px solid #ffccd5;
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  box-shadow: 0 12px 30px rgba(255, 117, 143, 0.12);
}

.ig-header {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.ig-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.ig-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid white;
  object-fit: cover;
}

.ig-info h4 {
  font-size: 1.1rem;
  color: var(--dark-text);
}

.ig-info p {
  font-size: 0.85rem;
  color: var(--sub-text);
}

.ig-status-pill {
  background: #e8f5e9;
  border: 1px solid #81c784;
  color: #2e7d32;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ig-action-btn {
  background: white;
  border: 2px solid #ff4d6d;
  color: #ff4d6d;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ig-action-btn:hover {
  background: #ff4d6d;
  color: white;
}

.ig-verification-result {
  font-size: 0.95rem;
  font-weight: 600;
  color: #c9184a;
  text-align: center;
  min-height: 24px;
}

/* Blooming Lily Garden Grid */
.lily-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.lily-card {
  background: white;
  border: 2px solid #ffe5ec;
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.lily-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #ff8fa3;
  box-shadow: 0 15px 30px rgba(255, 117, 143, 0.2);
}

.lily-card.bloomed {
  background: linear-gradient(135deg, #fff0f5 0%, #ffffff 100%);
  border-color: #ff758f;
}

.lily-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  display: inline-block;
  transition: transform 0.5s ease;
}

.lily-card.bloomed .lily-icon {
  transform: scale(1.2) rotate(10deg);
}

.lily-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #800f2f;
  margin-bottom: 8px;
}

.lily-text {
  font-size: 0.9rem;
  color: var(--sub-text);
  line-height: 1.5;
  opacity: 0;
  max-height: 0;
  transition: all 0.5s ease;
}

.lily-card.bloomed .lily-text {
  opacity: 1;
  max-height: 200px;
  margin-top: 10px;
}

.lily-tap-hint {
  font-size: 0.75rem;
  color: #ff758f;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lily-card.bloomed .lily-tap-hint {
  display: none;
}

/* Love Meter Section */
.love-meter-container {
  text-align: center;
  padding: 20px;
}

.meter-bar-outer {
  width: 100%;
  max-width: 600px;
  height: 32px;
  background: #ffe5ec;
  border-radius: 20px;
  margin: 20px auto;
  overflow: hidden;
  position: relative;
  border: 2px solid #ffb3c1;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.1);
}

.meter-bar-inner {
  height: 100%;
  width: 99.9%;
  background: linear-gradient(90deg, #ff758f, #ff4d6d, #c9184a);
  border-radius: 20px;
  transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.meter-counter {
  font-size: 2.8rem;
  font-weight: 900;
  color: #c9184a;
  margin-bottom: 10px;
}

.boost-btn {
  background: #ff758f;
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 117, 143, 0.3);
  transition: all 0.3s ease;
}

.boost-btn:hover {
  transform: scale(1.08);
  background: #ff4d6d;
}

/* Promises Contract Checklist */
.promises-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.promise-item {
  background: white;
  border: 2px solid #ffe5ec;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.promise-item:hover {
  border-color: #ffb3c1;
  transform: translateX(6px);
}

.promise-item.signed {
  background: #f0fff4;
  border-color: #81c784;
}

.promise-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ffb3c1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-weight: 900;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.promise-item.signed .promise-checkbox {
  background: #38b000;
  border-color: #38b000;
  color: white;
}

.promise-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark-text);
  flex-grow: 1;
}

.promise-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  background: #ffe5ec;
  color: #c9184a;
}

.promise-item.signed .promise-badge {
  background: #d8f3dc;
  color: #2b9348;
}

/* Forgiveness Decision Game */
.forgive-game-box {
  text-align: center;
  padding: 40px 20px;
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.game-question {
  font-size: 2.2rem;
  font-weight: 900;
  color: #800f2f;
  margin-bottom: 30px;
}

.game-btn-group {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 500px;
}

.yes-btn {
  background: linear-gradient(135deg, #38b000 0%, #007200 100%);
  color: white;
  border: none;
  padding: 18px 42px;
  font-size: 1.3rem;
  font-weight: 800;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(56, 176, 0, 0.4);
  transition: transform 0.3s ease, font-size 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
}

.yes-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(56, 176, 0, 0.5);
}

.no-btn {
  background: #e9ecef;
  color: #6c757d;
  border: 2px solid #ced4da;
  padding: 16px 36px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  z-index: 2;
}

.toast-message {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 2px solid #ff758f;
  color: #c9184a;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  animation: popup 0.4s ease;
  pointer-events: none;
  z-index: 10;
}

/* Modal - Certificate */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.certificate-card {
  background: #fff;
  border: 12px double #f7d070;
  border-radius: 20px;
  padding: 40px;
  max-width: 650px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .certificate-card {
  transform: scale(1);
}

.certificate-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14rem;
  opacity: 0.04;
  pointer-events: none;
}

.cert-header {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: #b5838d;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cert-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #800f2f;
  margin-bottom: 20px;
}

.cert-recipient {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ff4d6d;
  border-bottom: 2px solid #f7d070;
  display: inline-block;
  padding: 0 20px 4px;
  margin-bottom: 16px;
}

.cert-body {
  font-size: 1.05rem;
  color: #4a4e69;
  line-height: 1.7;
  margin-bottom: 30px;
}

.cert-seal {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f7d070, #e0a96d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2.2rem;
  box-shadow: 0 8px 20px rgba(224, 169, 109, 0.4);
}

.modal-close-btn {
  background: var(--dark-text);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close-btn:hover {
  background: var(--primary-pink);
}

/* Customizer Drawer */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1100;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-content {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: white;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  padding: 30px 24px;
  transition: right 0.3s ease;
  z-index: 1200;
  overflow-y: auto;
}

.drawer-overlay.active + .drawer-content,
.drawer-content.active {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid #eee;
  padding-bottom: 14px;
}

.drawer-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #800f2f;
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark-text);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #ffe5ec;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #ff758f;
}

/* Keyframe Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes popup {
  0% { transform: translate(-50%, 10px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .section-card {
    padding: 24px 16px;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .game-question {
    font-size: 1.6rem;
  }
  .yes-btn {
    padding: 14px 28px;
    font-size: 1.1rem;
  }
  .no-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}
