:root {
  --font-title: 'Alex Brush', cursive;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Amiri', serif;
  background: #F9F9F9;
  color: #6D5347;
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 16px;
}

.hidden {
  display: none !important;
}

.cover-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #F9F9F9;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  overflow: hidden;
}

.cover-bg-ornament {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(200, 158, 118, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(239, 150, 116, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(70, 114, 107, 0.05) 0%, transparent 60%);
  z-index: 0;
}

.cover-corner {
  position: absolute;
  width: 120px;
  height: 120px;
  z-index: 1;
  pointer-events: none;
}

.cover-corner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cover-corner.corner-tl {
  top: -20px;
  left: -20px;
}

.cover-corner.corner-tr {
  top: -20px;
  right: -20px;
  transform: scaleX(-1);
}

.cover-corner.corner-bl {
  bottom: 60px;
  left: -20px;
  transform: scaleY(-1);
}

.cover-corner.corner-br {
  bottom: 60px;
  right: -20px;
  transform: scale(-1, -1);
}

.cover-content {
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 100%;
  position: relative;
  z-index: 2;
}

.cover-ornament-top,
.cover-ornament-bottom {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.cover-ornament-top img,
.cover-ornament-bottom img {
  width: 100%;
  height: auto;
}

.cover-subtitle {
  font-family: 'Averia Serif Libre', serif;
  font-size: 1rem;
  letter-spacing: 4px;
  color: #6D5347;
  margin: 1.5rem 0 0.8rem;
  text-transform: uppercase;
}

.cover-names {
  font-family: var(--font-title, 'Alex Brush', cursive);
  font-size: 4rem;
  color: #6D5347;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.cover-date {
  font-family: 'Amiri', serif;
  font-size: 1.2rem;
  color: #6D5347;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.guest-name {
  background: rgba(200, 158, 118, 0.15);
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  margin-bottom: 1.5rem;
  font-style: italic;
  color: #6D5347;
  font-size: 1rem;
  border: 1px solid rgba(200, 158, 118, 0.3);
}

.btn-open {
  background: #6D5347;
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Averia Serif Libre', serif;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-open:hover {
  background: #46726B;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(109, 83, 71, 0.25);
}

.btn-icon {
  font-size: 1.1rem;
}

.shape-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 3;
  line-height: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 2px);
  height: 60px;
  transform: translateX(-1px);
}

.shape-divider.shape-to-gold svg path:last-child {
  filter: drop-shadow(0 -3px 8px rgba(109, 83, 71, 0.12));
}

.shape-divider.shape-to-light svg path:last-child {
  filter: drop-shadow(0 -3px 8px rgba(0, 0, 0, 0.04));
}

.shape-divider-top {
  top: 0;
  bottom: auto;
  transform: rotate(180deg);
}

.corner-ornament {
  position: absolute;
  width: 65px;
  height: 65px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.corner-ornament img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.corner-ornament.corner-tl {
  top: 12px;
  left: 12px;
}

.corner-ornament.corner-tr {
  top: 12px;
  right: 12px;
  transform: scaleX(-1);
}

.corner-ornament.corner-bl {
  bottom: 75px;
  left: 12px;
  transform: scaleY(-1);
}

.corner-ornament.corner-br {
  bottom: 75px;
  right: 12px;
  transform: scale(-1, -1);
}

section {
  position: relative;
  overflow: hidden;
}

.section-light {
  background: #F9F9F9;
  padding: 5rem 1.5rem 6.5rem;
}

.section-gold {
  background: #C89E76;
  padding: 0;
}

.section-gold .section-container {
  background: #C89E76;
  border-radius: 0;
  position: relative;
  padding: 4.5rem 1.5rem 6.5rem;
}

.section-gold-footer {
  background: #C89E76;
  padding: 4rem 1.5rem;
  text-align: center;
}

.section-inner {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.section-title-script {
  font-family: var(--font-title, 'Alex Brush', cursive);
  font-size: 3.2rem;
  color: #6D5347;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.08);
}

.section-gold .section-title-script {
  color: #FFFFFF;
}

.section-subtitle {
  font-family: 'Averia Serif Libre', serif;
  font-size: 1.15rem;
  color: #6D5347;
  font-style: italic;
  margin-bottom: 2rem;
}

.section-gold .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.divider-line {
  width: 80px;
  height: 1px;
  background: #C89E76;
  margin: 1rem auto;
}

.divider-line.short {
  width: 50px;
}

.section-light .divider-line {
  background: #C89E76;
}

.section-gold .divider-line {
  background: rgba(255, 255, 255, 0.5);
}

.arabic {
  font-size: 1.8rem;
  line-height: 2.2;
  color: #6D5347;
  margin-bottom: 1.5rem;
  direction: rtl;
  font-family: 'Amiri', serif;
}

.section-gold .arabic {
  color: #FFFFFF;
}

.translation {
  font-size: 1.05rem;
  line-height: 1.9;
  font-style: italic;
  color: #6D5347;
  max-width: 100%;
  margin: 0 auto 1rem;
}

.section-light .translation {
  color: #6D5347;
}

.reference {
  font-family: 'Averia Serif Libre', serif;
  font-weight: 400;
  color: #C89E76;
  font-style: italic;
  font-size: 1.05rem;
}

.section-gold .reference {
  color: rgba(255, 255, 255, 0.8);
}

.section-ayat {
  padding: 5rem 1.5rem 7.5rem;
}

.section-ayat .section-inner {
  max-width: 680px;
  margin: 0 auto;
}

.section-ayat .reference {
  margin-bottom: 1.5rem;
}

.couple-intro {
  font-family: 'Amiri', serif;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  max-width: 100%;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  font-size: 1.05rem;
}

.couple-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 100%;
  margin: 0 auto;
}

.couple-item {
  text-align: center;
  position: relative;
}

.couple-photo-frame {
  position: relative;
  width: 160px;
  height: 220px;
  margin: 0 auto 1.2rem;
}

.arch-frame-bg {
  position: absolute;
  top: -15px;
  left: -25px;
  width: 210px;
  height: 250px;
  z-index: 0;
  opacity: 0.7;
}

.couple-photo {
  position: relative;
  z-index: 1;
  width: 160px;
  height: 220px;
  object-fit: cover;
  border-radius: 200px 200px 200px 200px;
  box-shadow: 0 0 0 4px #305E71;
}

.couple-name-script {
  font-family: var(--font-title, 'Alex Brush', cursive);
  font-size: 2.5rem;
  color: #FFFFFF;
  margin-bottom: 0.3rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.15);
}

.couple-separator {
  font-family: var(--font-title, 'Alex Brush', cursive);
  font-size: 2.5rem;
  color: #FFFFFF;
  opacity: 0.8;
}

.child-of {
  font-family: 'Cormorant Infant', serif;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}

.parents {
  font-family: 'Amiri', serif;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  font-size: 1rem;
}

.countdown-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.5rem;
  min-width: 80px;
}

.countdown-item span:first-child {
  font-family: 'Jomolhari', serif;
  font-size: 2.5rem;
  color: #6D5347;
  line-height: 1;
}

.countdown-item span:last-child {
  font-family: 'Amiri', serif;
  font-size: 0.95rem;
  color: #C89E76;
  margin-top: 0.5rem;
  font-style: italic;
}

.wedding-day-banner {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #C89E76;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  max-width: 500px;
  margin: 2rem auto;
  text-align: center;
  box-shadow: 0 10px 30px rgba(109, 83, 71, 0.08);
}

.banner-badge {
  display: inline-block;
  background: #C89E76;
  color: white;
  font-family: 'Averia Serif Libre', serif;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.wedding-day-banner h3 {
  font-family: var(--font-title, 'Alex Brush', cursive);
  font-size: 2.2rem;
  color: #6D5347;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.wedding-day-banner p {
  font-family: 'Amiri', serif;
  font-size: 1.05rem;
  color: #8C7B75;
  font-style: italic;
  margin: 0;
}

.event-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.event-actions .btn-secondary {
  margin-top: 0;
}

.btn-direction {
  background: #46726B !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(70, 114, 107, 0.25);
}

.btn-direction:hover {
  background: #305E71 !important;
  box-shadow: 0 6px 16px rgba(48, 94, 113, 0.35);
  transform: translateY(-2px);
}

.btn-direction svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn-direction:hover svg {
  transform: scale(1.1);
}

.btn-primary {
  display: inline-block;
  background: #6D5347;
  color: white;
  padding: 0.7rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 1rem;
  transition: all 0.3s ease;
  font-family: 'Averia Serif Libre', serif;
  font-size: 0.9rem;
}

.btn-primary:hover {
  background: #46726B;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  background: #C89E76;
  color: white;
  padding: 0.6rem 1.8rem;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 0.8rem;
  transition: all 0.3s ease;
  font-family: 'Averia Serif Libre', serif;
  font-size: 0.9rem;
}

.btn-secondary:hover {
  background: #46726B;
  transform: translateY(-2px);
}

.section-gold .btn-secondary {
  background: #6D5347;
}

.section-gold .btn-secondary:hover {
  background: #46726B;
}

.events-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 100%;
  margin: 2rem auto;
}

.events-separate-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.event-card {
  background: white;
  padding: 2.2rem 1.8rem;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(109, 83, 71, 0.15);
}

.event-card h4 {
  font-family: var(--font-title, 'Alex Brush', cursive);
  font-size: 2.2rem;
  color: #6D5347;
  margin-bottom: 0.5rem;
}

.event-date {
  font-family: 'Amiri', serif;
  font-weight: 500;
  color: #6D5347;
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}

.event-time {
  font-family: 'Amiri', serif;
  color: #C89E76;
  margin-bottom: 0.4rem;
  font-style: italic;
  font-size: 1.05rem;
}

.event-location {
  font-family: 'Amiri', serif;
  font-weight: 700;
  color: #6D5347;
  margin-bottom: 0.2rem;
  line-height: 1.5;
  font-size: 1.15rem;
}

.event-address {
  font-family: 'Amiri', serif;
  color: #8C7B75;
  margin-bottom: 0.8rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* UNIFIED (SINGLE LOCATION) CARD */
.event-card-unified {
  background: white;
  padding: 2.2rem 1.8rem;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(109, 83, 71, 0.15);
  text-align: center;
}

.unified-sessions-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

@media (min-width: 600px) {
  .unified-sessions-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
  }
}

.unified-session h4 {
  font-family: var(--font-title, 'Alex Brush', cursive);
  font-size: 2.2rem;
  color: #6D5347;
  margin-bottom: 0.4rem;
}

.unified-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C89E76;
  font-size: 1.1rem;
  padding: 0.4rem 0;
}

.unified-divider::before,
.unified-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(200, 158, 118, 0.35);
  margin: 0 0.8rem;
}

@media (min-width: 600px) {
  .unified-divider {
    flex-direction: column;
    height: 100%;
    padding: 0 0.5rem;
  }
  .unified-divider::before,
  .unified-divider::after {
    width: 1px;
    height: 100%;
    margin: 0.8rem 0;
  }
}

.unified-venue-box {
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(200, 158, 118, 0.45);
  text-align: center;
}

.venue-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200, 158, 118, 0.15);
  color: #6D5347;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-family: 'Amiri', serif;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.venue-badge svg {
  color: #C89E76;
}

.venue-title {
  font-family: 'Amiri', serif;
  font-size: 1.25rem;
  color: #6D5347;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.venue-address {
  font-family: 'Amiri', serif;
  color: #8C7B75;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 1.2rem;
}

.maps-container {
  max-width: 100%;
  margin: 2rem auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 83px -39px rgba(0, 0, 0, 0.5);
  background: #FFFFFF;
}

.maps-container iframe {
  display: block;
}

.story-intro {
  font-family: 'Amiri', serif;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  max-width: 100%;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.story-timeline {
  max-width: 100%;
  margin: 0 auto;
}

.story-item {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1.2rem;
  text-align: left;
}

.story-item h4 {
  font-family: var(--font-title, 'Alex Brush', cursive);
  font-size: 1.9rem;
  color: #6D5347;
  margin-bottom: 0.3rem;
}

.story-item .date {
  font-family: 'Amiri', serif;
  font-size: 0.95rem;
  color: #C89E76;
  margin-bottom: 0.8rem;
  font-style: italic;
}

.story-item p {
  font-family: 'Amiri', serif;
  color: #6D5347;
  line-height: 1.8;
  font-size: 1rem;
}

.story-item img {
  width: 100%;
  border-radius: 5px;
  margin-top: 1rem;
}

.video-portrait-wrapper {
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.video-portrait-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(109, 83, 71, 0.25), 0 5px 15px rgba(0, 0, 0, 0.1);
  background: #000;
  border: 3px solid rgba(200, 158, 118, 0.4);
}

.video-portrait-player {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  background: #000;
  border-radius: 17px;
}

.video-sound-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(31, 41, 55, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  animation: pulseBadge 2s infinite ease-in-out;
  z-index: 10;
}

@keyframes pulseBadge {
  0%, 100% { opacity: 0.95; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(0.98); }
}

.video-container {
  max-width: 100%;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 83px -39px rgba(0, 0, 0, 0.5);
  background: #FFFFFF;
}

.video-container iframe {
  aspect-ratio: 16/9;
  display: block;
}

.gallery-quote {
  font-family: 'Amiri', serif;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  max-width: 100%;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  max-width: 100%;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.8s ease;
}

.gallery-grid img:hover {
  opacity: 0.7;
  transform: scale(1.02);
}

.rsvp-form {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.rsvp-form label {
  font-family: 'Amiri', serif;
  font-size: 1.05rem;
  color: #6D5347;
  margin-top: 0.5rem;
}

.section-gold .rsvp-form label {
  color: #FFFFFF;
}

.rsvp-form input,
.wishes-form input,
.wishes-form select,
.wishes-form textarea {
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 5px;
  font-family: 'Amiri', serif;
  font-size: 1rem;
  background: rgba(109, 83, 71, 0.44);
  color: #FFFFFF;
  transition: background 0.3s ease;
}

.rsvp-form input::placeholder,
.wishes-form input::placeholder,
.wishes-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.section-light .rsvp-form input,
.section-light .wishes-form input,
.section-light .wishes-form select,
.section-light .wishes-form textarea {
  background: rgba(109, 83, 71, 0.08);
  color: #6D5347;
  border: 1px solid rgba(200, 158, 118, 0.3);
}

.section-light .rsvp-form input::placeholder,
.section-light .wishes-form input::placeholder,
.section-light .wishes-form textarea::placeholder {
  color: rgba(109, 83, 71, 0.4);
}

.rsvp-form input:focus,
.wishes-form input:focus,
.wishes-form select:focus,
.wishes-form textarea:focus {
  outline: none;
  background: rgba(109, 83, 71, 0.55);
}

.section-light .rsvp-form input:focus,
.section-light .wishes-form input:focus,
.section-light .wishes-form select:focus,
.section-light .wishes-form textarea:focus {
  background: rgba(109, 83, 71, 0.12);
  border-color: #C89E76;
}

.section-light .wishes-form select {
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%236D5347'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpolyline%20points='6%209%2012%2015%2018%209'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.wishes-form select option {
  background: #FFFFFF;
  color: #6D5347;
}

.wishes-form textarea {
  min-height: 120px;
  resize: vertical;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-family: 'Amiri', serif;
  color: #6D5347;
  font-size: 1rem;
}

.section-gold .radio-label {
  color: #FFFFFF;
}

.radio-label input[type="radio"] {
  accent-color: #C89E76;
  width: 16px;
  height: 16px;
}

.btn-submit {
  background: #6D5347;
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  font-size: 0.9rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Amiri', serif;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background: #46726B;
  transform: translateY(-2px);
}

.btn-submit-gold {
  background: #C89E76;
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  font-size: 0.9rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Amiri', serif;
  margin-top: 0.5rem;
}

.btn-submit-gold:hover {
  background: #6D5347;
  transform: translateY(-2px);
}

.message {
  max-width: 100%;
  margin: 1rem auto;
  padding: 1rem;
  border-radius: 5px;
  display: none;
  font-family: 'Amiri', serif;
}

.message.success {
  background: rgba(70, 114, 107, 0.15);
  color: #305E71;
  display: block;
  border: 1px solid rgba(70, 114, 107, 0.3);
}

.message.error {
  background: rgba(239, 150, 116, 0.15);
  color: #6D5347;
  display: block;
  border: 1px solid rgba(239, 150, 116, 0.3);
}

.gift-intro {
  font-family: 'Amiri', serif;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  max-width: 100%;
  margin: 0 auto 2rem;
  line-height: 1.8;
  font-size: 1.05rem;
}

.bank-accounts {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 100%;
  margin: 0 auto 2rem;
}

.bank-item {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
}

.bank-item img {
  height: 40px;
  margin-bottom: 0.8rem;
}

.bank-item .name {
  font-family: 'Amiri', serif;
  color: #6D5347;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.bank-item .number {
  font-family: 'Amiri', serif;
  font-size: 1.3rem;
  color: #6EC1E4;
  font-weight: 700;
  margin-bottom: 1rem;
}

.btn-copy {
  background: #6D5347;
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  font-family: 'Amiri', serif;
  font-style: italic;
}

.btn-copy:hover {
  background: #46726B;
}

.qris-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 2rem;
  border: 1px solid rgba(200, 158, 118, 0.25);
  box-shadow: 0 4px 15px rgba(109, 83, 71, 0.05);
}

.qris-card-badge {
  display: inline-block;
  background: #C89E76;
  color: white;
  font-family: 'Averia Serif Libre', serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 0.6rem;
}

.qris-card-title {
  font-family: var(--font-title, 'Alex Brush', cursive);
  font-size: 2rem;
  color: #6D5347;
  margin-bottom: 0.3rem;
}

.qris-card-desc {
  font-family: 'Amiri', serif;
  font-size: 0.95rem;
  color: #8C7B75;
  margin-bottom: 1rem;
}

.btn-qris {
  background: #C89E76;
  color: white;
  border: none;
  padding: 0.6rem 2rem;
  border-radius: 5px;
  font-family: 'Averia Serif Libre', serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-qris:hover {
  background: #46726B;
  transform: translateY(-2px);
}

.gift-address {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

.gift-address h4 {
  font-family: var(--font-title, 'Alex Brush', cursive);
  font-size: 2rem;
  color: #6D5347;
  margin-bottom: 0.8rem;
}

.gift-address p {
  font-family: 'Amiri', serif;
  color: #6D5347;
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.wishes-intro {
  font-family: 'Amiri', serif;
  color: #6D5347;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.wishes-form {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.wishes-list {
  max-width: 100%;
  margin: 2rem auto 0;
  text-align: left;
}

.wish-item {
  background: rgba(200, 158, 118, 0.08);
  padding: 1.2rem;
  border-radius: 10px;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(200, 158, 118, 0.15);
}

.wish-item .name {
  font-family: 'Amiri', serif;
  font-weight: 700;
  color: #C89E76;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.wish-item .name::after {
  content: '';
  display: inline-block;
  background: #C89E76;
  color: white;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

.wish-item .message {
  font-family: 'Amiri', serif;
  color: #6D5347;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: none;
  display: block;
  border: none;
  font-size: 1rem;
}

.wish-item .attendance {
  font-family: 'Amiri', serif;
  font-size: 0.85rem;
  color: #46726B;
  margin-top: 0.4rem;
  font-style: italic;
  font-weight: 700;
}

.wish-item .attendance.tidak {
  color: #8C7B75;
  font-weight: normal;
}

.footer-title {
  font-family: var(--font-title, 'Alex Brush', cursive);
  font-size: 3.2rem;
  color: #FFFFFF;
  margin-bottom: 0.3rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.footer-names {
  font-family: var(--font-title, 'Alex Brush', cursive);
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer-credit {
  margin-top: 2rem;
  font-family: 'Amiri', serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-credit a {
  color: #FFFFFF;
  text-decoration: none;
}

#petalsCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 995;
}

/* Enhanced Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 12, 10, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  user-select: none;
  touch-action: pan-y;
}

.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 88vh;
}

.lightbox-content img {
  max-width: 86vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(200, 158, 118, 0.3);
}

.lightbox-counter {
  margin-top: 12px;
  font-family: 'Amiri', serif;
  font-size: 1.05rem;
  color: #F9F9F9;
  letter-spacing: 2px;
  background: rgba(109, 83, 71, 0.6);
  padding: 3px 14px;
  border-radius: 20px;
  border: 1px solid rgba(200, 158, 118, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  z-index: 25;
  transition: color 0.2s, transform 0.2s;
  line-height: 1;
}

.lightbox-close:hover {
  color: #EF9674;
  transform: scale(1.15);
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 20;
}

.lightbox-btn:hover {
  background: #C89E76;
  border-color: #C89E76;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

@media (max-width: 576px) {
  .lightbox-btn {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* QRIS Modal */
.qris-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem;
}

.qris-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.qris-modal-dialog {
  position: relative;
  z-index: 2;
  background: #FFFFFF;
  border: 2px solid #C89E76;
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  animation: qrisModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes qrisModalIn {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.qris-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  color: #6D5347;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}

.qris-modal-close:hover {
  color: #EF9674;
  transform: scale(1.15);
}

.qris-modal-title {
  font-family: 'Averia Serif Libre', serif;
  font-size: 1.1rem;
  color: #6D5347;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.qris-modal-merchant {
  font-family: var(--font-title, 'Alex Brush', cursive);
  font-size: 2.2rem;
  color: #C89E76;
  margin-bottom: 0.8rem;
}

.qris-modal-image-box {
  background: #FFFFFF;
  padding: 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(200, 158, 118, 0.5);
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 240px;
}

.qris-modal-image-box img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 320px;
  border-radius: 8px;
  display: block;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.qris-modal-instruction {
  font-family: 'Amiri', serif;
  font-size: 0.95rem;
  color: #8C7B75;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.btn-qris-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #46726B !important;
  color: white !important;
  padding: 0.7rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Averia Serif Libre', serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-qris-download:hover {
  background: #305E71 !important;
  transform: translateY(-2px);
}

/* Floating Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 998;
  width: calc(100% - 24px);
  max-width: 440px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(200, 158, 118, 0.4);
  border-radius: 35px;
  padding: 6px 8px;
  box-shadow: 0 8px 32px rgba(109, 83, 71, 0.18);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #8C7B75;
  padding: 4px 8px;
  border-radius: 20px;
  transition: all 0.25s ease;
  min-width: 46px;
}

.nav-icon {
  width: 18px;
  height: 18px;
  margin-bottom: 2px;
  transition: transform 0.25s ease;
}

.nav-label {
  font-family: 'Averia Serif Libre', serif;
  font-size: 9px;
  letter-spacing: 0.5px;
  font-weight: 500;
  text-transform: capitalize;
}

.nav-item:hover {
  color: #C89E76;
}

.nav-item.active {
  color: #FFFFFF;
  background: #6D5347;
  box-shadow: 0 3px 10px rgba(109, 83, 71, 0.3);
}

.nav-item.active .nav-icon {
  transform: scale(1.1);
}

/* Footer bottom padding to prevent bottom nav overlap */
.section-footer {
  padding-bottom: 6.5rem;
}

/* Music Toggle positioned above bottom nav */
.music-toggle {
  position: fixed;
  bottom: 85px;
  right: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #6D5347;
  border: 2px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(109, 83, 71, 0.35);
  z-index: 997;
  transition: all 0.3s ease;
  color: white;
}

.music-toggle:hover {
  background: #EF9674;
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(239, 150, 116, 0.5);
}

.music-toggle .music-icon-play,
.music-toggle .music-icon-pause {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.music-toggle .music-icon-pause {
  opacity: 0;
  transform: scale(0.5);
}

.music-toggle.playing .music-icon-play {
  opacity: 0;
  transform: scale(0.5);
}

.music-toggle.playing .music-icon-pause {
  opacity: 1;
  transform: scale(1);
}

.music-toggle.playing {
  background: #46726B;
  border-color: rgba(255, 255, 255, 0.4);
}

.music-toggle.playing:hover {
  background: #EF9674;
}

@keyframes goyang1 {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(6deg) scale(1.18); }
  100% { transform: rotate(0deg) scale(1); }
}

@keyframes goyang2 {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(-6deg) scale(1.18); }
  100% { transform: rotate(0deg) scale(1); }
}

.goyang-1 {
  animation: goyang1 6s infinite linear;
}

.goyang-2 {
  animation: goyang2 5s infinite linear;
}

img.goyang-1,
img.goyang-2 {
  animation: goyang1 6s infinite linear;
}

img.goyang-2 {
  animation: goyang2 5s infinite linear;
}

.anim-fadeInUp {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.anim-fadeInUp.visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-bounceIn {
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.6s ease 0.1s, transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.1s;
}

.anim-bounceIn.visible {
  opacity: 1;
  transform: scale(1);
}

.anim-zoomIn {
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.anim-zoomIn.visible {
  opacity: 1;
  transform: scale(1);
}

@media (min-width: 768px) {
  .cover-names {
    font-size: 4.5rem;
  }

  .cover-corner {
    width: 240px;
    height: 240px;
  }

  .cover-corner.corner-bl,
  .cover-corner.corner-br {
    bottom: 80px;
  }

  .cover-content {
    max-width: 500px;
  }

  .cover-ornament-top,
  .cover-ornament-bottom {
    max-width: 350px;
  }

  .corner-ornament {
    width: 180px;
    height: 180px;
  }

  .corner-ornament.corner-bl,
  .corner-ornament.corner-br {
    bottom: 120px;
  }

  .section-inner {
    max-width: 700px;
    padding: 0 2rem 2rem;
  }

  .section-title-script {
    font-size: 3.5rem;
  }

  .couple-container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    max-width: 800px;
  }

  .couple-separator {
    margin-top: 4rem;
  }

  .events-container {
    flex-direction: row;
    max-width: 700px;
  }

  .event-card {
    flex: 1;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 700px;
  }

  .gallery-grid img {
    height: 220px;
  }

  .countdown-item {
    padding: 1.5rem 2rem;
  }

  .countdown-item span:first-child {
    font-size: 2.8rem;
  }

  .shape-divider svg {
    height: 85px;
  }

  .section-light {
    padding: 6rem 2rem 8rem;
  }

  .section-gold .section-container {
    padding: 5rem 2rem 7rem;
  }

  .maps-container,
  .video-container {
    max-width: 700px;
  }

  .bank-accounts,
  .gift-address,
  .wishes-list,
  .rsvp-form,
  .wishes-form,
  .story-timeline {
    max-width: 600px;
  }

  .message {
    max-width: 600px;
  }

  .translation,
  .couple-intro,
  .story-intro,
  .gallery-quote,
  .gift-intro {
    max-width: 600px;
  }
}

@media (min-width: 1024px) {
  .cover-names {
    font-size: 5rem;
  }

  .section-title-script {
    font-size: 4rem;
  }

  .couple-photo-frame {
    width: 200px;
    height: 270px;
  }

  .couple-photo {
    width: 200px;
    height: 270px;
  }

  .arch-frame-bg {
    width: 260px;
    height: 310px;
  }

  .gallery-grid img {
    height: 250px;
  }

  .section-light {
    padding: 7rem 3rem 9rem;
  }

  .section-gold .section-container {
    padding: 6rem 3rem 8rem;
  }
}