/* ════════════════════════════════════════════════
   WEDDING INVITATION · style.css
   Glassmorphism + transparent cards
   ════════════════════════════════════════════════ */

/* ─── VARIABLES ─── */
:root {
  /* Colors */
  --gold: #c9a84c;
  --gold-light: #e8d08a;
  --gold-pale: #f5e9c0;
  --gold-dark: #8b6914;
  --cream: #fdf6e3;
  --dark: #0d0a06;
  --text-dark: #2a1f0a;
  --text-mid: #5c4a1e;

  /* Glassmorphism */
  --glass-bg: rgba(253, 246, 227, 0.85);
  --glass-border: rgba(201, 168, 76, 0.35);

  /* Fonts */
  --font-display: "Cinzel Decorative", serif;
  --font-body: "Cormorant Garamond", serif;
  --font-italic: "IM Fell English", serif;
  --font-arabic: "Amiri", serif;

  /* Sizes */
  --base-font-size: 16px;
  --card-title-size: 0.9rem;
  --hero-name-size: clamp(28px, 7vw, 58px);
  --hero-amp-size: clamp(32px, 8.5vw, 70px);
  --card-value-size: clamp(16px, 4.5vw, 22px);

  /* Transitions */
  --transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);

  /* Button Position */
  --btn-left: 50%;
  --btn-top: 72%;
}

/* ─── RESET ─── */
html {
  font-size: var(--base-font-size);
}

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--dark);
}

body {
  font-family: var(--font-body);
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  text-decoration: none;
}

/* ─── LANGUAGE TOGGLE ─── */
html[lang="ar"] {
  direction: rtl;
  font-family: var(--font-arabic);
}

.ar-text {
  display: none;
}
.en-text {
  display: inline;
}

html[lang="en"] .ar-text,
html[lang="ar"] .en-text {
  display: none !important;
}
html[lang="ar"] .ar-text,
html[lang="en"] .en-text {
  display: inline !important;
}

/* ─── PAGE SYSTEM ─── */
.page {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
  overflow: hidden;
}

.page.active {
  opacity: 1;
  pointer-events: all;
  z-index: 10;
}

.page.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* ════════════════════════════════════════════════
   PAGE 1 · LOADING
   ════════════════════════════════════════════════ */
#page-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
}

.loading-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    #1e1608 0%,
    #0d0a06 70%
  );
  z-index: 0;
}

.particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
  animation: particleDrift linear infinite;
  opacity: 0;
}

@keyframes particleDrift {
  0% {
    transform: translateY(110vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

.loading-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  text-align: center;
}

.crest-wrapper {
  position: relative;
  width: min(450px, 85vw);
  animation: crestFadeIn 1.8s ease forwards;
}

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

.crest-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(201, 168, 76, 0.25) 0%,
    transparent 70%
  );
  animation: glowPulse 2.5s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.crest-img {
  width: 100%;
  filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.5));
}

.loading-bar-wrap {
  width: min(250px, 60vw);
  height: 3px;
  background: rgba(201, 168, 76, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.loading-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    var(--gold-dark),
    var(--gold-light),
    var(--gold-dark)
  );
  border-radius: 3px;
  transition: width 0.1s linear;
}

/* ════════════════════════════════════════════════
   PAGE 2 · DOOR
   ════════════════════════════════════════════════ */
#page-door {
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.door-static-bg {
  position: absolute;
  inset: 0;
  background: url("demo3.png") center center / cover no-repeat;
  z-index: 0;
}

.door-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.door-bg-wrap.revealed {
  opacity: 1;
}

.door-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.door-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 8, 4, 0.45) 0%,
    rgba(10, 8, 4, 0.02) 35%,
    rgba(10, 8, 4, 0.02) 60%,
    rgba(10, 8, 4, 0.6) 100%
  );
  pointer-events: none;
}

.door-glow-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -55%);
  width: min(420px, 85vw);
  height: min(520px, 72vh);
  border-radius: 60% 60% 50% 50%;
  border: 2px solid rgba(201, 168, 76, 0);
  pointer-events: none;
  transition: all 1.2s ease;
}

.door-glow-ring.active {
  border-color: rgba(201, 168, 76, 0.25);
  box-shadow:
    0 0 60px 20px rgba(201, 168, 76, 0.15),
    0 0 120px 60px rgba(201, 168, 76, 0.08);
}

.door-top-text {
  position: absolute;
  top: 5%;
  left: 0;
  right: 0;
  margin: 0 auto;
  text-align: center;
  z-index: 5;
  animation: fadeUp 1.5s ease 0.3s both;
  width: 90%;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.door-pre {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--gold-pale);
  font-size: clamp(13px, 3.5vw, 18px);
  letter-spacing: 0.18em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.door-names-hero {
  font-family: var(--font-display);
  font-weight: lighter;
  color: var(--gold-light);
  font-size: clamp(22px, 6.5vw, 48px);
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-shadow:
    0 0 24px rgba(201, 168, 76, 0.7),
    0 2px 10px rgba(0, 0, 0, 0.9);
  margin: 8px 0;
}

.amp-hero {
  color: var(--gold);
  font-family: var(--font-italic);
  font-style: italic;
  opacity: 0.85;
}

.door-subtitle {
  font-family: var(--font-italic);
  font-style: italic;
  color: rgba(245, 233, 192, 0.85);
  font-size: clamp(12px, 3vw, 16px);
  letter-spacing: 0.12em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
  margin-top: 6px;
}

.knock-btn {
  position: absolute;
  left: var(--btn-left);
  top: var(--btn-top);
  transform: translate(-50%, -50%);
  z-index: 20;
  background: transparent;
  border: none;
  outline: none;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.knock-emoji {
  font-size: clamp(45px, 11vw, 75px);
  display: block;
  animation: knockBounce 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(201, 168, 76, 0.7));
}

@keyframes knockBounce {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  20% {
    transform: translateY(-7px) rotate(-9deg);
  }
  40% {
    transform: translateY(0px) rotate(7deg);
  }
  60% {
    transform: translateY(-3px) rotate(-4deg);
  }
  80% {
    transform: translateY(0px) rotate(2deg);
  }
}

.knock-label {
  font-family: var(--font-display);
  font-size: clamp(12px, 3vw, 16px);
  letter-spacing: 0.22em;
  color: var(--gold-pale);
  text-shadow:
    0 0 18px rgba(201, 168, 76, 0.95),
    0 1px 6px rgba(0, 0, 0, 0.95);
}

.lang-toggle-wrap {
  position: fixed;
  z-index: 100;
  top: 20px;
  right: 20px;
}

.door-lang,
.details-lang {
  position: fixed;
  top: 20px;
  right: 20px;
  left: auto;
}

.lang-btn {
  padding: 10px 20px;
  background: rgba(13, 10, 6, 0.5);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 3px;
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition);
  cursor: pointer;
}

.lang-btn:hover {
  border-color: var(--gold-light);
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.3);
}

/* ════════════════════════════════════════════════
   MUSIC CONTROL
   ════════════════════════════════════════════════ */
.music-control-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(13, 10, 6, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 168, 76, 0.5);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.music-control-btn:hover {
  background: rgba(201, 168, 76, 0.2);
  border-color: var(--gold);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
}

.music-icon {
  font-size: 1.2rem;
  filter: drop-shadow(0 0 2px rgba(201, 168, 76, 0.5));
}

.music-text {
  font-size: 0.8rem;
  font-weight: 500;
}

html[lang="ar"] .music-control-btn {
  right: auto;
  left: 25px;
  flex-direction: row-reverse;
}

/* ════════════════════════════════════════════════
   PAGE 3 · DETAILS
   ════════════════════════════════════════════════ */
#page-details {
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-overflow-scrolling: touch;
}

#page-details::-webkit-scrollbar {
  width: 4px;
}
#page-details::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

.details-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url("image2.png") center center / cover no-repeat;
}

.details-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(253, 246, 227, 0.75);
}

.petals-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.petal {
  position: absolute;
  border-radius: 0 100% 0 100%;
  background: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.55),
    rgba(201, 168, 76, 0.1)
  );
  animation: petalFall linear infinite;
  opacity: 0;
}

@keyframes petalFall {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 0;
  }
  5% {
    opacity: 0.7;
  }
  95% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

.details-hero {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(50px, 12vw, 110px) 16px 24px;
  width: 100%;
  animation: heroEntrance 1.2s ease 0.2s both;
}

@keyframes heroEntrance {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-crest-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(220px, 45vw);
  margin: 48px auto -30px;
}

.hero-crest-mini img {
  width: 100%;
  filter: sepia(0.2) drop-shadow(0 4px 12px rgba(201, 168, 76, 0.4));
}

.invite-pre {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--text-mid);
  font-size: clamp(13px, 3.5vw, 18px);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.hero-names {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: lighter;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.name-left,
.name-right {
  font-family: var(--font-display);
  font-size: var(--hero-name-size);
  color: var(--gold-dark);
  letter-spacing: 0.05em;
  text-shadow:
    1px 1px 0 var(--gold-pale),
    0 0 30px rgba(201, 168, 76, 0.2);
}

.ampersand {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: var(--hero-amp-size);
  color: var(--gold);
  opacity: 0.75;
  line-height: 1;
}

.invite-body {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--text-mid);
  font-size: clamp(14px, 3.8vw, 20px);
  letter-spacing: 0.1em;
  margin: 12px 0 16px;
  line-height: 1.6;
}

.ornament-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px auto;
  max-width: 300px;
}

.ornament-line span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.diamond-sm {
  color: var(--gold);
  font-size: 10px;
}

.hero-event {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--text-mid);
  font-size: clamp(15px, 4.2vw, 22px);
  letter-spacing: 0.2em;
  margin-top: 10px;
}

/* ─── COUPLE PHOTO ─── */
.couple-photo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto 16px;
  padding: 8px;
  width: fit-content;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    var(--gold-light),
    var(--gold-dark),
    var(--gold-light)
  );
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.3);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.couple-photo-wrapper:hover {
  transform: scale(1.03);
  box-shadow: 0 0 50px rgba(201, 168, 76, 0.5);
}

.couple-photo {
  width: min(400px, 85vw);
  max-height: 550px;
  object-fit: cover;
  border-radius: 14px;
  border: 4px solid var(--cream);
  display: block;
  background: var(--cream);
}

html[lang="ar"] .couple-photo-wrapper {
  background: linear-gradient(
    135deg,
    var(--gold-dark),
    var(--gold-light),
    var(--gold-dark)
  );
}

/* ─── EVENT CARDS ─── */
.details-cards {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 20px 16px;
  width: 100%;
  max-width: 600px;
}

.detail-card {
  background: transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 168, 76, 0.5);
  border-radius: 20px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  width: 100%;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  animation: cardEntrance 0.6s ease both;
}

.detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(201, 168, 76, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--card-title-size);
  letter-spacing: 0.3em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: 0.9;
}

.card-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: bolder;
  letter-spacing: 0.2em;
  color: #a68f58;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card-value {
  font-family: var(--font-body);
  font-size: var(--card-value-size);
  font-weight: 600;
  color: var(--text-dark);
  margin: 6px 0;
  word-break: break-word;
  line-height: 1.5;
}

.card-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  margin: 16px 0 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  opacity: 0.9;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.card-image:hover {
  opacity: 1;
  transform: scale(1.02);
}

.map-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 40px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-align: center;
  box-shadow: 0 3px 12px rgba(201, 168, 76, 0.4);
  transition: var(--transition);
}

.map-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.55);
}

/* ─── COUNTDOWN ─── */
.countdown-container {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(201, 168, 76, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.countdown-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #8b6914;
  text-transform: uppercase;
  opacity: 0.85;
}

.countdown-timer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

.time-block {
  background: rgba(201, 168, 76, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 32px;
  padding: 12px 16px;
  min-width: 70px;
  text-align: center;
  border: 1px solid rgba(201, 168, 76, 0.4);
}

.time-number {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--gold-dark);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.time-unit {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  font-family: var(--font-italic);
  margin-top: 4px;
}

.countdown-message {
  font-size: 0.85rem;
  font-family: var(--font-italic);
  color: var(--gold-dark);
  opacity: 0.8;
}

/* ─── RSVP ─── */
.section-divider {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 520px;
  padding: 0 16px;
  margin: 16px 0 24px;
}

.section-divider span:first-child,
.section-divider span:last-child {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.div-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold-dark);
  white-space: nowrap;
}

.rsvp-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  padding: 0 16px 40px;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--gold-dark);
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(253, 246, 227, 0.9);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
  resize: vertical;
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
  background: rgba(255, 255, 255, 0.96);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
}

.radio-label input {
  display: none;
}

.radio-custom {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: transparent;
  transition: var(--transition);
  position: relative;
}

.radio-label input:checked + .radio-custom {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-color: var(--gold-light);
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.5);
}

.radio-label input:checked + .radio-custom::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--cream);
}

.rsvp-submit {
  align-self: center;
  padding: 14px 38px;
  background: linear-gradient(
    135deg,
    var(--gold-dark),
    var(--gold),
    var(--gold-dark)
  );
  background-size: 200% 100%;
  border-radius: 50px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
  transition: var(--transition);
  cursor: pointer;
}

.rsvp-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.6);
}

.rsvp-success {
  text-align: center;
  padding: 40px 20px;
  animation: fadeUp 0.8s ease;
}

.rsvp-success .success-icon {
  font-size: 56px;
  margin-bottom: 20px;
}

.whatsapp-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 24px 0 16px;
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25d366, #128c7e);
  border: none;
  padding: 12px 22px;
  border-radius: 50px;
  color: white;
  font-family: var(--font-display);
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.2s;
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.copy-btn {
  background: linear-gradient(135deg, #6c757d, #495057);
}

.small-note {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 14px;
}

.hidden {
  display: none !important;
}

/* ════════════════════════════════════════════════
   FOOTER · SOCIAL MEDIA
   ════════════════════════════════════════════════ */
.footer-social {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 20px 40px;
  text-align: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 24px 0 20px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(253, 246, 227, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(201, 168, 76, 0.3);
  color: var(--gold-dark);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
}

.social-link svg {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
}

.social-link:hover {
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.social-link:hover svg {
  transform: scale(1.1);
}

/* Brand Colors */
.social-link.whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

.social-link.phone:hover {
  background: #4caf50;
  border-color: #4caf50;
  color: #fff;
  box-shadow: 0 8px 30px rgba(76, 175, 80, 0.4);
}

.social-link.tiktok:hover {
  background: #000000;
  border-color: #000000;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.social-link.instagram:hover {
  background: radial-gradient(
    circle at 30% 110%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
  border-color: #d6249f;
  color: #fff;
  box-shadow: 0 8px 30px rgba(214, 36, 159, 0.4);
}

.social-link.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
  box-shadow: 0 8px 30px rgba(24, 119, 242, 0.4);
}

.contact-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  margin: 12px 0 18px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-mid);
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  opacity: 0.7;
}

.contact-value {
  font-weight: 600;
  color: var(--text-dark);
}

.contact-divider {
  color: var(--gold);
  opacity: 0.5;
  font-size: 0.7rem;
}

.credit-text {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-mid);
  opacity: 0.7;
  letter-spacing: 0.05em;
  margin-top: 16px;
}

.credit-text .heart {
  color: #e74c3c;
  display: inline-block;
  animation: heartbeat 1.8s ease-in-out infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.2);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.15);
  }
  56% {
    transform: scale(1);
  }
}

.credit-text .loventa {
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--gold-dark);
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html[lang="ar"] .social-icons {
  flex-direction: row-reverse;
}
html[lang="ar"] .contact-info {
  flex-direction: row-reverse;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 480px) {
  .detail-card {
    padding: 20px 16px;
  }
  .card-image {
    max-height: 320px;
  }
  .time-block {
    padding: 8px 12px;
    min-width: 55px;
  }
  .time-number {
    font-size: 1.4rem;
  }
  .time-unit {
    font-size: 0.55rem;
  }
  .countdown-timer {
    gap: 0.7rem;
  }
  .map-btn {
    font-size: 0.65rem;
    padding: 8px 18px;
  }
  .hero-crest-mini {
    width: min(160px, 40vw);
  }
  .music-control-btn {
    bottom: 15px;
    right: 15px;
    padding: 8px 15px;
  }
  html[lang="ar"] .music-control-btn {
    right: auto;
    left: 15px;
  }

  .social-link {
    width: 42px;
    height: 42px;
  }
  .social-link svg {
    width: 18px;
    height: 18px;
  }
  .social-icons {
    gap: 12px;
  }
  .contact-info {
    font-size: 0.75rem;
    gap: 6px 12px;
  }
  .contact-value {
    font-size: 0.7rem;
  }
  .credit-text {
    font-size: 0.7rem;
  }
}

@media (min-width: 600px) {
  .details-cards {
    max-width: 600px;
  }
}

@media (min-width: 900px) {
  .details-cards {
    max-width: 680px;
  }
  .rsvp-wrap {
    max-width: 600px;
  }
}

@media (max-width: 380px) {
  .hero-names {
    gap: 6px;
  }
  .name-left,
  .name-right {
    font-size: clamp(20px, 6vw, 26px);
  }
  .ampersand {
    font-size: clamp(28px, 7vw, 34px);
  }
  .invite-body {
    font-size: 12px;
  }
  .hero-event {
    font-size: 13px;
  }
  .card-value {
    font-size: 14px;
  }

  .social-link {
    width: 36px;
    height: 36px;
  }
  .social-link svg {
    width: 15px;
    height: 15px;
  }
  .social-icons {
    gap: 8px;
  }
}
