:root {
  --pink-50: #fff0f7;
  --pink-100: #ffe0ef;
  --pink-200: #ffc8e1;
  --pink-300: #ff9fcc;
  --pink-400: #ff7dbb;
  --pink-500: #ff5aa9;
  --pink-600: #ff3c98;
  --rose-500: #fb7185;
  --text: #7a2a50;
  --card: rgba(255, 255, 255, 0.86);
  --shadow: 0 20px 60px rgba(255, 96, 160, 0.25);
  --glow: 0 0 30px rgba(255, 105, 180, 0.5);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Quicksand, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 10%, var(--pink-100), transparent 40%),
              radial-gradient(circle at 80% 0%, var(--pink-50), transparent 40%),
              linear-gradient(180deg, var(--pink-100), var(--pink-200));
  overflow-x: hidden;
}

.hearts {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.heart {
  position: absolute;
  font-size: 14px;
  color: var(--pink-400);
  text-shadow: 0 4px 10px rgba(255, 64, 129, 0.25);
  opacity: 0.85;
  animation: floatUp linear forwards;
  will-change: transform, opacity;
}
@keyframes floatUp {
  0% { transform: translateY(110vh) scale(0.8) rotate(0deg); opacity: 0; }
  10% { opacity: 0.9; }
  100% { transform: translateY(-10vh) scale(1.3) rotate(20deg); opacity: 0; }
}

.wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.card {
  width: min(920px, 94vw);
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  border: 2px solid rgba(255, 192, 203, 0.45);
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255,182,193,.35), rgba(255,105,180,.25), rgba(255,182,193,.35));
  z-index: -1;
  filter: blur(8px);
}

.header {
  text-align: center;
  padding: 28px 22px 10px;
}
.tag {
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--glow);
}
h1 {
  margin: 14px 0 0;
  font-family: "Parisienne", cursive;
  font-weight: 400;
  font-size: clamp(32px, 6.8vw, 60px);
  line-height: 1.15;
  color: var(--pink-600);
}
.sub {
  margin: 6px 0 0;
  color: #a14d74;
  font-weight: 600;
}

.name {
  text-align: center;
  margin: 18px auto 4px;
  padding: 0 20px;
  font-family: "Noto Naskh Arabic", serif;
  font-size: clamp(34px, 8vw, 64px);
  color: #5c2140;
}
.decor {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  width: 86%;
  margin: 6px auto 16px;
  color: var(--pink-500);
}
.line { height: 2px; background: linear-gradient(90deg, transparent, var(--pink-400), transparent); }
.icon { font-size: 22px; }

.dates {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 6px auto 10px;
  padding: 0 18px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: #7a2a50;
  border: 1px solid var(--pink-200);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 6px 18px rgba(255,105,180,0.16);
}
.pill .emoji { font-size: 18px; }

.details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  padding: 18px 22px 26px;
}
@media (max-width: 680px) {
  .details { grid-template-columns: 1fr; }
}
.item {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--pink-100);
  border-radius: 14px;
  padding: 14px;
}
.label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b05a80;
  margin-bottom: 6px;
  font-weight: 700;
}
.value {
  font-size: 18px;
  color: #4a1730;
  line-height: 1.5;
}
.rtl { direction: rtl; font-family: "Noto Nastaliq Urdu","Noto Naskh Arabic", serif; }
.urdu-text { direction: rtl; font-family: "Almarai","Noto Nastaliq Urdu","Noto Naskh Arabic", serif !important; }

.footer-note {
  text-align: center;
  color: #a14d74;
  font-size: 13px;
  padding: 0 0 24px;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid var(--pink-300);
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  color: white;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(255,105,180,0.35);
  transition: transform .08s ease, box-shadow .2s ease, filter .2s ease;
}
.view-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(255,105,180,0.45); filter: brightness(1.02); }
.view-btn:active { transform: translateY(0); box-shadow: 0 8px 18px rgba(255,105,180,0.28); }
.view-btn:focus-visible { outline: 3px solid rgba(255,105,180,.35); outline-offset: 2px; }

/* guest callout */
.guest-cta {
  margin: 12px 14px 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--pink-200);
  background: linear-gradient(180deg, #fff, #fff6fb);
  box-shadow: 0 10px 18px rgba(255,105,180,0.18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.guest-cta .cta-text { color: #7a2a50; font-weight: 700; }
.guest-cta .cta-btn { 
  appearance: none; border: 0; border-radius: 999px; padding: 10px 14px; 
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500)); color: #fff; font-weight: 800; 
  box-shadow: 0 10px 20px rgba(255,105,180,.25); cursor: pointer; transition: transform .08s ease, box-shadow .2s ease, filter .2s ease;
}
.guest-cta .cta-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(255,105,180,.35); filter: brightness(1.02); }
.guest-cta .cta-btn:active { transform: translateY(0); box-shadow: 0 8px 16px rgba(255,105,180,.22); }
.guest-cta .cta-btn:focus-visible { outline: 3px solid rgba(255,105,180,.35); outline-offset: 2px; }

/* name modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: none; align-items: center; justify-content: center; z-index: 20; }
.modal-box {
  width: min(520px, 92vw);
  background: #fff;
  border: 2px solid var(--pink-200);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(255,105,180,.28);
  padding: 18px;
}
.modal-title { font-weight: 800; color: var(--pink-600); margin: 4px 0 10px; text-align: center; }
.modal-field { width: 100%; padding: 12px 12px; border: 2px solid var(--pink-200); border-radius: 12px; font-size: 16px; }
.modal-actions { display: flex; gap: 10px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.btn-pill { appearance: none; border: 0; padding: 10px 14px; border-radius: 999px; font-weight: 800; cursor: pointer; }
.btn-primary { background: linear-gradient(90deg, var(--pink-500), var(--rose-500)); color: #fff; box-shadow: 0 10px 20px rgba(255,105,180,.25); }
.btn-secondary { background: #fff; color: var(--pink-600); border: 2px solid var(--pink-200); }
.btn-pill:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(255,105,180,.32); }
.btn-pill:active { transform: translateY(0); box-shadow: 0 8px 18px rgba(255,105,180,.22); }

.music-btn {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--pink-200);
  background: white;
  color: var(--pink-600);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255,105,180,0.24);
  margin: 8px auto 14px;
}
.music-indicator {
  width: 10px; height: 10px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94, 0.7);
  animation: pulse 1.8s infinite;
}
.music-indicator.paused { background: #f59e0b; animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94, 0.7);} 70% { box-shadow: 0 0 0 12px rgba(34,197,94, 0);} 100% { box-shadow: 0 0 0 0 rgba(34,197,94, 0);} }

/* identify button - more prominent, replaces original music FAB position */
.name-btn {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--pink-300);
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  color: white;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(255,105,180,0.35);
}

/* tap counter */
.tap-counter {
  position: fixed;
  right: 16px;
  bottom: 64px; /* above name button */
  z-index: 5;
  background: white;
  color: var(--pink-600);
  border: 1px solid var(--pink-200);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(255,105,180,0.22);
  font-size: 12px;
}

@media (max-width: 480px) {
  .wrap { padding: 18px; }
  .header { padding: 22px 16px 8px; }
  .dates { gap: 10px; }
  .pill { padding: 12px 16px; }
  .details { padding: 16px; gap: 10px 14px; }
  .footer-note { padding-bottom: 12px; }
}


