 
:root {
  --primary: #544E27;
  --primary-dark: #3a3518;
  --secondary: #2F3716;
  --accent-gold: #c5a059;
  --bg-color: #F9F1E6;
  --card-bg: rgba(249, 241, 230, 0.97);
  --soft-line: rgba(84, 78, 39, 0.22);
  --font-serif: "Viaoda Libre", "EB Garamond", "Amiri", "Times New Roman", serif;
  --font-body: "Lora", "EB Garamond", "Amiri", Georgia, serif;
  --font-arabic: "Amiri", "Alexandria", "Traditional Arabic", serif;
  --font-display: "Cinzel", "Viaoda Libre", "Amiri", "Times New Roman", serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: #e5ddd0;
  color: var(--secondary);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
#envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom right, rgba(110, 100, 51, 0.88), rgba(84, 78, 39, 0.90), rgba(58, 53, 32, 0.94)),
              url('/waha/background.webp') center / cover;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
  overflow: hidden;
}
#envelope-overlay.opened {
  opacity: 0;
  transform: scale(1.08) translateY(-20px);
  pointer-events: none;
  visibility: hidden;
}
.petals-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.petal {
  position: absolute;
  color: #cdbf99;
  pointer-events: none;
  animation: ambient-fall linear infinite;
  opacity: 0.75;
}
@keyframes ambient-fall {
  0% {
    transform: translateY(-50px) translateX(0) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.85;
  }
  85% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(105vh) translateX(var(--sway, 25px)) rotate(360deg);
    opacity: 0;
  }
}
.envelope-card {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 420px;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 60px 28px 36px;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 40px rgba(84, 78, 39, 0.25);
  border: 1px solid rgba(84, 78, 39, 0.25);
  text-align: center;
  overflow: hidden;
  animation: card-appear 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes card-appear {
  0% {
    transform: translateY(30px) scale(0.94);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
.envelope-card .dec-bush-left {
  position: absolute;
  top: 50%;
  left: -20px;
  transform: translateY(-50%);
  width: 140px;
  opacity: 0.65;
  pointer-events: none;
}
.envelope-card .dec-bush-right {
  position: absolute;
  top: 40%;
  right: -25px;
  transform: translateY(-50%);
  width: 180px;
  opacity: 0.65;
  pointer-events: none;
}
.envelope-card .dec-bush-bottom {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  opacity: 0.6;
  pointer-events: none;
}
.wax-seal {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #6a6332, #383413);
  box-shadow: 0 6px 22px rgba(84, 78, 39, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  animation: seal-pulse 2.2s ease-in-out infinite;
  cursor: pointer;
}
.wax-seal svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}
@keyframes seal-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 6px 22px rgba(84, 78, 39, 0.6);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 8px 30px rgba(197, 160, 89, 0.85);
  }
}
.envelope-title {
  color: var(--primary);
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.15;
  margin-top: 15px;
  margin-bottom: 8px;
}
.envelope-title .amp {
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-size: 24px;
  display: block;
  margin: 2px 0;
  color: var(--accent-gold);
}
.envelope-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px 0 14px;
}
.envelope-divider .line {
  height: 1px;
  width: 45px;
  background: linear-gradient(to right, transparent, var(--primary));
}
.envelope-divider .line.rev {
  background: linear-gradient(to left, transparent, var(--primary));
}
.envelope-divider span {
  color: var(--primary);
  opacity: 0.8;
  font-size: 15px;
}
.envelope-date {
  color: rgba(84, 78, 39, 0.85);
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.open-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 12px 42px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(84, 78, 39, 0.4);
  transition: all 0.3s ease;
  overflow: hidden;
}
.open-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(84, 78, 39, 0.55);
}
.open-btn .shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: shine 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shine {
  0% { left: -100%; }
  40%, 100% { left: 150%; }
}
.invitation-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background-color: var(--bg-color);
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
@media (min-width: 768px) {
  .invitation-container {
    max-width: 540px;
    margin: 30px auto;
    border-radius: 20px;
    border: 1px solid rgba(84, 78, 39, 0.2);
  }
}
.bg-pattern {
  position: absolute;
  inset: 0;
  background-image: url('/waha/background.webp');
  background-size: 100% auto;
  background-repeat: repeat-y;
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
}
.audio-control-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(84, 78, 39, 0.45);
  cursor: pointer;
  z-index: 1000;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}
.audio-control-btn:hover {
  transform: scale(1.08);
}
.audio-control-btn.playing {
  animation: rotate-music 4s linear infinite;
}
@keyframes rotate-music {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero-section {
  position: relative;
  z-index: 2;
  padding: 45px 24px 30px;
  text-align: center;
  overflow: hidden;
}
.arabic-header {
  font-family: var(--font-arabic);
  color: var(--primary);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
  line-height: 1.5;
}
.hosts-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 15px auto 25px;
  max-width: 380px;
}
.host-col {
  text-align: center;
}
.host-prefix {
  font-family: var(--font-arabic);
  font-size: 15px;
  color: var(--secondary);
  opacity: 0.85;
  margin-bottom: 4px;
}
.host-name {
  font-family: var(--font-arabic);
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
}
.hosts-divider {
  width: 1px;
  height: 55px;
  background-color: var(--primary);
  opacity: 0.35;
}
.arabic-subtext {
  font-family: var(--font-arabic);
  color: var(--secondary);
  font-size: 18px;
  margin: 15px 0 24px;
  line-height: 1.5;
}
.couple-names-wrapper {
  margin: 20px 0 35px;
}
.groom-name, .bride-name {
  font-family: var(--font-serif);
  font-size: 42px;
  color: var(--primary);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.names-amp {
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-size: 32px;
  color: var(--primary);
  margin: 8px 0;
  display: block;
}
.hero-art-container {
  position: relative;
  width: 100%;
  height: 140px;
  margin-top: 10px;
  pointer-events: none;
}
.art-castle-left {
  position: absolute;
  bottom: 0;
  left: -15px;
  width: 130px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(84, 78, 39, 0.15));
}
.art-palm-right {
  position: absolute;
  bottom: 10px;
  right: -10px;
  width: 145px;
  object-fit: contain;
  opacity: 0.9;
}
.golden-divider-img {
  display: block;
  width: 78%;
  max-width: 320px;
  margin: 25px auto;
  object-fit: contain;
  opacity: 0.9;
}
.waha-quote-section {
  position: relative;
  z-index: 5;
  padding: 0 24px 38px;
  text-align: center;
}
.waha-quote-text {
  font-family: var(--font-arabic);
  color: var(--primary);
  font-size: 17px;
  font-weight: 400;
  line-height: 2.1;
  max-width: 560px;
  margin: 0 auto;
  opacity: 0.92;
}
@media (max-width: 420px) {
  .waha-quote-text { font-size: 15.5px; line-height: 2; }
}
.reception-section {
  position: relative;
  z-index: 2;
  padding: 20px 20px 35px;
  text-align: center;
}
.section-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.section-subtitle {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  text-transform: uppercase;
  opacity: 0.9;
}
.reception-time {
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.reception-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.reception-date-row .pipe {
  color: var(--primary);
  opacity: 0.5;
  font-weight: 300;
}
.reception-date-row .big-day {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
}
.reception-year {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}
.countdown-container {
  margin: 10px auto 30px;
}
.countdown-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.countdown-box {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(84, 78, 39, 0.2);
  border-radius: 10px;
  padding: 8px 12px;
  min-width: 60px;
  box-shadow: 0 2px 8px rgba(84, 78, 39, 0.08);
}
.countdown-number {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.countdown-label {
  font-size: 11px;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.calendar-wrapper {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 20px auto 10px;
  padding: 45px 32px 35px;
}
.calendar-frame-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 1;
}
.calendar-inner {
  position: relative;
  z-index: 2;
}
.cal-month-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.cal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}
.cal-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(84, 78, 39, 0.3);
}
.cal-table td {
  font-size: 13px;
  color: var(--primary);
  padding: 6px 2px;
  position: relative;
  font-weight: 500;
}
.cal-table td.wedding-day {
  font-weight: 700;
}
.cal-heart-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0 auto;
}
.cal-heart-badge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--primary);
  filter: drop-shadow(0 2px 4px rgba(84, 78, 39, 0.35));
}
.cal-heart-badge span {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.add-calendar-btn {
  font-family: inherit;
  display: flex;
  width: fit-content;
  margin-inline: auto;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.2s;
  background: none;
  border: none;
}
.add-calendar-btn:hover {
  opacity: 0.7;
}
.venue-section {
  position: relative;
  z-index: 2;
  padding: 25px 20px 30px;
  text-align: center;
}
.venue-name {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}
.venue-arabic-name {
  font-family: var(--font-arabic);
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 18px;
  font-weight: 700;
}
.venue-map-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 16px;
  padding: 10px 22px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.venue-map-btn:active {
  transform: scale(0.98);
}
.map-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(84, 78, 39, 0.22);
  box-shadow: 0 4px 20px rgba(84, 78, 39, 0.1);
  overflow: hidden;
}
.map-header-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fdfaf6;
  border-bottom: 1px solid rgba(84, 78, 39, 0.12);
}
.map-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
.open-maps-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #1a73e8;
  border: 1px solid #dadce0;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: background 0.2s;
}
.open-maps-link:hover {
  background: #f8f9fa;
  border-color: #1a73e8;
}
.map-frame-container {
  width: 100%;
  height: 240px;
  position: relative;
}
.map-frame-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.guestbook-section {
  position: relative;
  z-index: 2;
  padding: 25px 20px 50px;
  text-align: center;
}
.guestbook-card {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(84, 78, 39, 0.25);
  box-shadow: 0 6px 24px rgba(84, 78, 39, 0.08);
  padding: 28px 22px;
  text-align: left;
}
.guestbook-card[dir="rtl"] {
  text-align: right;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 6px;
}
.form-input, .form-textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(84, 78, 39, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(84, 78, 39, 0.15);
}
.form-input::placeholder, .form-textarea::placeholder {
  color: #9e9786;
}
.form-textarea {
  min-height: 110px;
  resize: vertical;
}
.send-wishes-btn {
  display: block;
  margin-left: auto;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 10px 24px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(84, 78, 39, 0.3);
  transition: all 0.2s ease;
  text-transform: uppercase;
}
.send-wishes-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(84, 78, 39, 0.4);
}
.wishes-alert {
  display: none;
  background: #edf5eb;
  border: 1px solid #b7deb3;
  color: #2b6127;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 14px;
  text-align: center;
  animation: fadeIn 0.4s ease;
}
.wishes-feed-section {
  width: 100%;
  max-width: 400px;
  margin: 30px auto 10px;
  text-align: right;
}
.wishes-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--soft-line);
}
.wishes-feed-title {
  font-family: var(--font-arabic);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.wishes-count-badge {
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
}
.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}
.wishes-list::-webkit-scrollbar {
  width: 5px;
}
.wishes-list::-webkit-scrollbar-track {
  background: rgba(84, 78, 39, 0.05);
  border-radius: 10px;
}
.wishes-list::-webkit-scrollbar-thumb {
  background: rgba(84, 78, 39, 0.25);
  border-radius: 10px;
}
.wish-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(84, 78, 39, 0.18);
  box-shadow: 0 2px 10px rgba(84, 78, 39, 0.06);
  padding: 14px 16px;
  transition: transform 0.2s ease;
  animation: wishSlideIn 0.5s ease both;
}
.wish-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(84, 78, 39, 0.1);
}
@keyframes wishSlideIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.wish-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.wish-author {
  font-family: var(--font-arabic);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.wish-time {
  font-size: 11px;
  color: #8c867a;
}
.wish-content {
  font-family: var(--font-arabic);
  font-size: 14px;
  color: var(--secondary);
  line-height: 1.6;
  white-space: pre-wrap;
}
.wish-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 8px;
}
.like-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #9e9786;
  transition: color 0.2s;
}
.like-btn.liked {
  color: #d9383a;
}
.like-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.footer-section {
  position: relative;
  z-index: 2;
  padding: 30px 20px 60px;
  text-align: center;
  background: linear-gradient(to top, rgba(84, 78, 39, 0.08), transparent);
}
.footer-names {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 4px;
}
.footer-date {
  font-size: 13px;
  color: var(--secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
}
.hero-intro-section {
  position: relative;
  width: 100%;
  padding-top: 50px;
  padding-bottom: 120px;
  text-align: center;
  overflow: visible;
  z-index: 5;
}
@media (min-width: 768px) {
  .hero-intro-section {
    padding-top: 70px;
    padding-bottom: 160px;
  }
}
.hero-names-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--primary);
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 500;
  margin-bottom: 15px;
  position: relative;
  z-index: 20;
}
.hero-names-top .amp {
  font-family: "Alex Brush", "EB Garamond", cursive;
  font-size: 28px;
  opacity: 0.85;
}
.castle-couple-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  overflow: visible;
}
.castle-art-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 15px rgba(84, 78, 39, 0.12));
}
.couple-art-img {
  position: absolute;
  left: 50%;
  bottom: -40px;
  transform: translateX(-50%);
  width: 54%;
  height: auto;
  object-fit: contain;
  z-index: 10;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.18));
}
@media (min-width: 768px) {
  .couple-art-img {
    bottom: -60px;
    width: 52%;
  }
}
.hero-invitation-body {
  position: relative;
  z-index: 15;
  padding: 10px 24px 20px;
  text-align: center;
}
.hero-artwork-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto 20px;
  padding: 0 10px;
}
.hero-artwork-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 6px 20px rgba(84, 78, 39, 0.15));
  animation: fadeInArt 1.2s ease-out both;
}
@keyframes fadeInArt {
  0% {
    opacity: 0;
    transform: translateY(15px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.family-invitation-section {
  position: relative;
  z-index: 15;
  padding: 20px 20px 30px;
  text-align: center;
  overflow: hidden;
}
.flank-bush-left {
  position: absolute;
  bottom: 45px;
  left: -8%;
  width: 35%;
  max-width: 170px;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
  filter: drop-shadow(0 4px 10px rgba(84, 78, 39, 0.12));
}
.flank-bush-right {
  position: absolute;
  top: 38%;
  right: -10%;
  width: 42%;
  max-width: 210px;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}
.names-center-wrapper {
  position: relative;
  z-index: 2;
  margin: 25px auto 20px;
}
.names-center-wrapper .groom-name,
.names-center-wrapper .bride-name {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: 0.02em;
}
.names-center-wrapper .names-amp {
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-size: 28px;
  color: var(--primary);
  margin: 6px 0;
  display: block;
}
@media (min-width: 768px) {
  .names-center-wrapper .groom-name,
  .names-center-wrapper .bride-name {
    font-size: 48px;
  }
  .flank-bush-left {
    left: -4%;
    width: 30%;
  }
  .flank-bush-right {
    right: -5%;
    width: 36%;
  }
}
.empty-wishes {
  text-align: center;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed rgba(84, 78, 39, 0.3);
  border-radius: 12px;
  color: var(--primary);
  font-family: var(--font-arabic);
  font-size: 15px;
  font-weight: 600;
}
.wedding-notes-section {
  position: relative;
  z-index: 2;
  padding: 10px 20px 30px;
  text-align: center;
}
.wedding-notes-card {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  border: 1px solid rgba(84, 78, 39, 0.25);
  box-shadow: 0 4px 18px rgba(84, 78, 39, 0.07);
  padding: 22px 20px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.wedding-note-badge {
  display: inline-block;
  vertical-align: top;  
  font-family: var(--font-arabic);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  opacity: 0.85;
}
.wedding-note-item {
  font-family: var(--font-arabic);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin: 8px 0;
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.wedding-note-item svg {
  flex-shrink: 0;
  opacity: 0.8;
}
.rsvp-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}
.rsvp-btn {
  appearance: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 10px;
  border-radius: 9999px;
  border: 1.5px solid var(--soft-line);
  background: transparent;
  color: var(--primary);
  transition: all 0.2s ease;
  line-height: 1.4;
}
.rsvp-btn:hover {
  border-color: var(--primary);
  background: rgba(84, 78, 39, 0.05);
}
.rsvp-btn.yes.on {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(84, 78, 39, 0.3);
}
.rsvp-btn.no.on {
  background: var(--card-bg);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.rsvp-btn:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}
@media (max-width: 380px) {
  .rsvp-choice { grid-template-columns: 1fr; }
}
.count-field {
  display: flex;
  align-items: center;
  gap: 10px;
}
.count-field input[type="number"] {
  -moz-appearance: textfield;
  text-align: center;
  flex: 1;
  min-width: 0;
}
.count-field input[type="number"]::-webkit-outer-spin-button,
.count-field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.count-step {
  appearance: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1.5px solid var(--soft-line);
  background: transparent;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1;
  transition: all 0.2s ease;
}
.count-step:hover {
  border-color: var(--primary);
  background: rgba(84, 78, 39, 0.05);
}
.gallery-section { padding: 30px 20px; text-align: center; position: relative; z-index: 2; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.gallery-grid figure { margin: 0; aspect-ratio: 3/4; overflow: hidden; border-radius: 10px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 0;
}
.gallery-collage figure { margin: 0; aspect-ratio: 3/4; overflow: hidden; border-radius: 10px; }
.gallery-collage figure:nth-child(3n+1) { grid-column: span 2; aspect-ratio: 16/10; }
.gallery-collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-3d {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 16px 10px;
  margin: 18px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-3d::-webkit-scrollbar { display: none; }
.gallery-3d figure {
  flex: 0 0 190px;
  margin: 0;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 12px;
  scroll-snap-align: center;
  box-shadow: 0 6px 18px rgba(84, 78, 39, 0.15);
}
.gallery-3d img { width: 100%; height: 100%; object-fit: cover; display: block; }
.envelope-guest {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 18px;
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
  font-family: var(--font-arabic);
  font-size: 16px;
  color: var(--primary);
}
.envelope-invite { margin: 0 0 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.envelope-invite-lead { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); opacity: 0.72; }
.envelope-invite .envelope-guest { margin: 0; }
.envelope-greet { font-size: 13px; color: var(--primary); opacity: 0.8; margin: 8px 0 0; }
.footer-thanks {
  font-family: var(--font-arabic);
  font-size: 15px;
  color: var(--primary);
  margin: 0 0 12px;
  line-height: 1.9;
}
.empty-wishes {
  text-align: center;
  font-family: var(--font-arabic);
  font-size: 14px;
  color: var(--primary);
  opacity: 0.65;
  padding: 22px 10px;
}
.guestbook-card { text-align: start; }
.wishes-feed-section { text-align: start; }
.wishes-list { padding-right: 0; padding-inline-end: 4px; }
.send-wishes-btn { margin-left: 0; margin-right: 0; margin-inline-start: auto; }
@media (max-width: 700px) {
  .form-input, .form-textarea { font-size: 16px; }
  .send-wishes-btn { width: 100%; margin-inline-start: 0; padding-block: 14px; }
}
.send-wishes-btn:disabled {
  opacity: 0.55;
  cursor: progress;
  transform: none;
  box-shadow: none;
}
.send-wishes-btn:focus-visible,
.count-step:focus-visible,
.add-calendar-btn:focus-visible,
.open-btn:focus-visible,
.open-maps-link:focus-visible,
.audio-control-btn:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}
#rsvp-form.sending { opacity: 0.6; pointer-events: none; }
#rsvp-form.declined .count-field { opacity: 0.45; pointer-events: none; }
.wishes-alert.is-error {
  background: #fbeceb;
  border-color: #e6b4b0;
  color: #8d2f29;
}
.rsvp-note {
  margin: 0;
  font-family: var(--font-arabic);
  font-size: 14px;
  line-height: 2;
  color: var(--primary);
  opacity: 0.85;
  text-align: center;
}
.wax-seal {
  cursor: pointer;
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.24s ease;
}
.wax-seal:hover {
  transform: scale(1.06);
}
.wax-seal:active {
  transform: scale(0.96);
}
.wax-seal:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 4px; }
.open-btn, .add-calendar-btn, .open-maps-link {
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.open-btn:hover, .add-calendar-btn:hover, .open-maps-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.open-btn:active, .add-calendar-btn:active, .open-maps-link:active {
  transform: scale(0.97);
}
.audio-control-btn {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.audio-control-btn:hover {
  transform: scale(1.08);
}
.audio-control-btn:active {
  transform: scale(0.94);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .petal { display: none; }
}
@media (pointer: coarse), (max-width: 760px) {
  .add-calendar-btn,
  .open-maps-link {
    min-height: 44px;
    padding-block: 10px;
    justify-content: center;
  }
  .add-calendar-btn { margin-top: 6px; }
  .audio-control-btn { min-width: 44px; min-height: 44px; }
}
.rsvp-collapsed > *:not(.rsvp-open-btn){ display:none; }
.rsvp-open-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:100%; min-height:48px; padding:12px 22px;
  font-family:inherit; font-size:15px; font-weight:600; cursor:pointer;
  color:var(--primary-dark, #544E27);
  background:transparent;
  border:1px solid var(--primary, #8a7f4f); border-radius:10px;
  transition:background .2s ease, color .2s ease;
}
.rsvp-open-btn:hover{ background:var(--primary, #8a7f4f); color:#fff; }
.rsvp-card:not(.rsvp-collapsed) .rsvp-open-btn{ display:none; }
.rsvp-q select.form-input{
  appearance:none; cursor:pointer; padding-inline-end:34px;
  background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),
                   linear-gradient(135deg,currentColor 50%,transparent 50%);
  background-size:5px 5px,5px 5px; background-repeat:no-repeat;
  background-position:calc(100% - 18px) calc(50% + 1px), calc(100% - 13px) calc(50% + 1px);
}
[dir="rtl"] .rsvp-q select.form-input{
  background-position:18px calc(50% + 1px), 13px calc(50% + 1px);
}
.envelope-title,.hero-names-top,.groom-name,.bride-name,.footer-names,
.venue-name,.venue-arabic-name,.host-name{
  overflow-wrap:anywhere;word-break:break-word;
}
.waha-timeline-section {
  text-align: center;
  margin-top: 10px;
}
.waha-zigzag-timeline {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 28px auto 20px;
  padding: 8px 0;
  direction: ltr !important;
}
.waha-zigzag-line {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 1.5px;
  background: var(--accent-gold, #c5a059);
  opacity: 0.5;
  transform: translateX(-50%);
}
.waha-zigzag-row {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 26px;
  min-height: 48px;
}
.waha-zigzag-row:last-child {
  margin-bottom: 0;
}
.waha-zigzag-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  z-index: 2;
  box-sizing: border-box;
}
.waha-zigzag-dot.solid {
  background: var(--primary, #544E27);
  border: 2px solid var(--primary, #544E27);
}
.waha-zigzag-dot.ring {
  background: var(--card-bg, #F9F1E6);
  border: 2.5px solid var(--primary, #544E27);
}
.waha-zigzag-side {
  width: 50%;
  box-sizing: border-box;
  display: flex;
}
.waha-zigzag-row.on-right .waha-zigzag-side.left {
  visibility: hidden;
}
.waha-zigzag-row.on-right .waha-zigzag-side.right {
  padding-left: 20px;
  padding-right: 0;
  justify-content: flex-start;
  align-items: flex-start;
}
.waha-zigzag-row.on-left .waha-zigzag-side.right {
  visibility: hidden;
}
.waha-zigzag-row.on-left .waha-zigzag-side.left {
  padding-right: 20px;
  padding-left: 0;
  justify-content: flex-end;
  align-items: flex-end;
}
.waha-zigzag-content {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  direction: rtl;
  text-align: right;
}
[dir="ltr"] .waha-zigzag-content {
  direction: ltr;
  text-align: left;
}
.waha-zigzag-time {
  font-family: var(--font-display, "Cinzel", serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-gold, #c5a059);
  line-height: 1.25;
}
.waha-zigzag-title {
  font-family: var(--font-arabic, "Amiri", serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary, #544E27);
  line-height: 1.35;
  word-break: break-word;
}
.envelope-title,.hero-names-top,.groom-name,.bride-name,.footer-names,.names-center-wrapper .groom-name,.names-center-wrapper .bride-name{font-family:"Viaoda Libre","EB Garamond",'Aref Ruqaa',"Amiri",serif}
.waha-portrait-section{position:relative;z-index:15;padding:4px 24px 38px;text-align:center}
.waha-portrait{
  position:relative;width:min(76%,300px);aspect-ratio:4/5;margin:0 auto;padding:6px;
  border-radius:50% 50% 16px 16px / 36% 36% 16px 16px;
  background:linear-gradient(150deg,#f1dfa6 0%,#c5a059 30%,#f6e8bf 52%,#a98441 76%,#e3c98a 100%);
  box-shadow:0 14px 34px rgba(84,78,39,.2),0 2px 6px rgba(84,78,39,.12);
}
.waha-portrait::before{
  content:'';position:absolute;left:50%;top:-9px;width:14px;height:14px;transform:translateX(-50%) rotate(45deg);
  background:linear-gradient(135deg,#f6e8bf,#c5a059);box-shadow:0 0 0 3px var(--bg-color),0 0 0 4px rgba(197,160,89,.6);
}
.waha-portrait::after{
  content:'';position:absolute;inset:-12px;border-radius:50% 50% 22px 22px / 37% 37% 22px 22px;
  border:1px solid rgba(197,160,89,.55);pointer-events:none;
}
.waha-portrait-in{
  width:100%;height:100%;padding:5px;background:var(--bg-color);
  border-radius:50% 50% 11px 11px / 35% 35% 11px 11px;box-shadow:inset 0 0 0 1px rgba(197,160,89,.75);
}
.waha-portrait-in img{
  display:block;width:100%;height:100%;object-fit:cover;object-position:center 30%;
  border-radius:50% 50% 8px 8px / 34% 34% 8px 8px;
}
