/* =============================================
   LOVIFY – style.css  (Premium Dark Edition)
   ============================================= */

/* ---- CSS Variables ---- */
:root {
  --rose:        #FF2D78;
  --rose-dark:   #d91f63;
  --rose-light:  #ff6fa3;
  --blush:       #FFF0F5;
  --blush-mid:   #ffe0ed;
  --charcoal:    #1A1A2E;
  --charcoal-2:  #2a2a45;
  --gold:        #FFD700;
  --gold-dark:   #e6c200;
  --purple:      #8b5cf6;
  --purple-light:#c084fc;
  --white:       #ffffff;
  --text-body:   #e8e0f0;
  --text-muted:  #9988bb;
  --border:      rgba(255,255,255,0.1);
  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 8px 40px rgba(255,45,120,0.18);
  --shadow-lg:   0 20px 60px rgba(255,45,120,0.25);
  --transition:  all 0.3s ease;

  /* Tier unique glow colors */
  --glow-basic:    rgba(255,45,120,0.4);
  --glow-silver:   rgba(226,232,240,0.3);
  --glow-gold:     rgba(255,215,0,0.45);
  --glow-premium:  rgba(0,242,254,0.5);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0d0820 0%, #1a0f35 50%, #0d1f3c 100%);
  background-attachment: fixed;
  color: var(--text-body);
  min-height: 100vh;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ---- Magic Dust Canvas (subtle) ---- */
#magicCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5%;
  background: rgba(13,8,32,0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,45,120,0.15);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--rose);
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.nav-logo .brand-logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}
.logo-heart { color: var(--rose); }
.nav-links { display: flex; align-items: center; gap: 28px; }

/* Account avatar (platform pages — not on shared slug themes) */
.navbar-end {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.navbar .mnav-user {
  position: relative;
}
.navbar .mnav-avatar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
}
.navbar .mnav-avatar-btn:focus-visible {
  outline: 2px solid rgba(255, 45, 120, 0.8);
  outline-offset: 2px;
}
.navbar .mnav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff4d8d, #7c5cff);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(255, 45, 120, 0.25);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}
.navbar .mnav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.navbar .mnav-user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(18, 12, 36, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  z-index: 220;
}
.navbar .mnav-user-menu[hidden] {
  display: none !important;
}
.navbar .mnav-user-email {
  margin: 0 0 8px;
  padding: 6px 10px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  word-break: break-all;
}
.navbar .mnav-user-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}
.navbar .mnav-user-item:hover {
  background: rgba(255, 255, 255, 0.08);
}
.navbar .mnav-user-signout {
  color: #ff8fb3;
}
.nav-account-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  white-space: nowrap;
}
.nav-account-link:hover {
  color: #fff;
}
.nav-account-link[hidden] {
  display: none !important;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--rose); }
.nav-cta {
  background: var(--rose);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: var(--transition) !important;
}
.nav-cta:hover { background: var(--rose-dark) !important; transform: translateY(-1px); }

/* Progress Steps */
.progress-steps { display: flex; gap: 12px; align-items: center; }
.pstep {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.12);
  transition: var(--transition);
}
.pstep.active { background: var(--rose); color: white; border-color: var(--rose); }
.pstep.done { background: rgba(255,45,120,0.15); color: var(--rose); border-color: rgba(255,45,120,0.3); }

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-dark) 100%);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 24px rgba(255,45,120,0.35);
  text-decoration: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(255,45,120,0.5); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-large { font-size: 1.1rem; padding: 16px 40px; }
.btn-full { width: 100%; justify-content: center; }
.btn-arrow { font-size: 1.2rem; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,45,120,0.1);
  color: var(--rose);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border: 1.5px solid rgba(255,45,120,0.3);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-secondary:hover { background: var(--rose); color: var(--white); transform: translateX(-3px); }

/* ---- Sections ---- */
.section-container { max-width: 1100px; margin: 0 auto; padding: 0 5%; }
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.2;
}


/* ===========================
   INDEX PAGE
   =========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 5% 60px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
  position: relative;
  z-index: 1;
}
.hero-content { flex: 1; max-width: 580px; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,45,120,0.12);
  color: var(--rose);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,45,120,0.25);
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--rose), var(--rose-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 460px;
}

/* FIX: Plain Counter Circles converted to Premium Human Gradient Avatars with User Initials */
.hero-social-proof { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.proof-avatars { display: flex; }
.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid #0d0820;
  margin-left: -12px;
  position: relative;
  box-shadow: 0 6px 14px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
}
.avatar:first-child { margin-left: 0; z-index: 3; }
.avatar:nth-child(2) { z-index: 2; }
.avatar:nth-child(3) { z-index: 1; }

.av1 { background: radial-gradient(circle at top left, #ff6b6b, #ff8e8e); }
.av1::before { content: '👦'; }
.av2 { background: radial-gradient(circle at top left, #8e44ad, #a29bfe); }
.av2::before { content: '👧'; }
.av3 { background: radial-gradient(circle at top left, #f39c12, #f1c40f); }
.av3::before { content: '👩'; }
.hero-social-proof p { font-size: 0.88rem; color: rgba(255,255,255,0.65); font-weight: 500; }

/* Phone Mockup Section */
.hero-visual { flex: 1; display: flex; justify-content: center; align-items: center; }

/* FIX: Added Endless Dynamic Pop-In Pop-Out Breathing Animation Loop */
.phone-mockup {
  width: 280px; height: 520px;
  background: rgba(13,8,32,0.8);
  border-radius: 40px;
  padding: 20px 16px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,45,120,0.2);
  position: relative;
  animation: continuousPop 4s cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
}

@keyframes continuousPop {
  0% { transform: scale(1) translateY(0); box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 20px rgba(255,45,120,0.15); }
  100% { transform: scale(1.04) translateY(-8px); box-shadow: 0 50px 95px rgba(0,0,0,0.6), 0 0 35px rgba(255,45,120,0.35); }
}

.phone-screen {
  background: rgba(26,15,53,0.9);
  border-radius: 24px;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.mock-header {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--rose);
  text-align: center;
  padding: 10px 0 6px;
}

/* FIX: Empty Square boxes filled with beautiful dynamic pulsing emojis & gradient overlays */
.mock-photos { display: flex; gap: 8px; }
.mock-photo { 
  flex: 1; height: 100px; border-radius: 12px; 
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.4);
}
.mock-photo::after {
  font-size: 1.8rem;
  animation: pulseEmoji 1.5s infinite ease-in-out alternate;
}
.mp1 { background: linear-gradient(135deg, rgba(255,45,120,0.25), rgba(26,15,53,0.8)); border: 1px solid rgba(255,45,120,0.3); }
.mp1::after { content: '👩‍❤️‍👨'; } /* Injecting Sweet Couple Emoji */

.mp2 { background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(26,15,53,0.8)); border: 1px solid rgba(139,92,246,0.3); }
.mp2::after { content: '🎁✨'; } /* Injecting Glowing Animated Gift Box Emoji */

@keyframes pulseEmoji {
  0% { transform: scale(0.85); filter: drop-shadow(0 0 2px rgba(255,255,255,0.2)); }
  100% { transform: scale(1.1); filter: drop-shadow(0 0 8px rgba(255,45,120,0.6)); }
}

.mock-msg {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  text-align: center;
  background: rgba(255,45,120,0.08);
  padding: 10px 12px;
  border-radius: 10px;
  line-height: 1.5;
  border: 1px solid rgba(255,45,120,0.12);
}
.mock-song {
  font-size: 0.78rem;
  color: var(--rose);
  font-weight: 600;
  text-align: center;
  background: rgba(255,45,120,0.1);
  padding: 8px 12px;
  border-radius: 10px;
}

/* How It Works */
.how-it-works {
  padding: 100px 0;
  background: rgba(255,255,255,0.03);
  text-align: center;
}
.how-it-works .section-title,
.how-it-works .section-eyebrow { text-align: center; display: block; }
.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 50px;
  flex-wrap: wrap;
}
.step-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 30px 24px;
  width: 180px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(255,45,120,0.3); }
.step-icon { font-size: 2.2rem; margin-bottom: 12px; display: block; }
.step-card h3 { font-size: 0.95rem; font-weight: 600; color: #ffffff; margin-bottom: 6px; }
.step-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.step-connector { font-size: 1.6rem; color: rgba(255,45,120,0.35); padding: 0 8px; font-weight: 300; }

/* Why Us */
.why-us { padding: 100px 0; text-align: center; }
.why-us .section-title,
.why-us .section-eyebrow { text-align: center; display: block; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 30px;
  text-align: left;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(255,45,120,0.3); }
.feature-emoji { font-size: 2rem; display: block; margin-bottom: 14px; }
.feature-card h3 { font-size: 1rem; font-weight: 600; color: #ffffff; margin-bottom: 8px; }
.feature-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* CTA Section */
.cta-section {
  background: rgba(255,45,120,0.06);
  border-top: 1px solid rgba(255,45,120,0.12);
  border-bottom: 1px solid rgba(255,45,120,0.12);
  padding: 100px 5%;
  text-align: center;
}
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta-section h2 { font-family: 'Playfair Display', serif; font-size: 2.4rem; color: white; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.55); margin-bottom: 32px; font-size: 1rem; }

/* Footer */
.footer { background: rgba(0,0,0,0.3); padding: 40px 5%; text-align: center; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--rose); margin-bottom: 10px; }
.footer p { color: rgba(255,255,255,0.35); font-size: 0.85rem; line-height: 1.8; }
.footer-copy { margin-top: 16px; font-size: 0.78rem; }


/* ===========================
   THEMES PAGE
   =========================== */
.themes-main { padding: 120px 0 80px; text-align: center; }
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}
.page-subtitle { color: var(--text-muted); font-size: 1rem; margin-bottom: 48px; }

.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
  text-align: left;
}
.theme-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}
.theme-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(255,45,120,0.3); }
.theme-card.selected { border-color: var(--rose); box-shadow: 0 0 0 2px rgba(255,45,120,0.25); }
.theme-preview { height: 160px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.theme-preview-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tp-overlay { text-align: center; }
.tp-overlay span { font-size: 3rem; display: block; margin-bottom: 8px; }
.tp-overlay p { color: white; font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; }
.tp-rose   { background: linear-gradient(135deg, #ff9a9e, #fad0c4); }
.tp-galaxy { background: linear-gradient(135deg, #1a1a3e, #6b21a8, #1e3a5f); }
.tp-golden { background: linear-gradient(135deg, #1a1a2e, #c9a227, #1a1a2e); }
.tp-pastel { background: linear-gradient(135deg, #fbc2eb, #a6c1ee, #ffecd2); }
.tp-dark   { background: linear-gradient(135deg, #0f0f1a, #2d1b69, #0f0f1a); }
.tp-nature { background: linear-gradient(135deg, #134e5e, #71b280, #134e5e); }
.tp-romantic { background: linear-gradient(135deg, #ff9a9e, #fad0c4); }
.tp-travel   { background: linear-gradient(135deg, #134e5e, #71b280, #2d5016); }
.tp-movie    { background: linear-gradient(135deg, #1a1008, #d97706, #1a1008); }
.theme-info { padding: 16px 18px; flex: 1; }
.theme-info h3 { font-size: 1rem; font-weight: 700; color: #ffffff; margin-bottom: 8px; }
.theme-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.theme-badge {
  font-size: 0.72rem; font-weight: 500;
  padding: 4px 10px; border-radius: 50px;
  background: rgba(255,255,255,0.08);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.1);
}
.theme-info p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.theme-select-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--rose); color: white;
  font-size: 0.75rem; font-weight: 600;
  padding: 4px 12px; border-radius: 50px;
  opacity: 0; transition: var(--transition);
}
.theme-card.selected .theme-select-badge { opacity: 1; }
.themes-action { text-align: center; }
.selected-info { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; font-weight: 500; }

.theme-actions { padding: 0 18px 18px; }
.theme-actions-dual { display: flex; gap: 10px; }
.theme-preview-btn,
.theme-use-btn,
.theme-custom-btn {
  flex: 1; border: none; outline: none; cursor: pointer;
  padding: 12px 14px; border-radius: 12px;
  font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 600;
  transition: all 0.3s ease;
}
.theme-preview-btn {
  background: transparent;
  color: var(--text-body);
  border: 1px solid rgba(255,255,255,0.2);
}
.theme-preview-btn:hover {
  border-color: var(--rose-light);
  color: #fff;
  transform: translateY(-2px);
}
.theme-use-btn,
.theme-custom-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-dark) 100%);
  box-shadow: 0 6px 20px rgba(255,45,120,0.25);
}
.theme-use-btn:hover,
.theme-custom-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(255,45,120,0.4); }
.theme-use-btn:active,
.theme-custom-btn:active { transform: translateY(0); }

.themes-loading { text-align: center; padding: 40px 0; color: var(--text-muted); }
.themes-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
.theme-skeleton {
  height: 320px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.themes-error { color: #ff6b6b; text-align: center; padding: 20px; margin-bottom: 24px; }
.themes-empty { text-align: center; color: var(--text-muted); padding: 40px; grid-column: 1 / -1; }


/* ===========================
   INFO / FORM PAGE
   =========================== */
.info-main { padding: 110px 5% 80px; }
.form-container { max-width: 680px; margin: 0 auto; }
.form-container .page-subtitle { margin-bottom: 40px; }

.lovify-form { display: flex; flex-direction: column; gap: 28px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-size: 0.95rem; font-weight: 600;
  color: rgba(255,255,255,0.85);
  display: flex; align-items: center; gap: 8px;
}
.label-icon { font-size: 1.1rem; }
.form-input, .form-textarea {
  width: 100%; padding: 14px 18px;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif; font-size: 0.95rem;
  color: #ffffff;
  background: rgba(255,255,255,0.05);
  transition: var(--transition); outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(255,45,120,0.12);
  background: rgba(255,255,255,0.07);
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); }
.char-counter { font-size: 0.78rem; color: var(--text-muted); text-align: right; }

.input-prefix-wrap { display: flex; align-items: center; gap: 0; }
.input-prefix {
  background: rgba(255,45,120,0.1);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 14px 14px; font-weight: 600;
  color: var(--rose); font-size: 0.9rem; white-space: nowrap;
}
.input-with-prefix { border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important; }

.photo-upload-area {
  border: 2px dashed rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 30px 20px;
  text-align: center; cursor: pointer;
  background: rgba(255,255,255,0.03); transition: var(--transition); min-height: 140px;
}
.photo-upload-area:hover { border-color: var(--rose); background: rgba(255,45,120,0.05); }
.photo-upload-area.photo-upload-focus {
  border-color: var(--rose);
  background: rgba(255,45,120,0.08);
  box-shadow: 0 0 0 3px rgba(255,45,120,0.25);
}
.upload-placeholder .upload-icon { font-size: 2.5rem; margin-bottom: 10px; }
.upload-placeholder p { font-weight: 600; color: rgba(255,255,255,0.7); margin-bottom: 4px; }
.upload-placeholder span { font-size: 0.8rem; color: var(--text-muted); }
.photo-previews { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.photo-preview-item {
  position: relative; width: 90px; height: 90px;
  border-radius: 10px; overflow: hidden;
  border: 2px solid rgba(255,255,255,0.1);
}
.photo-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-remove-btn {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px;
  background: rgba(255,45,120,0.85); color: white;
  border: none; border-radius: 50%; font-size: 0.75rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.form-error {
  background: rgba(255,45,120,0.1);
  border: 1.5px solid var(--rose);
  color: var(--rose-light);
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 500;
}


/* ========================================================
   PAYMENT PAGE – FULL REQUIREMENT COMPLIANCE (2x2 & ALL DISTINCT COLORS)
   ======================================================== */
.payment-main { padding: 110px 0 80px; }
#paymentSection { padding: 110px 5% 80px; }
#paymentSection .section-container { max-width: 900px; margin: 0 auto; text-align: center; }
.payment-main .section-container { text-align: center; }
.payment-main .page-subtitle { margin-bottom: 48px; }

.plans-wrapper { display: flex; flex-direction: column; gap: 32px; }

.plan-category {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(12px);
}
.plan-category-header {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.basic-header   { color: var(--rose-light); }
.premium-header { color: var(--gold); }
.plan-badge {
  font-family: 'Poppins', sans-serif; font-size: 0.75rem; font-weight: 600;
  padding: 4px 12px; border-radius: 50px;
  background: rgba(255,45,120,0.12); color: var(--rose-light);
  margin-left: auto;
}
.premium-badge { background: rgba(255,215,0,0.1); color: var(--gold); }

/* PERFECT 2x2 GRID FLOW FIXED */
.plan-cards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

/* ── Plan Cards Base Architecture ── */
.plan-card {
  border-radius: 18px;
  padding: 26px 18px 22px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  text-align: center;
  overflow: hidden;
  backdrop-filter: blur(14px);
}

/* 🎯 FIXED COLOR SCHEMA BY GRID CHILD ORDER (No HTML modifications required) */

/* CARD 1: Basic Plan (Soft Vivid Rose Pink Theme) */
.plan-cards-row > .plan-card:nth-child(1) {
  background: rgba(255,45,120,0.06);
  border: 1px solid rgba(255,45,120,0.28);
  box-shadow: 0 4px 24px rgba(255,45,120,0.08);
}
.plan-cards-row > .plan-card:nth-child(1):hover {
  transform: translateY(-8px);
  box-shadow: 0 0 50px var(--glow-basic), 0 16px 36px rgba(255,45,120,0.25);
  border-color: rgba(255,45,120,0.7);
}
.plan-cards-row > .plan-card:nth-child(1).selected {
  border-color: #FF2D78;
  box-shadow: 0 0 40px var(--glow-basic);
  background: rgba(255,45,120,0.14);
}
.plan-cards-row > .plan-card:nth-child(1) .plan-price { color: #ff6fa3; }

/* CARD 2: Silver Plan (Pure Premium Platinum Silver Theme) */
.plan-cards-row > .plan-card:nth-child(2) {
  background: rgba(226,232,240,0.05);
  border: 1px solid rgba(226,232,240,0.28);
  box-shadow: 0 4px 24px rgba(226,232,240,0.05);
}
.plan-cards-row > .plan-card:nth-child(2):hover {
  transform: translateY(-8px);
  box-shadow: 0 0 50px var(--glow-silver), 0 16px 36px rgba(226,232,240,0.2);
  border-color: rgba(226,232,240,0.7);
}
.plan-cards-row > .plan-card:nth-child(2).selected {
  border-color: #E2E8F0;
  box-shadow: 0 0 40px var(--glow-silver);
  background: rgba(226,232,240,0.12);
}
.plan-cards-row > .plan-card:nth-child(2) .plan-price { color: #E2E8F0; }
.plan-cards-row > .plan-card:nth-child(2) .popular-tag { background: linear-gradient(90deg, #94a3b8, #cbd5e1); color: #0f0f1a; }

/* CARD 3: Gold Plan (Royal Majestic Golden Theme) */
.plan-cards-row > .plan-card:nth-child(3) {
  background: rgba(255,215,0,0.05);
  border: 1px solid rgba(255,215,0,0.3);
  box-shadow: 0 4px 24px rgba(255,215,0,0.06);
}
.plan-cards-row > .plan-card:nth-child(3):hover {
  transform: translateY(-8px);
  box-shadow: 0 0 50px var(--glow-gold), 0 16px 36px rgba(255,215,0,0.25);
  border-color: rgba(255,215,0,0.75);
}
.plan-cards-row > .plan-card:nth-child(3).selected {
  border-color: var(--gold);
  box-shadow: 0 0 40px var(--glow-gold);
  background: rgba(255,215,0,0.12);
}
.plan-cards-row > .plan-card:nth-child(3) .plan-price { color: var(--gold); }
.plan-cards-row > .plan-card:nth-child(3) .popular-tag { background: linear-gradient(90deg, #c9a227, var(--gold)); color: #1a1a2e; }

/* CARD 4: Premium Plan (Luxury Glowing Neon Diamond Cyan Theme) */
.plan-cards-row > .plan-card:nth-child(4) {
  background: rgba(0,242,254,0.05);
  border: 1px solid rgba(0,242,254,0.32);
  box-shadow: 0 4px 24px rgba(0,242,254,0.08);
}
.plan-cards-row > .plan-card:nth-child(4):hover {
  transform: translateY(-8px);
  box-shadow: 0 0 55px var(--glow-premium), 0 16px 36px rgba(0,242,254,0.3);
  border-color: rgba(0,242,254,0.85);
}
.plan-cards-row > .plan-card:nth-child(4).selected {
  border-color: #00F2FE;
  box-shadow: 0 0 45px var(--glow-premium);
  background: rgba(0,242,254,0.14);
}
.plan-cards-row > .plan-card:nth-child(4) .plan-price { color: #00F2FE; }
.plan-cards-row > .plan-card:nth-child(4) .popular-tag { background: linear-gradient(90deg, #0072ff, #00F2FE); color: #ffffff; }

.plan-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 900;
  margin-bottom: 4px;
}
.plan-name {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 16px;
}
.plan-features { text-align: left; display: flex; flex-direction: column; gap: 7px; }
.plan-features li { font-size: 0.82rem; color: rgba(255,255,255,0.7); }

.popular-tag {
  position: absolute; top: -1px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem; font-weight: 700;
  padding: 4px 14px; border-radius: 0 0 10px 10px;
  white-space: nowrap; letter-spacing: 0.5px;
}
.plan-select-indicator {
  margin-top: 14px; font-size: 0.82rem; font-weight: 600;
  color: var(--rose); opacity: 0; transition: var(--transition);
}
.plan-card.selected .plan-select-indicator { opacity: 1; }

/* Order Summary */
.order-summary {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 32px auto 24px;
  text-align: left;
  max-width: 500px;
  backdrop-filter: blur(10px);
}
.order-summary h3 {
  font-family: 'Playfair Display', serif; font-size: 1.2rem;
  color: rgba(255,255,255,0.9); margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.9rem; color: rgba(255,255,255,0.45);
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.summary-row span:last-child { font-weight: 600; color: rgba(255,255,255,0.85); }
.total-row { border-top: 1px solid rgba(255,255,255,0.1); border-bottom: none; margin-top: 8px; }
.total-row span { font-size: 1.1rem; }
.total-row span:last-child { color: var(--rose); font-size: 1.2rem; font-family: 'Playfair Display', serif; }

.payment-action { text-align: center; }
.btn-pay { background: linear-gradient(135deg, #2d3748, #1a202c) !important; }
.btn-pay:hover { box-shadow: 0 10px 32px rgba(0,0,0,0.4) !important; }
.payment-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; }

.draft-save-status {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: -8px;
  margin-bottom: 16px;
  min-height: 1.2em;
}

.lovify-draft-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 45, 120, 0.25);
  background: rgba(255, 45, 120, 0.08);
}

.lovify-draft-banner-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-main, #fff);
}

.lovify-draft-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lovify-draft-banner-actions .btn-primary,
.lovify-draft-banner-actions .btn-secondary {
  padding: 8px 14px;
  font-size: 0.85rem;
  width: auto;
}

.payment-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 500px;
  margin: 24px auto;
  text-align: left;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.payment-terms input {
  margin-top: 4px;
  flex-shrink: 0;
}

.payment-terms a {
  color: var(--rose-light);
}

.payment-terms.payment-terms-required {
  outline: 2px solid var(--rose);
  outline-offset: 6px;
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 45, 120, 0.08);
}

.payment-gateway-placeholder {
  max-width: 500px;
  margin: 32px auto;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.razorpay-placeholder {
  margin-top: 16px;
  padding: 28px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.razorpay-placeholder p {
  margin: 0 0 8px;
  font-weight: 600;
}

.razorpay-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 50px;
  background: rgba(255, 45, 120, 0.15);
  color: var(--rose-light);
}

/* Success Modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 999;
}
.success-modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(26,15,53,0.95);
  border: 1px solid rgba(255,45,120,0.2);
  border-radius: 24px; padding: 50px 44px;
  max-width: 500px; width: 90%;
  text-align: center; z-index: 1000;
  box-shadow: 0 0 60px rgba(255,45,120,0.2), 0 40px 100px rgba(0,0,0,0.5);
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn {
  from { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
  to   { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
}
.success-anim { font-size: 4rem; margin-bottom: 16px; animation: bounce 1s infinite alternate; }
@keyframes bounce { from { transform: scale(1); } to { transform: scale(1.15); } }
.success-modal h2 { font-family: 'Playfair Display', serif; font-size: 2rem; color: #ffffff; margin-bottom: 12px; }
.success-modal p { color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 20px; }
.success-delivery-info {
  background: rgba(255,45,120,0.07);
  border: 1px solid rgba(255,45,120,0.15);
  border-radius: var(--radius-sm); padding: 18px;
  margin: 20px 0; text-align: left;
}
.success-delivery-info p { font-size: 0.88rem; margin-bottom: 10px; color: rgba(255,255,255,0.7); }
.delivery-channels { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.dc-item { font-size: 0.88rem; color: rgba(255,255,255,0.8); }
.delivery-time { font-size: 0.82rem; color: var(--rose); }

/* SPA Animations */
#customizeSection, #paymentSection { animation: fadeInSPA 0.4s ease-in-out; }
@keyframes fadeInSPA {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 992px) {
  .plan-cards-row { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 768px) {
  .hero { flex-direction: column; padding: 110px 5% 60px; text-align: center; }
  .hero-subtitle { margin: 0 auto 32px; }
  .hero-social-proof { justify-content: center; }
  .hero-visual { display: none; }
  .steps-grid { gap: 8px; }
  .step-connector { display: none; }
  .plan-cards-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .progress-steps { gap: 6px; }
  .pstep { font-size: 0.7rem; padding: 5px 10px; }
  .theme-actions { padding: 0 14px 14px; }
  .theme-actions-dual { flex-direction: column; }
  .theme-preview-btn, .theme-use-btn, .theme-custom-btn { font-size: 13px; padding: 12px; }
  .plan-category { padding: 20px 15px; }
}

/* ===========================
   PREVIEW + VIEWER PAGES
   =========================== */
.page-preview .preview-main,
.page-viewer .viewer-main {
  padding: 120px 0 80px;
}

.preview-shell,
.viewer-shell {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.preview-frame,
.viewer-frame {
  width: 100%;
  min-height: 70vh;
  border: none;
  display: block;
  background: #000;
}

.preview-actions,
.viewer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  flex-direction: column;
  align-items: stretch;
  max-width: 420px;
  margin: 0 auto;
}

.preview-actions .btn-primary,
.preview-actions .btn-secondary {
  width: 100%;
  justify-content: center;
}

.preview-price-breakdown {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-price-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
}

.preview-price-row dt {
  margin: 0;
  font-weight: 500;
}

.preview-price-row dd {
  margin: 0;
  font-weight: 600;
}

.preview-price-row-discount dd {
  color: #86efac;
}

.preview-price-row-final {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1rem;
}

.preview-price-row-final dd {
  color: #fff;
  font-family: 'Playfair Display', serif;
}

.lovify-preview-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(13, 8, 32, 0.92);
  border: 1px solid rgba(255, 45, 120, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.lovify-preview-bar-text {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

.lovify-preview-generate-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-dark) 100%);
  box-shadow: 0 4px 18px rgba(255, 45, 120, 0.35);
}

.lovify-preview-generate-btn:hover {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .lovify-preview-bar {
    left: 12px;
    right: 12px;
    bottom: 12px;
    transform: none;
    border-radius: 18px;
  }
}

.viewer-header {
  text-align: center;
  margin-bottom: 24px;
}

.share-link-box {
  max-width: 640px;
  margin: 20px auto 0;
  text-align: left;
}

.share-link-box label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.viewer-nav {
  position: sticky;
  top: 0;
}

.form-actions-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.back-link-btn {
  justify-content: center;
  text-align: center;
}

.photo-count {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--rose-light);
  font-weight: 600;
}

.music-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.music-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.music-option input {
  accent-color: var(--rose);
}

.music-upload-row {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.photo-replace-btn {
  position: absolute;
  bottom: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  background: rgba(107, 140, 255, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

a.theme-preview-btn,
a.theme-use-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#heartsCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.page-index .navbar,
.page-index .hero,
.page-index section,
.page-index .footer {
  position: relative;
  z-index: 1;
}

/* ===========================
   SUCCESS PAGE
   =========================== */
.page-success .success-card {
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 48px 36px;
  box-shadow: var(--shadow);
}

.success-icon {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 16px;
  animation: bounce 1s infinite alternate;
}

.success-title {
  margin-bottom: 12px;
}

.success-subtitle {
  margin-bottom: 32px !important;
  color: rgba(255, 255, 255, 0.65);
}

.success-link-box {
  text-align: left;
  margin-bottom: 28px;
}

.success-link-box label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.success-link-row {
  display: flex;
  gap: 10px;
}

.success-link-input {
  font-size: 0.88rem;
  word-break: break-all;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.success-copy-feedback {
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--rose-light);
}

@media (max-width: 768px) {
  .page-success .success-card {
    padding: 36px 22px;
  }

  .success-icon {
    font-size: 3rem;
  }
}

/* ===========================
   DELIVERY CENTER (success page extension)
   =========================== */
.delivery-center-wrap {
  max-width: 1100px;
}

.delivery-confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

.delivery-loading,
.delivery-error {
  text-align: center;
  padding: 48px 20px;
  color: rgba(255, 255, 255, 0.7);
}

.delivery-error {
  color: #fca5a5;
}

.delivery-center-root {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.delivery-hero {
  position: relative;
}

.delivery-success-anim {
  animation: bounce 1s infinite alternate, delivery-fade-in 0.8s ease;
}

.delivery-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 0 0 24px;
  text-align: left;
}

.delivery-meta-grid dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.delivery-meta-grid dd {
  margin: 0;
  font-weight: 600;
  color: #fff;
}

.delivery-expiry-banner {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  font-weight: 600;
}

.delivery-expiry-banner.is-lifetime {
  background: rgba(134, 239, 172, 0.12);
  color: #86efac;
}

.delivery-expiry-banner.is-warning {
  background: rgba(252, 211, 77, 0.12);
  color: #fcd34d;
}

.delivery-primary-actions .btn-primary,
.delivery-primary-actions .btn-secondary {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.delivery-primary-actions .btn-primary:hover,
.delivery-primary-actions .btn-secondary:hover {
  transform: translateY(-1px);
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.delivery-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.delivery-panel-title {
  margin: 0 0 14px;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: #fff;
}

.delivery-panel-hint,
.delivery-future-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 10px 0 0;
}

.delivery-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.delivery-panel-header .delivery-panel-title {
  margin: 0;
}

.delivery-refresh-btn {
  min-width: 42px;
  padding: 8px 12px;
}

.delivery-qr-panel {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.delivery-qr-panel[hidden] {
  display: none !important;
}

.delivery-qr-previews {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 12px;
}

.delivery-qr-preview {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.delivery-qr-preview-mobile {
  grid-column: 1 / -1;
}

.delivery-preview-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.delivery-qr-mount {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.delivery-qr-canvas {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.delivery-qr-fade-in {
  animation: delivery-fade-in 0.6s ease;
}

@keyframes delivery-fade-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.delivery-qr-actions,
.delivery-share-grid,
.delivery-quick-actions,
.delivery-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.delivery-share-grid .btn-secondary {
  flex: 1 1 calc(50% - 10px);
  min-width: 120px;
}

.delivery-info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.delivery-info-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}

.delivery-info-list dt {
  color: var(--text-muted);
}

.delivery-info-list dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.delivery-analytics-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.delivery-analytics-stats div {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 12px;
}

.delivery-analytics-stats span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.delivery-analytics-stats strong {
  font-size: 1.1rem;
}

.delivery-subtitle {
  margin: 12px 0 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.delivery-breakdown-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.delivery-breakdown-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
}

.delivery-stat-empty {
  color: var(--text-muted);
  font-size: 0.84rem;
}

@media (max-width: 900px) {
  .delivery-grid {
    grid-template-columns: 1fr;
  }

  .delivery-analytics-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .delivery-meta-grid {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   CUSTOMER PORTAL
   =========================== */
.page-portal .portal-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.portal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.portal-nav-item {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.portal-nav-item:hover,
.portal-nav-item.is-active {
  color: #fff;
  background: rgba(255, 45, 120, 0.2);
  border-color: rgba(255, 45, 120, 0.35);
}

.portal-loading,
.portal-error {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-muted);
}

.portal-error {
  color: #f87171;
}

.portal-feedback {
  text-align: center;
  padding: 10px 16px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  font-size: 0.88rem;
}

.portal-feedback.portal-feedback-error {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
}

.portal-hero,
.portal-panel {
  margin-bottom: 20px;
}

.portal-hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(160px, 220px);
  gap: 24px;
  align-items: start;
}

.portal-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 20px 0;
}

.portal-meta-grid dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.portal-meta-grid dd {
  margin: 4px 0 0;
  font-weight: 600;
}

.portal-theme-cover {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  object-fit: cover;
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.portal-actions .btn-primary,
.portal-actions .btn-secondary {
  flex: 1 1 auto;
  min-width: 140px;
}

.portal-btn-danger {
  border-color: rgba(248, 113, 113, 0.4) !important;
  color: #fca5a5 !important;
}

.portal-expiry-banner {
  padding: 12px 16px;
  border-radius: 10px;
  margin: 12px 0;
  font-size: 0.88rem;
}

.portal-expiry-banner.is-lifetime {
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
}

.portal-expiry-banner.is-warning {
  background: rgba(252, 211, 77, 0.12);
  color: #fde68a;
}

.portal-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.portal-badge.is-active {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.portal-badge.is-disabled,
.portal-badge.is-expired,
.portal-badge.is-deleted {
  background: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.portal-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.portal-panel-header .page-title {
  margin: 0;
}

.portal-refresh-btn {
  padding: 8px 14px;
  font-size: 0.82rem;
}

.portal-share-channels {
  margin-top: 16px;
}

.portal-future-login,
.portal-danger-zone {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-stat-empty {
  color: var(--text-muted);
  font-size: 0.84rem;
}

@media (max-width: 768px) {
  .portal-hero-grid,
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .portal-meta-grid {
    grid-template-columns: 1fr;
  }

  .portal-nav {
    width: 100%;
    margin-top: 12px;
    margin-left: 0;
  }

  .navbar-inner {
    flex-wrap: wrap;
  }
}

/* ===========================
   DEBUG STATUS (development)
   =========================== */
.page-debug .debug-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
}

.debug-subtitle code {
  color: var(--rose-light);
  font-size: 0.88em;
}

.debug-status-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 28px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.debug-status-row {
  display: grid;
  grid-template-columns: minmax(140px, 38%) 1fr;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  align-items: start;
}

.debug-status-row:last-child {
  border-bottom: none;
}

.debug-status-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.debug-status-value {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
  word-break: break-all;
}

.debug-status-value.debug-yes {
  color: #34d399;
  font-weight: 600;
}

.debug-status-value.debug-no {
  color: #f87171;
  font-weight: 600;
}

.debug-status-error {
  padding: 14px 18px;
  background: rgba(255, 45, 120, 0.1);
  color: var(--rose-light);
  font-size: 0.88rem;
}

.debug-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lovify-debug-panel {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 99999;
  width: min(360px, calc(100vw - 32px));
  max-height: 70vh;
  overflow: auto;
  background: rgba(13, 8, 32, 0.96);
  border: 1px solid rgba(255, 45, 120, 0.35);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
}

.lovify-debug-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--rose-light);
}

.lovify-debug-panel-header button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.lovify-debug-panel-body .debug-status-row {
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 10px 12px;
}

.lovify-debug-panel-body .debug-status-label {
  font-size: 0.68rem;
}

.lovify-debug-panel-body .debug-status-value {
  font-size: 0.78rem;
}

@media (max-width: 768px) {
  .debug-status-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
.delivery-renew-plans {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.delivery-renew-plan {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}
