* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0612;
  --bg-2: #14081f;
  --pink: #ff4d7d;
  --pink-soft: #ff85a8;
  --lavender: #c4a5ff;
  --gold: #ffd88a;
  --cream: #fbf3ff;
  --text: #f5eaf5;
  --muted: #a89ab8;
  --card: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.10);
  --serif: 'Playfair Display', Georgia, serif;
  --serif-2: 'Cormorant Garamond', Georgia, serif;
  --script: 'Dancing Script', cursive;
  --script-2: 'Great Vibes', cursive;
  --sans: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  line-height: 1.6;
}
.hidden { display: none !important; }

/* PETALS */
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.petal {
  position: absolute; top: -50px; color: var(--pink);
  opacity: 0.4; font-size: 14px;
  animation: petalFall linear infinite;
}
@keyframes petalFall {
  0% { transform: translateY(-50px) rotate(0deg); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { transform: translateY(105vh) rotate(540deg); opacity: 0; }
}

/* SAVE PILL */
.save-pill {
  position: fixed; top: 20px; left: 20px;
  background: rgba(20, 8, 31, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  z-index: 500; transition: all 0.3s;
}
.save-pill.saving { color: var(--gold); border-color: rgba(255, 216, 138, 0.3); }
.save-pill.saved { color: #6ee7b7; border-color: rgba(110, 231, 183, 0.3); }
.save-pill.error { color: var(--pink); border-color: rgba(255, 77, 125, 0.3); }

/* EDIT */
.edit-toggle {
  position: fixed; bottom: 20px; right: 20px;
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  color: white; border: none; font-size: 20px; cursor: pointer;
  z-index: 500; box-shadow: 0 10px 30px rgba(255, 77, 125, 0.5);
  transition: transform 0.3s;
}
.edit-toggle:hover { transform: scale(1.1) rotate(15deg); }

.edit-toolbar {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(20, 8, 31, 0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px; display: none;
  align-items: center; justify-content: space-between;
  z-index: 600; box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  flex-wrap: wrap; gap: 8px;
}
.edit-toolbar.open { display: flex; }
.et-label { font-size: 11px; letter-spacing: 0.15em; color: var(--pink-soft); font-weight: 700; }
.et-right { display: flex; gap: 8px; flex-wrap: wrap; }
.et-btn {
  background: rgba(255,255,255,0.08); color: var(--text);
  border: 1px solid var(--border); padding: 8px 14px;
  border-radius: 999px; font-size: 12px; font-family: inherit;
  font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.et-btn:hover { background: rgba(255,255,255,0.15); }
.et-btn.et-done { background: linear-gradient(135deg, var(--pink), var(--lavender)); border-color: transparent; color: white; }

body.edit-mode .editable {
  outline: 1.5px dashed var(--pink);
  outline-offset: 6px;
  border-radius: 4px;
  cursor: text;
  transition: outline 0.2s, background 0.2s;
}
body.edit-mode .editable:hover { background: rgba(255, 77, 125, 0.08); outline-color: var(--gold); }
body.edit-mode .editable:focus { outline: 2px solid var(--gold); background: rgba(255, 77, 125, 0.12); }

body.edit-mode [data-edit-only] { display: block !important; }
body:not(.edit-mode) [data-edit-only] { display: none !important; }

.add-row { text-align: center; padding: 30px 0 0; }
.add-btn {
  background: transparent; border: 1.5px dashed var(--border);
  color: var(--muted); padding: 12px 26px; border-radius: 999px;
  font-family: inherit; font-size: 13px; cursor: pointer; transition: all 0.2s;
}
.add-btn:hover { border-color: var(--pink); color: var(--pink); background: rgba(255, 77, 125, 0.05); }

.moment-remove, .gallery-remove {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(233, 30, 99, 0.9); color: white; border: none;
  font-size: 16px; cursor: pointer; z-index: 5;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
body.edit-mode .moment-card:hover .moment-remove,
body.edit-mode .gallery-item:hover .gallery-remove { display: flex; }

.image-picker {
  position: absolute;
  top: 22px; left: 22px; right: 22px;
  height: calc(75% - 22px);
  display: none;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55);
  border-radius: 14px;
  cursor: pointer; z-index: 4;
  color: white; font-size: 13px; font-weight: 600;
  pointer-events: auto;
}
body.edit-mode .moment-card:hover .image-picker,
body.edit-mode .gallery-item:hover .image-picker { display: flex; }

/* LOADER */
.loader {
  position: fixed; inset: 0; background: var(--bg); z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; transition: opacity 0.8s, visibility 0.8s;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-heart { font-size: 60px; color: var(--pink); animation: heartbeat 1.2s ease-in-out infinite; }
.loader-text { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 14px; letter-spacing: 0.1em; }
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
}

/* HERO */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; position: relative;
  padding: 40px 24px; text-align: center; overflow: hidden; z-index: 2;
}
.hero-glow {
  position: absolute; width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 125, 0.25) 0%, transparent 65%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation: glow 6s ease-in-out infinite; pointer-events: none;
}
@keyframes glow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}
.hero-content { position: relative; z-index: 2; animation: fadeUp 1.5s cubic-bezier(0.16, 1, 0.3, 1); max-width: 900px; }
.hero-sub {
  font-family: var(--serif-2); font-style: italic; color: var(--lavender);
  font-size: clamp(1rem, 2.5vw, 1.25rem); letter-spacing: 0.15em;
  margin-bottom: 16px; opacity: 0.9;
}
.hero-title {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(3.5rem, 12vw, 8rem); line-height: 1;
  background: linear-gradient(135deg, #fff 0%, var(--pink-soft) 35%, var(--lavender) 65%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 50px rgba(255, 77, 125, 0.5));
  margin-bottom: 28px; letter-spacing: -0.02em;
}
.hero-names {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font-family: var(--serif); font-size: clamp(1.3rem, 3.5vw, 2rem);
  letter-spacing: 0.25em; color: var(--pink-soft);
  text-transform: uppercase; margin-bottom: 14px;
}
.hero-names .amp {
  font-family: var(--script-2); font-size: 2.2em; color: var(--gold);
  text-transform: none; line-height: 1;
  text-shadow: 0 0 30px rgba(255, 216, 138, 0.6);
}
.hero-date {
  font-family: var(--serif); font-style: italic; color: var(--muted);
  font-size: clamp(0.9rem, 2vw, 1.05rem); letter-spacing: 0.18em; margin-bottom: 55px;
}
.hero-btn {
  background: linear-gradient(135deg, var(--pink) 0%, var(--lavender) 100%);
  color: white; border: none; padding: 18px 40px; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: 0.08em;
  cursor: pointer; display: inline-flex; align-items: center; gap: 12px;
  box-shadow: 0 14px 50px rgba(255, 77, 125, 0.5);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: pulse 2.5s ease-in-out infinite;
}
.hero-btn:hover { transform: translateY(-3px) scale(1.04); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 14px 50px rgba(255, 77, 125, 0.5); }
  50% { box-shadow: 0 14px 70px rgba(255, 77, 125, 0.85); }
}
.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: var(--muted); font-size: 11px; letter-spacing: 0.25em;
  text-transform: uppercase; animation: bounceY 2s ease-in-out infinite;
}
@keyframes bounceY {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* QUOTE */
.quote-strip { padding: 100px 24px; text-align: center; position: relative; z-index: 2; }
.quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.3rem, 3.5vw, 2.2rem); color: var(--lavender);
  max-width: 800px; margin: 0 auto; line-height: 1.5; opacity: 0.85;
}

/* SECTIONS */
.timeline-section, .gallery-section {
  padding: 80px 24px; max-width: 1100px; margin: 0 auto;
  position: relative; z-index: 2;
}
.section-title {
  font-family: var(--serif); font-size: clamp(2rem, 5.5vw, 3.5rem);
  text-align: center; font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--pink-soft) 60%, var(--lavender));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; margin-bottom: 12px;
}
.section-sub {
  text-align: center; font-family: var(--serif); font-style: italic;
  color: var(--muted); margin-bottom: 70px; font-size: 16px;
}

/* TIMELINE */
.timeline { position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--pink) 10%, var(--lavender) 50%, var(--pink) 90%, transparent);
  transform: translateX(-50%);
}
.moment {
  position: relative; display: flex; align-items: flex-start;
  margin-bottom: 80px; opacity: 0; transform: translateY(50px);
  transition: opacity 1s, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.moment.visible { opacity: 1; transform: translateY(0); }
.moment:nth-child(odd) { flex-direction: row-reverse; }
.moment-card {
  width: 42%; background: var(--card); border: 1px solid var(--border);
  border-radius: 24px; padding: 22px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.4);
  transition: transform 0.4s, box-shadow 0.4s; position: relative;
}
.moment-card:hover { transform: translateY(-8px); box-shadow: 0 30px 90px rgba(255, 77, 125, 0.25); }
.moment-img {
  width: 100%; border-radius: 14px; margin-bottom: 16px;
  aspect-ratio: 4/3; object-fit: cover;
  background: linear-gradient(135deg, var(--bg-2), var(--bg)); display: block;
}
.moment-date {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  color: white; font-size: 10px; font-weight: 700;
  letter-spacing: 0.15em; padding: 5px 14px; border-radius: 999px;
  text-transform: uppercase; margin-bottom: 12px;
}
.moment-title { font-family: var(--serif); font-size: 24px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.moment-text { color: var(--muted); font-family: var(--serif-2); font-size: 16px; line-height: 1.75; }
.moment-dot {
  position: absolute; left: 50%; top: 40px; width: 18px; height: 18px;
  background: var(--pink); border-radius: 50%; transform: translateX(-50%);
  border: 3px solid var(--bg);
  box-shadow: 0 0 24px var(--pink), 0 0 50px var(--pink);
}

/* PARALLAX */
.parallax-band {
  height: 50vh; min-height: 340px; margin: 60px 0; position: relative;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255, 77, 125, 0.15), rgba(196, 165, 255, 0.15)),
              radial-gradient(circle at 30% 30%, rgba(255, 216, 138, 0.15), transparent 60%),
              var(--bg-2);
}
.parallax-band::before {
  content: ''; position: absolute; inset: -50px;
  background: radial-gradient(circle at 20% 40%, var(--pink-soft) 0, transparent 40%),
              radial-gradient(circle at 80% 60%, var(--lavender) 0, transparent 40%);
  opacity: 0.25; filter: blur(60px); animation: float 20s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 30px); }
}
.parallax-inner { position: relative; z-index: 2; text-align: center; }
.parallax-text {
  font-family: var(--script-2); font-size: clamp(3rem, 12vw, 8rem);
  color: var(--cream); text-shadow: 0 0 60px rgba(255, 77, 125, 0.6); line-height: 1;
}

/* GALLERY */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.gallery-item {
  position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden;
  cursor: pointer; transition: transform 0.4s;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.gallery-item:hover { transform: scale(1.04) rotate(-1deg); z-index: 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.gallery-item:hover img { transform: scale(1.12); }

/* LETTER */
.letter-section { padding: 100px 24px; display: flex; justify-content: center; position: relative; z-index: 2; }
.letter { max-width: 720px; width: 100%; }
.letter-paper {
  background: linear-gradient(135deg, rgba(255, 240, 245, 0.06), rgba(196, 165, 255, 0.06)), var(--card);
  border: 1px solid var(--border); border-radius: 28px;
  padding: clamp(36px, 7vw, 70px);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 90px rgba(0,0,0,0.5); position: relative;
}
.letter-wax {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle, var(--pink) 0%, #8a1039 100%);
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: 0 8px 24px rgba(255, 77, 125, 0.5), inset 0 -3px 8px rgba(0,0,0,0.3);
  border: 3px solid rgba(255,255,255,0.3);
}
.letter-greeting {
  font-family: var(--script); font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  color: var(--pink-soft); margin-bottom: 26px; margin-top: 10px;
}
.letter-body p {
  font-family: var(--serif-2); font-size: clamp(1.05rem, 2.3vw, 1.25rem);
  line-height: 1.95; color: var(--text); margin-bottom: 22px; opacity: 0.92;
}
.letter-signature {
  font-family: var(--script-2); font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--gold); text-align: right; margin-top: 40px; line-height: 1.4;
  text-shadow: 0 0 30px rgba(255, 216, 138, 0.4);
}

/* COUNTER */
.counter-section {
  padding: 110px 24px; text-align: center;
  background: radial-gradient(ellipse at center, rgba(255, 77, 125, 0.10) 0%, transparent 70%);
  position: relative; z-index: 2;
}
.counter-label {
  font-family: var(--serif); font-style: italic; color: var(--muted);
  font-size: 16px; letter-spacing: 0.15em; margin-bottom: 45px;
}
.counter { display: flex; justify-content: center; gap: clamp(20px, 5vw, 70px); flex-wrap: wrap; }
.counter-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.counter-num {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 5.5rem); line-height: 1;
  background: linear-gradient(135deg, var(--pink-soft), var(--lavender) 70%, var(--gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; font-variant-numeric: tabular-nums;
  filter: drop-shadow(0 0 30px rgba(255, 77, 125, 0.4));
}
.counter-lbl {
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}

/* FINAL */
.final-section {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
  padding: 100px 24px; position: relative; z-index: 2;
}
.final-content { text-align: center; max-width: 620px; }
.final-heart {
  font-size: 100px; color: var(--pink);
  animation: heartbeat 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 50px var(--pink)); margin-bottom: 24px;
}
.final-title { font-family: var(--serif); font-size: clamp(1.7rem, 4.5vw, 2.8rem); font-weight: 700; margin-bottom: 18px; }
.final-text {
  color: var(--muted); font-family: var(--serif-2); font-style: italic;
  font-size: 17px; line-height: 1.85; margin-bottom: 38px;
}
.final-btn {
  background: linear-gradient(135deg, var(--pink) 0%, var(--lavender) 100%);
  color: white; border: none; padding: 18px 40px; border-radius: 999px;
  font-family: inherit; font-weight: 600; font-size: 15px; letter-spacing: 0.08em;
  cursor: pointer; box-shadow: 0 14px 50px rgba(255, 77, 125, 0.5);
  transition: transform 0.3s, box-shadow 0.3s;
}
.final-btn:hover { transform: translateY(-3px) scale(1.04); }

/* FOOTER */
.site-footer {
  padding: 40px 24px; text-align: center; color: var(--muted); font-size: 13px;
  border-top: 1px solid var(--border); position: relative; z-index: 2;
}
.site-footer .heart { color: var(--pink); animation: heartbeat 1.5s infinite; display: inline-block; }

/* MUSIC */
.music-player {
  position: fixed; top: 20px; right: 20px; z-index: 400;
  background: rgba(20, 8, 31, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 18px 8px 8px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5); transition: transform 0.3s;
}
.music-player:hover { transform: scale(1.03); }
.music-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  color: white; border: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 6px 20px rgba(255, 77, 125, 0.4);
}
.music-info { display: flex; flex-direction: column; gap: 2px; }
.music-title {
  font-size: 12px; font-weight: 600; color: var(--text);
  white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis;
}
.music-bars { display: flex; gap: 2px; height: 10px; align-items: flex-end; }
.music-bars span {
  width: 2px; height: 4px; background: var(--pink-soft);
  border-radius: 2px; opacity: 0.3;
}
.music-player.playing .music-bars span { opacity: 1; animation: musicBar 1s ease-in-out infinite; }
.music-bars span:nth-child(2) { animation-delay: 0.15s; }
.music-bars span:nth-child(3) { animation-delay: 0.30s; }
.music-bars span:nth-child(4) { animation-delay: 0.45s; }
@keyframes musicBar {
  0%, 100% { height: 4px; }
  50% { height: 12px; }
}

/* LIGHTBOX */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.95);
  z-index: 1000; display: none; align-items: center; justify-content: center;
  padding: 30px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 16px; box-shadow: 0 40px 120px rgba(0,0,0,0.9); }

/* HEART RAIN */
.heart-rain { position: fixed; inset: 0; pointer-events: none; z-index: 999; overflow: hidden; }
.heart-drop { position: absolute; top: -40px; font-size: 24px; animation: heartFall linear forwards; }
@keyframes heartFall {
  to { transform: translateY(105vh) rotate(360deg); opacity: 0; }
}

/* TOAST */
.toast {
  position: fixed; bottom: 90px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20, 8, 31, 0.95);
  border: 1px solid var(--border); color: var(--text);
  padding: 12px 24px; border-radius: 999px;
  font-size: 13px; font-weight: 500; z-index: 700;
  opacity: 0; pointer-events: none; transition: all 0.3s;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }


/* RESPONSIVE */
@media (max-width: 720px) {
  .timeline::before { left: 20px; }
  .moment, .moment:nth-child(odd) { flex-direction: row; padding-left: 50px; }
  .moment-card { width: 100%; }
  .moment-dot { left: 20px; top: 30px; }
  .music-player { padding: 6px 12px 6px 6px; top: 14px; right: 14px; }
  .music-title { display: none; }
  .edit-toolbar { padding: 10px 12px; }
  .et-btn { padding: 6px 10px; font-size: 11px; }
}
/* ═══════ MILESTONE COUNTDOWN ═══════ */
.milestone-section {
  margin-top: 60px;
  padding: 0 24px;
  text-align: center;
}

.milestone-label {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

.milestones {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.milestone-card {
  background: linear-gradient(135deg, rgba(255, 77, 125, 0.10), rgba(196, 165, 255, 0.10));
  border: 1px solid rgba(255, 77, 125, 0.25);
  border-radius: 20px;
  padding: 24px 32px;
  min-width: 220px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.milestone-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 216, 138, 0.15), transparent 60%);
  pointer-events: none;
}
.milestone-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(255, 77, 125, 0.25);
}

.milestone-emoji {
  font-size: 32px;
  margin-bottom: 8px;
  display: block;
}

.milestone-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.milestone-date {
  font-family: var(--serif-2);
  font-style: italic;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.milestone-num {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--pink-soft), var(--lavender) 70%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
  filter: drop-shadow(0 0 24px rgba(255, 77, 125, 0.4));
}

.milestone-unit {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.milestone-today .milestone-num {
  animation: milestonePulse 1.4s ease-in-out infinite;
}
@keyframes milestonePulse {
  0%, 100% { filter: drop-shadow(0 0 24px rgba(255, 77, 125, 0.4)); }
  50%      { filter: drop-shadow(0 0 50px rgba(255, 77, 125, 0.95)); }
}

.milestone-past .milestone-num {
  opacity: 0.55;
}

/* Remove button — appears on hover in edit mode */
.milestone-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(233, 30, 99, 0.85);
  color: white;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, background 0.2s;
}
.milestone-remove:hover {
  background: #e91e63;
  transform: scale(1.1);
}
body.edit-mode .milestone-card:hover .milestone-remove {
  display: flex;
}

/* Editable fields inside milestone cards */
body.edit-mode .milestone-card .editable {
  outline: 1.5px dashed var(--pink);
  outline-offset: 4px;
  border-radius: 6px;
  cursor: text;
  transition: outline 0.2s, background 0.2s;
  padding: 2px 4px;
  display: inline-block;
}
body.edit-mode .milestone-card .editable:hover {
  background: rgba(255, 77, 125, 0.10);
  outline-color: var(--gold);
}
body.edit-mode .milestone-card .editable:focus {
  outline: 2px solid var(--gold);
  background: rgba(255, 77, 125, 0.15);
}

img, .moment-img, .gallery-item img {
  user-select: none;
  -webkit-user-drag: none;
}
