/* ==========================================================
   EXACT STYLING BASED ON zedanloveszeina.einvityegy.site
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&family=Amiri:wght@400;700&family=Cormorant+Garamond:wght@400;600;700&family=Montserrat:wght@400;500;600&display=swap');

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

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  background: #fdf9f7;
  font-family: 'Tajawal', sans-serif;
  color: #5a413f;
  text-align: center;
}

/* Background floral wallpaper */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 220, 230, 0.4), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 210, 225, 0.4), transparent 50%),
    #fdf9f7;
  opacity: 0.9;
  z-index: -3;
}

/* Pulse glow like in reference site */
.pulse {
  position: fixed;
  top: 120px;
  left: 50%;
  width: 150vw;
  height: 150vw;
  max-width: 900px;
  max-height: 900px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,175,185,0.22), transparent 60%);
  animation: pulse 4s infinite ease-in-out;
  z-index: -2;
  pointer-events: none;
}

@keyframes pulse {
  0% { opacity: .15; transform: translateX(-50%) scale(1); }
  50% { opacity: .3; transform: translateX(-50%) scale(1.04); }
  100% { opacity: .15; transform: translateX(-50%) scale(1); }
}

/* Floating petals like in reference site */
#petals-box {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

.petal {
  position: absolute;
  width: 22px;
  height: 22px;
  background: radial-gradient(circle at 30% 30%, #ffd4de, #f29bb0);
  border-radius: 65% 35% 60% 40% / 60% 40% 60% 40%;
  box-shadow: 0 2px 6px rgba(214, 115, 140, 0.25);
  animation: float 6s infinite ease-in-out;
  pointer-events: none;
  opacity: 0.85;
}

@keyframes float {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.9; }
  50% { transform: translateY(-30px) rotate(6deg); opacity: 0.5; }
  100% { transform: translateY(0) rotate(-4deg); opacity: 0.9; }
}

/* Floating Music Toggle Button */
.music-pill-float {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 180, 200, 0.5);
  box-shadow: 0 4px 15px rgba(196, 104, 128, 0.2);
  color: #a9576d;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.music-pill-float:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 20px rgba(196, 104, 128, 0.35);
}

.sound-wave {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.sound-wave .bar {
  width: 2.5px;
  height: 4px;
  background: #c54a6f;
  border-radius: 2px;
  transition: height 0.2s ease;
}

.sound-wave.playing .bar:nth-child(1) { animation: soundBar 0.8s ease-in-out infinite alternate; }
.sound-wave.playing .bar:nth-child(2) { animation: soundBar 0.6s ease-in-out 0.2s infinite alternate; }
.sound-wave.playing .bar:nth-child(3) { animation: soundBar 0.9s ease-in-out 0.1s infinite alternate; }
.sound-wave.playing .bar:nth-child(4) { animation: soundBar 0.7s ease-in-out 0.3s infinite alternate; }

@keyframes soundBar {
  0% { height: 3px; }
  100% { height: 14px; }
}

/* ==========================================================
   1. LANDING ENVELOPE SCREEN (EXACT COPY OF REFERENCE SITE)
   ========================================================== */
.screen-landing {
  display: none;
  height: 100vh;
  width: 100vw;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.screen-landing.active {
  display: flex;
}

/* Card like in zedanloveszeina.einvityegy.site */
.card {
  position: relative;
  width: 80vw;
  height: 75vh;
  max-width: 450px;
  max-height: 690px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background: #f4d6df;
  box-shadow:
    0 0px 15px rgba(0,0,0,0.15),
    0 15px 40px rgba(255, 183, 205, .6);
  transition: all 1.6s cubic-bezier(.19,1,.22,1);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('assets/cover-clean.jpg') center/cover no-repeat;
  z-index: 1;
  transition: opacity 1s ease-in-out;
}

.card.open {
  transform: scale(1.06) translateY(-10px);
  box-shadow: 0 0 40px rgba(255, 163, 186, 0.7);
}

/* Pulse highlight on opening */
.card.open::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,150,170,.45), transparent 60%);
  animation: pinkPulse 1.6s ease forwards;
  z-index: 3;
}

@keyframes pinkPulse {
  0% { opacity:0; transform:scale(1); }
  50% { opacity:1; transform:scale(1.05); }
  100% { opacity:0; transform:scale(1.1); }
}

/* Open text */
.open-text {
  position: absolute;
  bottom: 7%;
  width: 100%;
  text-align: center;
  color: #c54a6f;
  font-size: 1.25rem;
  text-shadow: 0 0 9px rgba(255,180,200,.8);
  animation: blink 2s infinite ease-in-out;
  z-index: 10;
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Invisible click button (bottom half) */
#hiddenClick {
  position: absolute;
  bottom: 0;
  height: 60vh;
  width: 100vw;
  cursor: pointer;
  z-index: 50;
  background: transparent;
}

/* ==========================================================
   2. MAIN HOME GALLERY (EXACT COPY OF REFERENCE SITE)
   ========================================================== */
.screen-home {
  display: none;
  opacity: 0;
  transition: opacity 1.2s ease;
  padding-bottom: 100px;
  min-height: 100vh;
  position: relative;
}

.screen-home.active {
  display: block;
  opacity: 1;
}

/* Title on top of cards */
.wedding-title {
  font-size: 2.2rem;
  margin-top: 40px;
  font-weight: 700;
  color: #a9576d;
  text-shadow: 0 0 30px rgba(255,180,200,0.8);
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 3px;
}

/* Gallery container like in reference site */
.gallery {
  width: 90%;
  max-width: 600px;
  margin: 40px auto 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.gallery-img {
  width: 100%;
  border-radius: 18px;
  border: 2px solid rgba(255,180,200,0.35);
  box-shadow: 0 8px 35px rgba(0,0,0,0.3);
  display: block;
  transition: transform .8s ease, box-shadow .8s ease;
}

.gallery-img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 55px rgba(255,180,200,0.8);
}

/* 3rd Card: The 5 Buttons Card (Last Page as requested) */
.action-card-container {
  width: 100%;
  border-radius: 18px;
  border: 2px solid rgba(255,180,200,0.45);
  box-shadow: 0 8px 35px rgba(0,0,0,0.3);
  background: #ffffff url('assets/card-frame-pristine.jpg') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  transition: transform .8s ease, box-shadow .8s ease;
}

.action-card-container:hover {
  transform: scale(1.02);
  box-shadow: 0 0 55px rgba(255,180,200,0.8);
}

.action-card-inner {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  background: rgba(255, 253, 250, 0.85);
  backdrop-filter: blur(1px);
}

.last-card-title {
  font-family: 'Amiri', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: #78263f;
  margin-bottom: 4px;
}

.last-card-subtitle {
  font-size: 1.05rem;
  font-weight: 700;
  color: #5a413f;
}

.last-card-subtitle-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  color: #855f6b;
  margin-bottom: 24px;
}

/* The 5 Buttons Stack */
.buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.menu-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 240, 244, 0.92));
  border: 1.5px solid rgba(244, 194, 206, 0.8);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(196, 104, 128, 0.12);
  cursor: pointer;
  direction: rtl;
  text-align: right;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-action-btn:hover {
  transform: translateY(-2px);
  border-color: #c46880;
  box-shadow: 0 8px 22px rgba(196, 104, 128, 0.25);
  background: #ffffff;
}

.btn-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffd4de, #fbaac0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 2px 8px rgba(196, 104, 128, 0.2);
  flex-shrink: 0;
}

.btn-text-group {
  flex: 1;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
}

.btn-title-ar {
  font-size: 1.1rem;
  font-weight: 700;
  color: #78263f;
}

.btn-title-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 1.2px;
  color: #855f6b;
}

.btn-arrow {
  color: #c46880;
  font-size: 1.1rem;
}

.last-card-footer {
  padding-top: 12px;
  border-top: 1px dashed rgba(244, 194, 206, 0.7);
}

.footer-blessing {
  font-size: 0.95rem;
  font-weight: 600;
  color: #78263f;
}

/* Location Section */
.location-section {
  margin-top: 40px;
}

.location-section h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
  color: #b8667a;
  text-shadow: 0 0 20px rgba(255,180,200,0.6);
}

.location-section .venue-name {
  font-size: 1rem;
  color: #5a413f;
  margin-bottom: 12px;
}

.map-shortcut-btn {
  background: linear-gradient(135deg, #e7a2b8, #ffd4de);
  color: #4b353a;
  font-weight: 600;
  padding: 10px 27px;
  text-decoration: none;
  border-radius: 25px;
  display: inline-block;
  margin-top: 8px;
  transition: all .3s ease;
  box-shadow: 0 4px 15px rgba(231, 162, 184, 0.4);
}

.map-shortcut-btn:hover {
  background: linear-gradient(135deg, #ffd4de, #e7a2b8);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255,180,200,0.6);
}

/* Footer */
footer {
  margin-top: 60px;
  font-size: .92rem;
  color: #6b4d55;
  opacity: 0.9;
}

.admin-access-row {
  margin-top: 14px;
}

.admin-shortcut {
  display: inline-block;
  font-size: 0.78rem;
  color: #c46880;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(244, 194, 206, 0.6);
  transition: all 0.2s ease;
}

.admin-shortcut:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #78263f;
  border-color: #c46880;
}

/* ==========================================================
   3. MODALS / SLIDE-UP SHEETS
   ========================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(45, 18, 28, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  background: #ffffff;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  position: relative;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl;
}

.modal-backdrop.active .modal-sheet {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .modal-backdrop {
    align-items: center;
    padding: 20px;
  }
  .modal-sheet {
    border-radius: 28px;
    max-height: 85vh;
    transform: scale(0.95) translateY(20px);
  }
  .modal-backdrop.active .modal-sheet {
    transform: scale(1) translateY(0);
  }
}

.sheet-handle {
  width: 44px;
  height: 5px;
  background: #e2c0cb;
  border-radius: 3px;
  margin: 12px auto 6px;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  left: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(244, 194, 206, 0.8);
  background: rgba(255, 240, 245, 0.8);
  color: #78263f;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  background: #c46880;
  color: #fff;
}

.modal-content {
  padding: 10px 24px 34px;
}

.modal-header {
  text-align: center;
  margin-bottom: 22px;
}

.modal-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(244, 194, 206, 0.35);
  color: #78263f;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #78263f;
  line-height: 1.3;
}

.modal-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: #855f6b;
}

/* ==========================================================
   MODAL 1: COUNTDOWN & DETAILS
   ========================================================== */
.countdown-section {
  background: linear-gradient(135deg, #fff2f5, #fde4eb);
  border: 1.5px solid rgba(244, 194, 206, 0.7);
  border-radius: 16px;
  padding: 18px 14px;
  margin-bottom: 22px;
  text-align: center;
}

.countdown-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: #78263f;
  margin-bottom: 12px;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  direction: ltr;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 8px 10px;
  min-width: 62px;
  box-shadow: 0 4px 12px rgba(196, 104, 128, 0.15);
  border: 1px solid rgba(244, 194, 206, 0.8);
}

.cd-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #78263f;
  line-height: 1.1;
}

.cd-label {
  font-size: 0.68rem;
  color: #855f6b;
  margin-top: 3px;
  font-weight: 600;
}

.countdown-sep {
  font-size: 1.3rem;
  font-weight: 700;
  color: #c46880;
}

/* Details list */
.details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fffafa;
  border-radius: 10px;
  border: 1px solid rgba(244, 194, 206, 0.4);
}

.detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffeef2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.detail-text h4 {
  font-size: 0.82rem;
  color: #a9808d;
  font-weight: 600;
  margin-bottom: 2px;
}

.detail-primary {
  font-size: 1.05rem;
  font-weight: 700;
  color: #4a2d35;
}

.detail-secondary {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  color: #855f6b;
}

.alert-item {
  border-color: rgba(220, 150, 170, 0.6);
  background: #fff6f8;
}

.warning-highlight {
  border-color: rgba(214, 80, 100, 0.4);
  background: #fff2f4;
}

.bold-red {
  color: #c92c4d !important;
}

.modal-actions-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-submit-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #e7829d, #c54a6f);
  color: #ffffff;
  font-family: 'Tajawal', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(197, 74, 111, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.action-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 74, 111, 0.5);
  background: linear-gradient(135deg, #c54a6f, #e7829d);
}

.secondary-btn {
  width: 100%;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1.5px solid rgba(244, 194, 206, 0.9);
  background: #ffffff;
  color: #78263f;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.secondary-btn:hover {
  background: #fff2f5;
  border-color: #c46880;
}

/* ==========================================================
   MODAL 2: LOCATION
   ========================================================== */
.venue-info-box {
  background: #fff6f8;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  margin-bottom: 16px;
  border: 1px solid rgba(244, 194, 206, 0.6);
}

.venue-info-box h3 {
  color: #78263f;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.venue-address {
  font-size: 0.95rem;
  color: #4a2d35;
  font-weight: 600;
}

.venue-address-en {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  color: #855f6b;
  margin-top: 2px;
}

.map-container {
  width: 100%;
  height: 230px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1.5px solid rgba(244, 194, 206, 0.7);
  margin-bottom: 18px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.location-links-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================
   MODAL 3: RSVP
   ========================================================== */
.styled-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #4a2d35;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(220, 180, 190, 0.6);
  background: #ffffff;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  color: #4a2d35;
  outline: none;
  direction: rtl;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: #c46880;
  box-shadow: 0 0 0 3px rgba(244, 194, 206, 0.35);
}

.radio-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(244, 194, 206, 0.6);
  background: #fffafa;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-card.active {
  border-color: #c46880;
  background: #ffeef2;
  box-shadow: 0 2px 8px rgba(196, 104, 128, 0.15);
}

.radio-card input {
  accent-color: #78263f;
  transform: scale(1.2);
}

.radio-text {
  display: flex;
  flex-direction: column;
}

.main-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #78263f;
}

.sub-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem;
  color: #855f6b;
}

.form-success-box {
  background: #f4fbf5;
  border: 1.5px solid #a8e3b5;
  border-radius: 14px;
  padding: 24px 18px;
  text-align: center;
  margin-top: 14px;
}

.form-success-box .success-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.form-success-box h3 {
  color: #24733b;
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.form-success-box p {
  color: #436e4f;
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.whatsapp-share-btn {
  width: 100%;
  padding: 12px 18px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* ==========================================================
   MODAL 4: UPLOAD PHOTOS
   ========================================================== */
.photos-desc {
  text-align: center;
  font-size: 0.92rem;
  color: #855f6b;
  margin-bottom: 16px;
  line-height: 1.6;
}

.upload-dropzone {
  border: 2px dashed rgba(220, 140, 165, 0.7);
  background: #fff8fa;
  border-radius: 14px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 22px;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  background: #ffedf2;
  border-color: #c46880;
}

.upload-cloud-icon {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.dropzone-content h4 {
  font-size: 1rem;
  color: #78263f;
  font-weight: 700;
  margin-bottom: 4px;
}

.dropzone-content p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  color: #a9808d;
  margin-bottom: 12px;
}

.browse-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 20px;
  border: none;
  background: #c46880;
  color: #fff;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.guest-gallery-header {
  margin-bottom: 12px;
}

.guest-gallery-header h4 {
  font-size: 0.95rem;
  color: #78263f;
  font-weight: 700;
}

.guest-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
  padding: 4px;
}

.photo-thumb-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(244, 194, 206, 0.7);
}

.photo-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.empty-gallery-msg {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.85rem;
  color: #a9808d;
  padding: 20px 0;
}

/* ==========================================================
   MODAL 5: MESSAGE / GUESTBOOK
   ========================================================== */
.quick-wishes-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.quick-wishes-row::-webkit-scrollbar {
  display: none;
}

.quick-chip {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 18px;
  border: 1px solid rgba(244, 194, 206, 0.8);
  background: #fff5f8;
  color: #78263f;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-chip:hover {
  background: #c46880;
  color: #fff;
}

.wishes-feed-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed rgba(244, 194, 206, 0.8);
}

.feed-title {
  font-size: 1rem;
  color: #78263f;
  font-weight: 700;
  margin-bottom: 12px;
}

.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.wish-card {
  background: #fff8fa;
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(244, 194, 206, 0.6);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wish-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wish-sender {
  font-size: 0.95rem;
  font-weight: 700;
  color: #78263f;
}

.wish-time {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  color: #a9808d;
}

.wish-body {
  font-size: 0.9rem;
  color: #4a2d35;
  line-height: 1.5;
}

.wish-like-btn {
  align-self: flex-start;
  margin-top: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: #c46880;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

/* Toast Notification */
.toast-popup {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(80, 24, 40, 0.92);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  z-index: 999;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  pointer-events: none;
  text-align: center;
  max-width: 90vw;
}

.toast-popup.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Mobile Optimizations */
@media (max-width: 600px) {
  .card {
    width: 88vw;
    height: 72vh;
  }
  .open-text {
    font-size: 1.05rem;
  }
  #hiddenClick {
    height: 50vh;
  }
  .card.open {
    transform: scale(1.02) translateY(-4px);
  }
  .wedding-title {
    font-size: 1.8rem;
  }
  .gallery {
    width: 94%;
  }
  .pulse {
    width: 180vw;
    height: 180vw;
  }
  .countdown-item {
    min-width: 52px;
    padding: 6px 8px;
  }
  .cd-num {
    font-size: 1.35rem;
  }
}
