/* ============================================================
   خطوبة يوسف & ملك — تصميم فاخر
   ============================================================ */
:root {
  --bg: #0b0e17;
  --bg-2: #10141f;
  --gold: #d4af37;
  --gold-light: #f3e5ab;
  --gold-deep: #a67c00;
  --gold-grad: linear-gradient(160deg, #f9efc7 0%, #e8c876 30%, #d4af37 55%, #a67c00 80%, #e8c876 100%);
  --text: #ece7da;
  --text-dim: #b8b2a2;
  --serif-ar: "Amiri", serif;
  --display-ar: "Aref Ruqaa", serif;
  --script-en: "Great Vibes", cursive;
  --serif-en: "Cormorant Garamond", serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif-ar);
  overflow-x: hidden;
  line-height: 1.8;
}

::selection { background: rgba(212, 175, 55, .3); }

/* ===== scrollbar ===== */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--gold-deep), var(--gold)); border-radius: 9px; }

/* ============================================================
   غلاف الدعوة — ظرف فاخر
   ============================================================ */
.envelope-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: radial-gradient(ellipse at 50% 38%, #1a2138 0%, #0b0e17 68%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}
.envelope-overlay.opened { opacity: 0; visibility: hidden; pointer-events: none; }

.envelope-scene { text-align: center; position: relative; }

.env-glow {
  position: absolute; left: 50%; top: 36%;
  width: 520px; height: 520px;
  transform: translate(-50%, -50%) scale(.55);
  background: radial-gradient(circle, rgba(212,175,55,.3) 0%, rgba(212,175,55,.09) 42%, transparent 70%);
  opacity: 0;
  transition: opacity 1.5s ease, transform 1.5s ease;
  pointer-events: none;
}
.envelope-scene:has(.envelope.open) .env-glow {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

.envelope {
  position: relative;
  width: min(340px, 84vw); height: 216px;
  margin: 0 auto 42px;
  perspective: 1400px;
  animation: floatEnv 4s ease-in-out infinite;
}
@keyframes floatEnv {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-.6deg); }
}

/* ----- الورقة الداخلية ----- */
.env-letter {
  position: absolute; left: 7%; right: 7%; top: 6%; bottom: 10%;
  z-index: 2;
  background: linear-gradient(165deg, #faf5e6, #eadfc6 70%, #e0d2b4);
  border: 1px solid rgba(166,124,0,.5);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  transition: transform 1.15s cubic-bezier(.22,.9,.24,1);
}
.letter-monogram { font-family: var(--display-ar); font-size: 27px; color: #8a6a00; line-height: 1; }
.letter-monogram i { font-style: normal; color: #b8860b; font-size: 17px; padding: 0 5px; }
.letter-title { font-family: var(--serif-ar); font-size: 15px; color: #6d5600; letter-spacing: 3px; }
.letter-line { width: 46%; height: 1px; background: linear-gradient(90deg, transparent, #a67c00, transparent); }
.envelope.rise .env-letter { transform: translateY(-72%) rotate(-1.5deg); }

/* ----- جسم الظرف ----- */
.envelope-body {
  position: absolute; inset: 0;
  z-index: 3;
  background: linear-gradient(150deg, #232c47 0%, #161c30 55%, #101527 100%);
  border: 1px solid rgba(212,175,55,.6);
  border-radius: 10px;
  box-shadow:
    0 30px 70px rgba(0,0,0,.65),
    inset 0 0 50px rgba(212,175,55,.06),
    inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 22px;
}
.envelope-body::before {
  content: "";
  position: absolute; inset: 9px;
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 6px;
}
.envelope-body::after {
  content: "";
  position: absolute; inset: 13px;
  border: 1px dashed rgba(212,175,55,.18);
  border-radius: 4px;
}
.env-sheen {
  position: absolute; top: 0; bottom: 0; left: -70%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.09), transparent);
  transform: skewX(-18deg);
  animation: envSheen 4.5s ease-in-out infinite;
}
@keyframes envSheen { 0% { left: -70%; } 55%,100% { left: 130%; } }

.env-callig {
  position: relative;
  font-family: var(--display-ar);
  font-size: 30px;
  line-height: 1.4;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(212,175,55,.35));
}
.env-date {
  position: relative;
  margin-top: 2px;
  font-size: 12.5px;
  letter-spacing: 3px;
  color: rgba(232,200,118,.75);
}

/* ----- الغطاء ----- */
.envelope-flap {
  position: absolute; top: -1px; left: -1px; right: -1px; height: 56%;
  z-index: 4;
  background: linear-gradient(180deg, rgba(212,175,55,.85), rgba(166,124,0,.6));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top;
  transition: transform 1.15s cubic-bezier(.65,.05,.25,1);
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.5));
}
.envelope-flap::before {
  content: "";
  position: absolute; inset: 1.5px 2px 3px;
  background: linear-gradient(180deg, #2a3453 0%, #1a2138 70%, #141a2e 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.envelope-flap::after {
  content: "";
  position: absolute; inset: 10px 16px 16px;
  background:
    repeating-linear-gradient(45deg, rgba(212,175,55,.12) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(-45deg, rgba(212,175,55,.12) 0 2px, transparent 2px 9px);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.envelope.open .envelope-flap { transform: rotateX(180deg); z-index: 1; }

/* ----- ختم الشمع ----- */
.wax-seal {
  position: absolute;
  left: 50%; top: 56%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #f0d488, #c9a227 45%, #8a6a00 75%, #6b5200);
  color: #241a00;
  font-family: var(--display-ar);
  font-size: 19px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.55), inset 0 2px 5px rgba(255,255,255,.5), inset 0 -4px 8px rgba(0,0,0,.35);
  animation: sealPulse 2.4s ease-in-out infinite;
}
.wax-seal::before {
  content: "";
  position: absolute; inset: 5px;
  border-radius: 50%;
  border: 1px dashed rgba(36,26,0,.45);
}
.wax-seal::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,.35);
}
@keyframes sealPulse {
  0%,100% { box-shadow: 0 8px 22px rgba(0,0,0,.55), inset 0 2px 5px rgba(255,255,255,.5), inset 0 -4px 8px rgba(0,0,0,.35), 0 0 0 0 rgba(212,175,55,.4); }
  50% { box-shadow: 0 8px 22px rgba(0,0,0,.55), inset 0 2px 5px rgba(255,255,255,.5), inset 0 -4px 8px rgba(0,0,0,.35), 0 0 0 18px rgba(212,175,55,0); }
}
.wax-seal.crack { animation: sealCrack .55s ease-in forwards; }
@keyframes sealCrack {
  0% { transform: translate(-50%,-50%) scale(1); opacity: 1; filter: blur(0); }
  35% { transform: translate(-50%,-50%) scale(1.18) rotate(8deg); }
  100% { transform: translate(-50%,-50%) scale(1.5) rotate(-14deg); opacity: 0; filter: blur(3px); }
}

/* ----- زر الفتح ----- */
.open-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--serif-ar);
  font-size: 18px;
  padding: 12px 44px;
  border-radius: 40px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all .4s ease;
  position: relative;
  overflow: hidden;
}
.open-btn::after {
  content: "";
  position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-25deg);
  animation: btnShine 3s ease-in-out infinite;
}
@keyframes btnShine { 0% { left: -80%; } 50%,100% { left: 130%; } }
.open-btn svg { transition: transform .4s; }
.open-btn:hover { background: var(--gold-grad); color: #1a1400; box-shadow: 0 0 35px rgba(212,175,55,.45); }
.open-btn:hover svg { transform: translateY(3px); }

.envelope-hint {
  margin-top: 26px;
  font-family: var(--display-ar);
  font-size: 22px;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   الجزيئات الذهبية
   ============================================================ */
#particles {
  position: fixed; inset: 0; z-index: 101;
  pointer-events: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; z-index: 1;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("assets/hero-bg.png") center/cover no-repeat;
  animation: slowZoom 24s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(11,14,23,.25) 0%, rgba(11,14,23,.75) 100%);
}
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.08); } }

.hero-content { position: relative; padding: 90px 20px 70px; }

.bismillah {
  font-family: var(--serif-ar);
  font-size: 20px;
  color: var(--gold-light);
  opacity: .9;
  margin-bottom: 22px;
}

.top-line {
  font-size: 19px;
  color: var(--text-dim);
  letter-spacing: .5px;
  margin-bottom: 30px;
}

/* ===== الأسماء — أفخم خط ===== */
.names {
  font-family: var(--display-ar);
  font-weight: 700;
  line-height: 1.35;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.name {
  font-size: clamp(72px, 16vw, 150px);
  background: var(--gold-grad);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 22px rgba(212,175,55,.35));
  animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.amp { display: flex; flex-direction: column; align-items: center; margin: 2px 0; }
.ornament { width: min(320px, 70vw); height: 24px; }
.amp-latin {
  font-family: var(--script-en);
  font-size: 30px;
  color: var(--gold);
  line-height: 1;
  margin-top: -14px;
}

.names-latin {
  font-family: var(--script-en);
  font-size: clamp(34px, 7vw, 54px);
  color: var(--gold-light);
  margin-top: 18px;
  text-shadow: 0 0 25px rgba(212,175,55,.4);
}
.names-latin span { color: var(--gold); padding: 0 6px; }

.hero-date {
  margin-top: 34px;
  display: flex; align-items: center; justify-content: center; gap: 18px;
}
.hero-date .line {
  width: min(90px, 18vw); height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero-date .line:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.date-text {
  font-size: 20px;
  color: var(--gold-light);
  letter-spacing: 1px;
}

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 1.5px solid rgba(212,175,55,.6);
  border-radius: 16px;
  display: flex; justify-content: center; padding-top: 8px;
}
.scroll-hint span {
  width: 4px; height: 9px; border-radius: 4px;
  background: var(--gold);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0% { opacity: 1; transform: translateY(0);} 70% { opacity: 0; transform: translateY(14px);} 100% { opacity: 0;} }

/* ============================================================
   الأقسام العامة
   ============================================================ */
.section { position: relative; z-index: 1; padding: 100px 20px; }
.container { max-width: 1000px; margin: 0 auto; }

.section-title {
  font-family: var(--display-ar);
  font-size: clamp(30px, 6vw, 42px);
  font-weight: 700;
  text-align: center;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.section-title::after {
  content: "❖";
  display: block;
  -webkit-text-fill-color: var(--gold);
  font-size: 15px;
  margin-top: 10px;
  opacity: .8;
}

/* ===== الآية ===== */
.verse { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); padding: 80px 20px; }
.verse-text {
  font-family: var(--serif-ar);
  font-size: clamp(20px, 4vw, 28px);
  text-align: center;
  color: var(--gold-light);
  max-width: 800px;
  margin: 0 auto;
  line-height: 2.2;
}
.verse-ref {
  text-align: center;
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 15px;
  letter-spacing: 1px;
}

/* ===== العد التنازلي ===== */
.countdown {
  display: flex; justify-content: center; align-items: center;
  gap: clamp(8px, 3vw, 26px);
  margin-top: 40px;
  flex-wrap: wrap;
}
.count-box {
  min-width: clamp(74px, 18vw, 120px);
  padding: 22px 10px;
  background: linear-gradient(160deg, rgba(212,175,55,.09), rgba(212,175,55,.02));
  border: 1px solid rgba(212,175,55,.35);
  border-radius: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.count-box::before {
  content: "";
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}
.count-box:hover { transform: translateY(-5px); box-shadow: 0 14px 35px rgba(212,175,55,.18); }
.count-num {
  display: block;
  font-family: var(--serif-en);
  font-size: clamp(34px, 8vw, 52px);
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.count-label {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-dim);
  letter-spacing: 1px;
}
.count-sep {
  font-family: var(--serif-en);
  font-size: 34px;
  color: var(--gold);
  opacity: .6;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: .15; } }

/* ===== كروت التفاصيل ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin-top: 50px;
  max-width: 420px;
  margin-inline: auto;
}
.card {
  background: linear-gradient(165deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 18px;
  padding: 42px 26px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform .45s ease, border-color .45s, box-shadow .45s;
  backdrop-filter: blur(4px);
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% -20%, rgba(212,175,55,.16), transparent 65%);
  opacity: 0;
  transition: opacity .45s;
}
.card:hover { transform: translateY(-9px); border-color: rgba(212,175,55,.65); box-shadow: 0 22px 50px rgba(0,0,0,.45), 0 0 30px rgba(212,175,55,.12); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 62px; height: 62px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,.5);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  background: rgba(212,175,55,.06);
  position: relative;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 {
  font-family: var(--display-ar);
  font-size: 23px;
  color: var(--gold-light);
  margin-bottom: 14px;
  position: relative;
}
.card-main { font-size: 19px; color: var(--text); position: relative; }
.card-sub { font-size: 15.5px; color: var(--text-dim); position: relative; }

.map-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  color: var(--gold);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px dashed rgba(212,175,55,.4);
  padding-bottom: 2px;
  position: relative;
  transition: color .3s;
}
.map-link:hover { color: var(--gold-light); }

/* ===== RSVP ===== */
.rsvp { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }

.rsvp-frame {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 62px 46px 52px;
  background: linear-gradient(170deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid rgba(212,175,55,.45);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 0 70px rgba(212,175,55,.05);
  backdrop-filter: blur(6px);
}
.rsvp-frame::before {
  content: "";
  position: absolute; inset: 10px;
  border: 1px solid rgba(212,175,55,.25);
  pointer-events: none;
}
.corner {
  position: absolute; width: 26px; height: 26px;
  border: 0 solid var(--gold);
  filter: drop-shadow(0 0 6px rgba(212,175,55,.55));
}
.corner.tl { top: 4px; left: 4px; border-top-width: 2px; border-left-width: 2px; }
.corner.tr { top: 4px; right: 4px; border-top-width: 2px; border-right-width: 2px; }
.corner.bl { bottom: 4px; left: 4px; border-bottom-width: 2px; border-left-width: 2px; }
.corner.br { bottom: 4px; right: 4px; border-bottom-width: 2px; border-right-width: 2px; }

.rsvp-monogram {
  position: relative;
  width: 76px; height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,.6);
  background: radial-gradient(circle at 35% 30%, rgba(212,175,55,.2), transparent 70%);
  display: flex; align-items: center; justify-content: center; gap: 5px;
  color: var(--gold);
  font-family: var(--display-ar);
  font-size: 25px;
}
.rsvp-monogram svg { width: 15px; height: 15px; color: var(--gold-light); }
.rsvp-monogram::after {
  content: "";
  position: absolute; inset: -7px;
  border-radius: 50%;
  border: 1px dashed rgba(212,175,55,.4);
  animation: spinSlow 26s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

.rsvp-sub { text-align: center; color: var(--text-dim); margin-bottom: 42px; font-size: 17px; }

.rsvp-form {
  max-width: 430px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 30px;
}

.radios { flex-direction: row; justify-content: center; gap: 14px; flex-wrap: wrap; }
.radio { cursor: pointer; user-select: none; }
.radio input { display: none; }
.radio span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px;
  border-radius: 40px;
  border: 1px solid rgba(212,175,55,.35);
  color: var(--text-dim);
  font-size: 16px;
  transition: all .35s ease;
}
.radio span svg { width: 15px; height: 15px; opacity: .75; }
.radio:hover span { border-color: var(--gold); color: var(--gold-light); }
.radio:has(input:checked) span {
  background: var(--gold-grad);
  color: #1a1400;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(212,175,55,.35);
}
.radio:has(input:checked):hover span { color: #1a1400; }

.seal-btn {
  align-self: center;
  position: relative;
  width: 98px; height: 98px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: radial-gradient(circle at 34% 30%, #e9cd79, #b8860b 55%, #7a5a00 100%);
  color: #241a00;
  font-family: var(--display-ar);
  font-size: 19px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,.5), inset 0 2px 6px rgba(255,255,255,.45), inset 0 -6px 12px rgba(0,0,0,.3);
  transition: transform .3s ease, box-shadow .3s ease;
  margin-top: 4px;
}
.seal-btn:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 40px rgba(212,175,55,.4), inset 0 2px 6px rgba(255,255,255,.45), inset 0 -6px 12px rgba(0,0,0,.3);
}
.seal-ring {
  position: absolute; inset: -9px;
  border-radius: 50%;
  border: 1px dashed rgba(212,175,55,.5);
  animation: spinSlow 18s linear infinite;
}
.seal-text { position: relative; }

.form-thanks {
  text-align: center;
  color: var(--gold-light);
  font-size: 18px;
  opacity: 0;
  transform: translateY(8px);
  transition: all .6s ease;
  pointer-events: none;
}
.form-thanks.show { opacity: 1; transform: translateY(0); }

/* ===== الفوتر ===== */
.footer {
  position: relative; z-index: 1;
  padding: 70px 20px 60px;
  text-align: center;
  border-top: 1px solid rgba(212,175,55,.2);
  background: radial-gradient(ellipse at top, rgba(212,175,55,.06), transparent 60%);
}
.footer-names {
  font-family: var(--display-ar);
  font-size: 40px;
  font-weight: 700;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-names span { font-family: var(--script-en); -webkit-text-fill-color: var(--gold); padding: 0 8px; font-size: 32px; }
.footer-latin {
  font-family: var(--script-en);
  font-size: 26px;
  color: var(--gold-light);
  margin-top: 4px;
}
.footer-note {
  margin-top: 14px;
  color: var(--text-dim);
  letter-spacing: 3px;
  font-size: 15px;
}
.footer-duaa {
  margin-top: 26px;
  font-size: 17px;
  color: var(--gold-light);
  opacity: .85;
}

/* ===== زر الموسيقى ===== */
.music-toggle {
  position: fixed;
  bottom: 22px; left: 22px;
  z-index: 50;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,.55);
  background: rgba(16, 20, 31, .85);
  color: var(--gold);
  cursor: pointer;
  display: none;
  align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  transition: all .3s;
}
.music-toggle.available { display: flex; }
.music-toggle:hover { box-shadow: 0 0 20px rgba(212,175,55,.35); }
.music-toggle svg { width: 20px; height: 20px; }
.music-toggle .icon-pause { display: none; }
.music-toggle.playing { animation: spinDisk 4s linear infinite; }
.music-toggle.playing .icon-play { display: none; }
.music-toggle.playing .icon-pause { display: block; }
@keyframes spinDisk { to { transform: rotate(360deg); } }

/* ============================================================
   ظهور تدريجي عند التمرير
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .18s; }
.delay-2 { transition-delay: .36s; }

/* ===== موبايل ===== */
@media (max-width: 640px) {
  .section { padding: 70px 16px; }
  .count-sep { display: none; }
  .countdown { gap: 12px; }
  .envelope { width: min(300px, 82vw); height: 190px; }
  .env-callig { font-size: 24px; }
  .wax-seal { width: 62px; height: 62px; font-size: 16px; }
  .hero-content { padding: 70px 14px 60px; }
  .music-toggle { bottom: 14px; left: 14px; width: 42px; height: 42px; }
}

/* ===== تقليل الحركة ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .2s !important; }
}
