/* ============================================================================
   ULTRA-ROMANTIC PINK 6-MONTH ANNIVERSARY FLIPBOOK STYLES
   ============================================================================ */

:root {
  --pink-50: #fff5f8;
  --pink-100: #ffe6ef;
  --pink-200: #ffcadd;
  --pink-300: #ffa3c4;
  --pink-400: #ff73a6;
  --pink-500: #f64686;
  --pink-600: #d92668;
  --pink-700: #b31650;
  --pink-800: #87123e;
  --rose-gold: #e6a87c;
  --gold-light: #fff3c4;
  --cream-paper: #fffaf7;
  --text-dark: #4a152c;
  --text-muted: #8c4665;
  --glass-bg: rgba(255, 245, 250, 0.82);
  --glass-border: rgba(255, 163, 196, 0.55);
  --shadow-soft: 0 18px 45px rgba(217, 38, 104, 0.16);
  --shadow-book: 0 28px 70px rgba(135, 18, 62, 0.25), 0 6px 22px rgba(246, 70, 134, 0.18);
  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Dancing Script', cursive;
  --font-sans: 'Quicksand', 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: radial-gradient(circle at 20% 20%, #fff0f6 0%, #ffd6e7 42%, #ffb3d1 80%, #ff99c2 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  user-select: none;
}

/* Custom Romantic Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #ffe6ef;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff73a6, #d92668);
  border-radius: 99px;
}

/* Ambient Particle Canvas & Floating Decor */
#ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
}

.floating-bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.bg-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(65px);
  opacity: 0.55;
  animation: orbFloat 14s ease-in-out infinite alternate;
}

.bg-glow-orb.orb-1 {
  width: 420px;
  height: 420px;
  background: #ff85b3;
  top: -90px;
  left: -80px;
}

.bg-glow-orb.orb-2 {
  width: 480px;
  height: 480px;
  background: #ffb3d9;
  bottom: -120px;
  right: -90px;
  animation-delay: -5s;
}

.bg-glow-orb.orb-3 {
  width: 320px;
  height: 320px;
  background: #ffe0b2;
  top: 38%;
  left: 44%;
  animation-delay: -9s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(35px, -30px) scale(1.1); }
}

/* Cursor Heart Trail */
.cursor-heart {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 16px;
  animation: cursorHeartFly 1s ease-out forwards;
}

@keyframes cursorHeartFly {
  0% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0.7) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -140%) scale(1.35) rotate(22deg);
  }
}

/* ============================================================================
   LOGIN GATEWAY SCREEN (MÀN HÌNH ĐĂNG NHẬP LÃNG MẠN)
   ============================================================================ */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 35%, rgba(255, 240, 247, 0.92), rgba(255, 179, 209, 0.95));
  backdrop-filter: blur(16px);
  transition: opacity 0.65s ease, visibility 0.65s ease, transform 0.65s ease;
}

.login-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.06);
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 145, 188, 0.7);
  border-radius: 34px;
  padding: 36px 34px 30px;
  box-shadow: 0 28px 65px rgba(217, 38, 104, 0.25), inset 0 0 0 6px rgba(255, 228, 239, 0.7);
  text-align: center;
  overflow: hidden;
  animation: cardAppear 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cardAppear {
  from { opacity: 0; transform: translateY(28px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-corner-ribbon {
  position: absolute;
  top: 16px;
  right: -34px;
  background: linear-gradient(135deg, #ff73a6, #d92668);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 40px;
  transform: rotate(38deg);
  box-shadow: 0 4px 12px rgba(217, 38, 104, 0.3);
  letter-spacing: 0.5px;
}

.login-emblem {
  width: 86px;
  height: 86px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe6ef, #ffb8d2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  box-shadow: 0 10px 25px rgba(246, 70, 134, 0.28), inset 0 2px 6px #fff;
  animation: emblemPulse 2.4s ease-in-out infinite;
}

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

.login-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #ffe3ee, #ffd0e3);
  color: var(--pink-700);
  padding: 5px 15px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 10px;
  border: 1px solid rgba(246, 70, 134, 0.3);
}

.login-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--pink-700);
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.5;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--pink-700);
  margin-bottom: 6px;
  padding-left: 4px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper .input-icon {
  position: absolute;
  left: 15px;
  font-size: 18px;
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 13px 44px 13px 44px;
  border-radius: 16px;
  border: 2px solid #ffcadd;
  background: #fff9fb;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.25s ease;
  outline: none;
}

.input-wrapper input:focus {
  border-color: var(--pink-500);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(246, 70, 134, 0.15);
}

.toggle-pass-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 17px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.toggle-pass-btn:hover {
  opacity: 1;
}

.login-error {
  background: #ffe3ec;
  border: 1px solid #ff73a6;
  color: #b31650;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 12px;
  text-align: center;
  display: none;
}
.login-error.show {
  display: block;
  animation: shakeError 0.4s ease;
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.btn-login-submit {
  margin-top: 6px;
  padding: 14px 24px;
  border-radius: 99px;
  border: none;
  background: linear-gradient(135deg, #ff6fa5 0%, #e0246a 55%, #b81450 100%);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(224, 36, 106, 0.36);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(224, 36, 106, 0.48);
}

.login-quick-fill {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed #ffcadd;
}

.login-quick-title {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 600;
}

.quick-role-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-quick-role {
  padding: 9px 10px;
  border-radius: 14px;
  border: 1.5px solid #ffcadd;
  background: #fff5f9;
  color: var(--pink-700);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.btn-quick-role span.role-sub {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.btn-quick-role:hover {
  background: #ffe0ed;
  border-color: var(--pink-400);
  transform: translateY(-2px);
}

/* ============================================================================
   TOP NAVIGATION & ROMANTIC HEADER BAR
   ============================================================================ */
.app-shell {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 50px;
}

.top-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 26px;
  background: rgba(255, 245, 250, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1.5px solid rgba(255, 163, 196, 0.5);
  box-shadow: 0 6px 24px rgba(217, 38, 104, 0.08);
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-heart {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff73a6, #d92668);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 6px 15px rgba(217, 38, 104, 0.3);
}

.brand-titles h1 {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--pink-700);
  line-height: 1.15;
}

.brand-titles p {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Couple Days Counter Pill */
.love-counter-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, #fff0f6, #ffd9e8, #fff0f6);
  border: 1.5px solid #ff9ec2;
  padding: 7px 18px;
  border-radius: 99px;
  box-shadow: 0 4px 14px rgba(246, 70, 134, 0.14);
}

.counter-names {
  font-weight: 700;
  font-size: 14px;
  color: var(--pink-700);
}

.counter-heart-beat {
  display: inline-block;
  font-size: 17px;
  animation: heartBeatFast 1.1s infinite;
}

@keyframes heartBeatFast {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.28); }
  60% { transform: scale(0.95); }
}

.counter-days-badge {
  background: linear-gradient(135deg, #ff5c97, #d92668);
  color: #fff;
  padding: 3px 12px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 700;
}

/* User Role & Action Controls in Navbar */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 700;
  background: #ffe0ed;
  color: var(--pink-700);
  border: 1px solid #ff9ec2;
}

.user-role-pill.admin-mode {
  background: linear-gradient(135deg, #fff0c2, #ffd6e7);
  color: #9c1448;
  border-color: #f686ae;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 99px;
  border: 1.5px solid #ffb3cf;
  background: #ffffff;
  color: var(--pink-700);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 3px 10px rgba(217, 38, 104, 0.08);
}

.nav-btn:hover {
  background: #ffeef5;
  border-color: var(--pink-500);
  transform: translateY(-1px);
}

.nav-btn.primary-pink {
  background: linear-gradient(135deg, #ff6fa5, #d92668);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(217, 38, 104, 0.28);
}

.nav-btn.primary-pink:hover {
  box-shadow: 0 8px 22px rgba(217, 38, 104, 0.4);
  filter: brightness(1.04);
}

.nav-btn.gold-accent {
  background: linear-gradient(135deg, #ffdf85, #ff9ebb);
  color: #6e1033;
  border-color: #f5b971;
}

/* ============================================================================
   HERO / QUICK EFFECT & TRANSITION SELECTOR RIBBON
   ============================================================================ */
.experience-toolbar {
  max-width: 1180px;
  width: 95%;
  margin: 16px auto 8px;
  padding: 12px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 163, 196, 0.6);
  box-shadow: 0 10px 30px rgba(217, 38, 104, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--pink-700);
  display: flex;
  align-items: center;
  gap: 5px;
}

.romantic-select {
  padding: 7px 14px;
  border-radius: 12px;
  border: 1.5px solid #ffadc9;
  background: #fff7fa;
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
}

.romantic-select:hover, .romantic-select:focus {
  border-color: var(--pink-500);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(246, 70, 134, 0.14);
}

/* ============================================================================
   3D FLIPBOOK STAGE (SÂN KHẤU LẬT SÁCH KỶ NIỆM 180 NGÀY)
   ============================================================================ */
.flipbook-stage-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 20px 24px;
  perspective: 2200px;
}

.book-container {
  position: relative;
  width: 100%;
  max-width: 1080px;
  min-height: 600px;
  background: linear-gradient(135deg, #ff85b3 0%, #d92668 50%, #9e1446 100%);
  border-radius: 30px;
  padding: 16px;
  box-shadow: var(--shadow-book), 0 0 0 4px rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: stretch;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

/* Book Gold Corner Ornaments */
.book-corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 3px solid #ffe599;
  z-index: 15;
  pointer-events: none;
  opacity: 0.85;
}
.book-corner.tl { top: 8px; left: 8px; border-right: none; border-bottom: none; border-top-left-radius: 18px; }
.book-corner.tr { top: 8px; right: 8px; border-left: none; border-bottom: none; border-top-right-radius: 18px; }
.book-corner.bl { bottom: 8px; left: 8px; border-right: none; border-top: none; border-bottom-left-radius: 18px; }
.book-corner.br { bottom: 8px; right: 8px; border-left: none; border-top: none; border-bottom-right-radius: 18px; }

/* Open Book Two-Page Spread */
.book-spread {
  position: relative;
  width: 100%;
  min-height: 568px;
  background: var(--cream-paper);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  box-shadow: inset 0 0 35px rgba(217, 38, 104, 0.08);
  transform-style: preserve-3d;
}

/* Center Book Spine & Ribbon Bookmark */
.book-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 38px;
  transform: translateX(-50%);
  background: linear-gradient(90deg,
    rgba(180, 30, 85, 0.0) 0%,
    rgba(180, 30, 85, 0.12) 35%,
    rgba(120, 15, 55, 0.24) 50%,
    rgba(180, 30, 85, 0.12) 65%,
    rgba(180, 30, 85, 0.0) 100%
  );
  z-index: 12;
  pointer-events: none;
}

.book-ribbon-bookmark {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 75px;
  background: linear-gradient(180deg, #e01e5a, #ff5c97);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  z-index: 16;
  box-shadow: 0 6px 12px rgba(180, 20, 75, 0.35);
}

/* Left Page (Visual / Photo Showcase) & Right Page (Story & Wishes) */
.book-page {
  position: relative;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image:
    radial-gradient(#ffccd5 0.75px, transparent 0.75px),
    linear-gradient(180deg, #fffcfd 0%, #fff4f8 100%);
  background-size: 24px 24px, 100% 100%;
}

.book-page.page-left {
  border-right: 1px solid rgba(246, 70, 134, 0.18);
  align-items: center;
  justify-content: center;
}

.book-page.page-right {
  padding-left: 38px;
}

/* Cover View Styling (Trang Bìa Mở Đầu) */
.book-spread.is-cover-mode {
  grid-template-columns: 1fr;
  background: radial-gradient(circle at 50% 35%, #fff5f9 0%, #ffd6e7 55%, #ffb3cf 100%);
}
.book-spread.is-cover-mode .book-spine {
  display: none;
}

.cover-hero-wrap {
  width: 100%;
  min-height: 568px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.cover-ornament-ring {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  padding: 10px;
  background: linear-gradient(135deg, #ff73a6, #ffe082, #d92668);
  box-shadow: 0 18px 45px rgba(217, 38, 104, 0.3);
  margin-bottom: 22px;
  animation: floatSlow 4.5s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.cover-ornament-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #ffffff;
  background: #fff0f5;
}

.cover-floating-crown {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 36px;
  filter: drop-shadow(0 4px 8px rgba(217, 38, 104, 0.3));
}

.cover-badge-top {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.88);
  border: 1.5px solid #ff85b3;
  color: var(--pink-700);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(217, 38, 104, 0.12);
}

.cover-main-title {
  font-family: var(--font-serif);
  font-size: 40px;
  color: var(--pink-700);
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.9);
}

.cover-couple-script {
  font-family: var(--font-script);
  font-size: 34px;
  color: #d92668;
  margin-bottom: 12px;
}

.cover-subtitle {
  max-width: 560px;
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 24px;
}

.btn-open-book {
  padding: 14px 34px;
  border-radius: 99px;
  border: none;
  background: linear-gradient(135deg, #ff5c97, #d92668);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(217, 38, 104, 0.38);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.btn-open-book:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 34px rgba(217, 38, 104, 0.5);
}

/* ============================================================================
   PHOTO FRAMES ON LEFT PAGE (CÁC KIỂU KHUNG ẢNH KỶ NIỆM)
   ============================================================================ */
.photo-stage-card {
  position: relative;
  width: 100%;
  max-width: 390px;
  transition: all 0.4s ease;
}

.photo-aspect-box {
  position: relative;
  width: 100%;
  height: 370px;
  overflow: hidden;
  background: #ffeef5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-aspect-box img.main-memory-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.photo-stage-card:hover img.main-memory-img {
  transform: scale(1.04);
}

/* Dual Photo Layout inside Page */
.photo-aspect-box.duo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
}
.photo-aspect-box.duo-layout img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Frame Style 1: Polaroid with Pink Washi Tape */
.frame-polaroid {
  background: #ffffff;
  padding: 16px 16px 52px 16px;
  border-radius: 10px;
  box-shadow: 0 16px 38px rgba(135, 18, 62, 0.18);
  transform: rotate(-1.5deg);
}
.frame-polaroid::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 115px;
  height: 28px;
  background: rgba(255, 133, 179, 0.65);
  border-left: 2px dashed rgba(255,255,255,0.8);
  border-right: 2px dashed rgba(255,255,255,0.8);
  z-index: 5;
  box-shadow: 0 2px 6px rgba(217, 38, 104, 0.15);
}

/* Frame Style 2: Royal Rose Gold */
.frame-royalGold {
  background: linear-gradient(135deg, #fff6d6, #ffc2d4, #ffe49e);
  padding: 14px;
  border-radius: 22px;
  border: 3px solid #f2b705;
  box-shadow: 0 18px 40px rgba(217, 38, 104, 0.22), inset 0 0 15px rgba(255, 255, 255, 0.9);
}
.frame-royalGold .photo-aspect-box {
  border-radius: 14px;
  border: 2px solid #fff;
}

/* Frame Style 3: Sweet Lace Princess */
.frame-sweetLace {
  background: #fff0f6;
  padding: 18px;
  border-radius: 28px;
  border: 4px dotted #ff6fa5;
  box-shadow: 0 14px 35px rgba(246, 70, 134, 0.2), 0 0 0 8px #ffffff, 0 0 0 11px #ffc2d9;
}
.frame-sweetLace .photo-aspect-box {
  border-radius: 18px;
}

/* Frame Style 4: Vintage Love Postage Stamp */
.frame-stamp {
  background: #ffffff;
  padding: 18px;
  border: 6px dashed #ff85b3;
  border-radius: 8px;
  box-shadow: 0 15px 34px rgba(180, 20, 75, 0.18);
}

/* Frame Style 5: Soft Glowing Heart Aura */
.frame-heartSoft {
  background: linear-gradient(180deg, #ffffff, #ffe6ef);
  padding: 14px;
  border-radius: 36px;
  border: 2.5px solid #ff85b3;
  box-shadow: 0 0 32px rgba(255, 105, 165, 0.45);
}
.frame-heartSoft .photo-aspect-box {
  border-radius: 26px;
}

/* Frame Style 6: 180 Days Film Strip */
.frame-filmCard {
  background: #3b0d22;
  padding: 24px 16px;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(80, 10, 40, 0.35);
  border-top: 8px dashed #ffcadd;
  border-bottom: 8px dashed #ffcadd;
}
.frame-filmCard .photo-caption-bar {
  color: #ffd6e7 !important;
}

.photo-caption-bar {
  margin-top: 12px;
  text-align: center;
  font-family: var(--font-script);
  font-size: 22px;
  color: var(--pink-700);
}

/* Floating Stickers on Photo */
.photo-stickers-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}

.sticker-badge {
  position: absolute;
  font-size: 32px;
  filter: drop-shadow(0 4px 8px rgba(180, 20, 75, 0.25));
  animation: stickerBob 3s ease-in-out infinite alternate;
}
.sticker-badge.st-0 { top: -14px; left: -12px; transform: rotate(-15deg); }
.sticker-badge.st-1 { top: -14px; right: -12px; transform: rotate(16deg); animation-delay: -1s; }
.sticker-badge.st-2 { bottom: 32px; right: -14px; transform: rotate(-10deg); animation-delay: -2s; }
.sticker-badge.st-3 { bottom: 32px; left: -14px; transform: rotate(12deg); animation-delay: -1.5s; }

@keyframes stickerBob {
  0% { transform: translateY(0) scale(1) rotate(-8deg); }
  100% { transform: translateY(-7px) scale(1.12) rotate(8deg); }
}

/* ============================================================================
   RIGHT PAGE: STORY, CHAPTER, AND DIVERSE WISH ANIMATIONS
   ============================================================================ */
.story-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.chapter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 99px;
  background: linear-gradient(90deg, #ffe0ed, #ffcadd);
  color: var(--pink-700);
  font-size: 12px;
  font-weight: 700;
}

.date-pill {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 700;
}

.memory-page-title {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--pink-700);
  line-height: 1.25;
  margin-bottom: 16px;
}

.wish-card-box {
  position: relative;
  flex: 1;
  background: rgba(255, 255, 255, 0.86);
  border: 2px solid #ffcadd;
  border-radius: 22px;
  padding: 24px 24px;
  box-shadow: 0 10px 26px rgba(217, 38, 104, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.wish-quote-mark {
  position: absolute;
  top: 8px;
  left: 14px;
  font-family: var(--font-serif);
  font-size: 56px;
  color: #ffc2d9;
  line-height: 1;
  pointer-events: none;
}

.wish-text-content {
  position: relative;
  z-index: 2;
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--text-dark);
  font-weight: 600;
  white-space: pre-line;
}

/* 6 DISTINCT WISH TEXT ANIMATION EFFECTS */

/* 1. Handwritten Ink Typewriter */
.wish-effect-typewriter {
  font-family: var(--font-script);
  font-size: 24px !important;
  color: #b81450;
  border-right: 2px solid #ff5c97;
  animation: blinkCaret 0.85s step-end infinite;
}
@keyframes blinkCaret {
  50% { border-color: transparent; }
}

/* 2. Sparkling Gold Glow */
.wish-effect-sparkleGlow {
  background: linear-gradient(90deg, #9e1446, #e01e5a, #d48806, #e01e5a, #9e1446);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 4s linear infinite;
  font-weight: 700;
}
@keyframes shimmerText {
  to { background-position: 250% center; }
}

/* 3. Floating Heart Words */
.wish-effect-floatingHearts {
  animation: floatWordsUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  text-shadow: 0 4px 14px rgba(246, 70, 134, 0.25);
}
@keyframes floatWordsUp {
  0% { opacity: 0; transform: translateY(24px) scale(0.94); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* 4. Neon Love Pulse */
.wish-effect-neonPulse {
  color: #c9184a;
  text-shadow: 0 0 8px rgba(255, 115, 166, 0.6), 0 0 18px rgba(255, 180, 210, 0.8);
  animation: neonLoveBeat 2.2s ease-in-out infinite;
}
@keyframes neonLoveBeat {
  0%, 100% { text-shadow: 0 0 6px rgba(255, 115, 166, 0.4); transform: scale(1); }
  50% { text-shadow: 0 0 16px rgba(246, 70, 134, 0.85), 0 0 28px rgba(255, 163, 196, 0.9); transform: scale(1.015); }
}

/* 5. Soft Silk Wave */
.wish-effect-silkWave {
  animation: silkWaveIn 1s ease-out forwards;
  font-style: italic;
}
@keyframes silkWaveIn {
  0% { opacity: 0; transform: skewX(-8deg) translateX(25px); filter: blur(6px); }
  100% { opacity: 1; transform: skewX(0deg) translateX(0); filter: blur(0); }
}

/* 6. 3D Royal Pop */
.wish-effect-pop3d {
  font-weight: 700;
  color: #a31246;
  text-shadow: 1px 1px 0px #ffc2d9, 2px 2px 0px #ff9ec2, 4px 6px 12px rgba(217, 38, 104, 0.22);
  animation: pop3dIn 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop3dIn {
  0% { opacity: 0; transform: scale(0.8) rotateX(25deg); }
  100% { opacity: 1; transform: scale(1) rotateX(0deg); }
}

/* Page Footer Info & Admin Quick Edit Bar */
.page-footer-bar {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.page-number-indicator {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.admin-page-quick-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-mini-action {
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid #ff9ec2;
  background: #fff0f6;
  color: var(--pink-700);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-mini-action:hover {
  background: #ffd6e7;
}
.btn-mini-action.danger {
  color: #c9184a;
  border-color: #ff8fa3;
}

/* ============================================================================
   7 PHOTO & PAGE TRANSITION ANIMATIONS (HIỆU ỨNG CHUYỂN CẢNH ĐA DẠNG)
   ============================================================================ */

/* 1. 3D Flipbook Turn */
.trans-flip3d {
  animation: pageFlip3D 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: center center;
}
@keyframes pageFlip3D {
  0% { opacity: 0.3; transform: perspective(1800px) rotateY(-65deg) scale(0.96); }
  100% { opacity: 1; transform: perspective(1800px) rotateY(0deg) scale(1); }
}

/* 2. Rose Petal Breeze */
.trans-petals {
  animation: petalDissolve 0.85s ease-out;
}
@keyframes petalDissolve {
  0% { opacity: 0; filter: blur(14px) hue-rotate(-20deg) brightness(1.25); transform: scale(1.06); }
  100% { opacity: 1; filter: blur(0) hue-rotate(0deg) brightness(1); transform: scale(1); }
}

/* 3. Polaroid Scatter & Snap */
.trans-polaroid {
  animation: polaroidDrop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes polaroidDrop {
  0% { opacity: 0; transform: translateY(-55px) rotate(-12deg) scale(0.82); }
  100% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
}

/* 4. Heart Portal Reveal */
.trans-heartPortal {
  animation: heartPortalExpand 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes heartPortalExpand {
  0% { clip-path: circle(8% at 50% 50%); opacity: 0.4; transform: scale(0.92); }
  100% { clip-path: circle(120% at 50% 50%); opacity: 1; transform: scale(1); }
}

/* 5. Dreamy Film Reel */
.trans-filmReel {
  animation: filmReelSlide 0.75s cubic-bezier(0.25, 1, 0.5, 1);
}
@keyframes filmReelSlide {
  0% { opacity: 0; transform: translateX(80px) skewX(-4deg); filter: sepia(0.45) brightness(1.15); }
  100% { opacity: 1; transform: translateX(0) skewX(0deg); filter: sepia(0) brightness(1); }
}

/* 6. Starlight Origami Fold */
.trans-origami {
  animation: origamiUnfold 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top center;
}
@keyframes origamiUnfold {
  0% { opacity: 0; transform: perspective(1500px) rotateX(-55deg) scaleY(0.75); }
  100% { opacity: 1; transform: perspective(1500px) rotateX(0deg) scaleY(1); }
}

/* 7. 3D Carousel Deck */
.trans-carousel3d {
  animation: carouselDeckSpin 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes carouselDeckSpin {
  0% { opacity: 0; transform: perspective(1600px) translateZ(-260px) rotateY(38deg) translateX(60px); }
  100% { opacity: 1; transform: perspective(1600px) translateZ(0) rotateY(0deg) translateX(0); }
}

/* ============================================================================
   FLIPBOOK NAVIGATION CONTROLS & THUMBNAIL TIMELINE
   ============================================================================ */
.flipbook-controls-bar {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-page-turn {
  padding: 11px 24px;
  border-radius: 99px;
  border: 2px solid #ff9ec2;
  background: rgba(255, 255, 255, 0.9);
  color: var(--pink-700);
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(217, 38, 104, 0.14);
  transition: all 0.22s ease;
}

.btn-page-turn:hover:not(:disabled) {
  background: linear-gradient(135deg, #ff6fa5, #d92668);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

.btn-page-turn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-dots-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.75);
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid #ffb3cf;
}

.page-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid #ff9ec2;
  background: #fff0f6;
  color: var(--pink-700);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.page-dot.active {
  background: linear-gradient(135deg, #ff5c97, #d92668);
  color: #fff;
  border-color: transparent;
  transform: scale(1.15);
  box-shadow: 0 4px 10px rgba(217, 38, 104, 0.3);
}

/* ============================================================================
   FLOATING VINYL MUSIC PLAYER & LOVER REACTION BAR
   ============================================================================ */
.floating-music-widget {
  position: fixed;
  bottom: 20px;
  left: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 245, 250, 0.92);
  backdrop-filter: blur(14px);
  border: 2px solid #ff9ec2;
  padding: 8px 16px 8px 10px;
  border-radius: 99px;
  box-shadow: 0 12px 30px rgba(217, 38, 104, 0.22);
}

.vinyl-disc {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff73a6 0%, #ff73a6 24%, #2b0918 26%, #4a122b 60%, #2b0918 100%);
  border: 2px solid #ffcadd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.vinyl-disc.playing {
  animation: spinVinyl 4.5s linear infinite;
}

@keyframes spinVinyl {
  100% { transform: rotate(360deg); }
}

.music-meta {
  display: flex;
  flex-direction: column;
  max-width: 195px;
}

.music-status-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--pink-600);
  text-transform: uppercase;
}

.music-track-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid #ff9ec2;
  background: #fff;
  color: var(--pink-700);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.music-btn-icon:hover {
  background: #ffe0ed;
}

/* Floating Heart Shower Button (Right Corner) */
.floating-love-reaction {
  position: fixed;
  bottom: 20px;
  right: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-send-hearts {
  padding: 11px 20px;
  border-radius: 99px;
  border: 2px solid #fff;
  background: linear-gradient(135deg, #ff5c97, #d92668);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(217, 38, 104, 0.38);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s;
}

.btn-send-hearts:hover {
  transform: scale(1.06);
}

.btn-send-hearts:active {
  transform: scale(0.94);
}

/* ============================================================================
   MODALS: ADMIN STUDIO, WISH LIBRARY, PHOTO COLLAGE MAKER, FINAL LOVE LETTER
   ============================================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(74, 21, 44, 0.52);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  background: #fff9fb;
  border: 2.5px solid #ff9ec2;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(74, 21, 44, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s ease;
}

.modal-backdrop.open .modal-window {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 18px 26px;
  background: linear-gradient(90deg, #ffe3ee, #ffcadd);
  border-bottom: 1.5px solid #ffadc9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--pink-700);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-modal {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #ff85b3;
  background: #fff;
  color: var(--pink-700);
  font-size: 18px;
  cursor: pointer;
}

.modal-body {
  padding: 24px 26px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-footer {
  padding: 16px 26px;
  background: #fff0f6;
  border-top: 1.5px solid #ffcadd;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* Form Elements Inside Admin Modals */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--pink-700);
}

.form-field input[type="text"],
.form-field input[type="date"],
.form-field select,
.form-field textarea {
  padding: 11px 14px;
  border-radius: 14px;
  border: 1.5px solid #ffadc9;
  background: #ffffff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  outline: none;
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.55;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--pink-500);
  box-shadow: 0 0 0 3px rgba(246, 70, 134, 0.15);
}

/* Photo Upload Dropzone */
.upload-box-zone {
  border: 2px dashed #ff73a6;
  border-radius: 18px;
  background: #fff0f6;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.upload-box-zone:hover {
  background: #ffe3ee;
  border-color: var(--pink-600);
}

.upload-preview-thumb {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(217, 38, 104, 0.2);
}

/* Sticker Picker Grid */
.sticker-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #fff;
  padding: 12px;
  border-radius: 14px;
  border: 1.5px solid #ffcadd;
}

.sticker-option-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  background: #fff5f9;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.15s;
}

.sticker-option-btn.selected {
  background: #ffd0e3;
  border-color: var(--pink-500);
  transform: scale(1.12);
}

/* Wish Template Cards inside Library */
.wish-template-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.wish-template-item {
  background: #ffffff;
  border: 1.5px solid #ffcadd;
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.wish-template-item:hover {
  border-color: var(--pink-500);
  background: #fff2f7;
}

.wish-template-item .wt-head {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--pink-700);
  margin-bottom: 4px;
}

.wish-template-item .wt-body {
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.45;
}

/* Couple Photo Card Maker (Ghép Ảnh Kỷ Niệm 6 Tháng) */
.collage-studio-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.collage-canvas-wrap {
  background: #ffe6ef;
  padding: 14px;
  border-radius: 20px;
  border: 2px solid #ff9ec2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#couple-collage-canvas {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(180, 20, 75, 0.22);
  background: #fff;
}

/* Final Wax-Sealed Love Envelope Letter */
.love-letter-paper {
  background: linear-gradient(180deg, #fffdf9 0%, #fff2f7 100%);
  border: 2px solid #ffb3cf;
  border-radius: 22px;
  padding: 32px 34px;
  box-shadow: inset 0 0 30px rgba(255, 163, 196, 0.25);
  position: relative;
}

.love-letter-salutation {
  font-family: var(--font-script);
  font-size: 28px;
  color: var(--pink-700);
  margin-bottom: 16px;
}

.love-letter-body {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text-dark);
  white-space: pre-line;
  margin-bottom: 22px;
  font-weight: 600;
}

.love-letter-signature {
  text-align: right;
  font-family: var(--font-script);
  font-size: 26px;
  color: #d92668;
  white-space: pre-line;
}

/* Toast Notification */
.romantic-toast {
  position: fixed;
  top: 82px;
  right: 24px;
  z-index: 2000;
  background: linear-gradient(135deg, #ff5c97, #c9184a);
  color: #fff;
  padding: 12px 22px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 12px 28px rgba(201, 24, 74, 0.35);
  transform: translateX(130%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.romantic-toast.show {
  transform: translateX(0);
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .book-spread {
    grid-template-columns: 1fr;
  }
  .book-spine {
    display: none;
  }
  .book-page.page-left {
    border-right: none;
    border-bottom: 1.5px dashed rgba(246, 70, 134, 0.25);
  }
  .book-page.page-right {
    padding-left: 26px;
  }
  .form-grid-2,
  .collage-studio-layout {
    grid-template-columns: 1fr;
  }
  .top-navbar {
    justify-content: center;
    padding: 10px 14px;
  }
}
