/* ========== VARIABLES ========== */
:root {
  --burgundy: #6e0f22;
  --burgundy-deep: #4b0a17;
  --burgundy-light: #8c1a31;
  --cream: #f7f1e6;
  --white: #ffffff;
  --gold: #c9a24b;
  --gold-soft: #e4cc8f;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  /* Prevent bouncy over-scroll on iOS which causes jank */
  overscroll-behavior: none;
}
/* FIX: منع أي overflow-x على كل الجهاز */
html,
body {
  overflow-x: hidden;
  width: 100%;
  /* iOS momentum scrolling */
  -webkit-overflow-scrolling: touch;
}
body {
  background: var(--burgundy);
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
}
body.menu-open {
  overflow: hidden;
} /* FIX: يمنع سكرول الخلفية لما المينيو مفتوح على الموبايل */
::selection {
  background: var(--gold);
  color: var(--burgundy-deep);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  background-image:
    radial-gradient(circle at 25px 25px, var(--gold) 2px, transparent 2px),
    radial-gradient(circle at 75px 75px, var(--gold) 2px, transparent 2px);
  background-size: 100px 100px;
}

/* ========== TOP HEADER WRAPPER (Navbar + Live Ticker) ========== */
.top-header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

/* ========== NAVBAR ========== */
.navbar {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 40px;
  background: rgba(75, 10, 23, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 162, 75, 0.3);
  transition:
    padding 0.4s var(--ease),
    background 0.4s var(--ease);
}
.navbar.shrink {
  padding: 6px 40px;
  background: rgba(60, 8, 18, 0.95);
}

/* --- روابط الديسكتوب (يمين/شمال) --- */
.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  flex: 1;
}

.nav-links-desktop:first-child {
  justify-content: flex-start;
}

.nav-links-desktop:last-of-type {
  justify-content: flex-end;
}
.nav-links-desktop a {
  color: var(--cream);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Cinzel', serif;
  position: relative;
  padding: 4px 0;
}
.nav-links-desktop a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: 0.4s var(--ease);
  transform: translateX(-50%);
}
.nav-links-desktop a:hover::after {
  width: 100%;
}

/* --- اسم البراند (كليكابل) --- */
.nav-names {
  font-family: 'Tangerine', cursive;
  font-size: clamp(30px, 4vw, 58px);
  color: var(--white);
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  cursor: pointer; /* FIX: يبقى كليكابل */
  background: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 auto;
  transition:
    transform 0.35s var(--ease),
    filter 0.35s var(--ease);
}
.nav-names:hover,
.nav-names:focus-visible {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(201, 162, 75, 0.55));
  outline: none;
}
.nav-names .amp {
  color: var(--gold-soft);
  font-size: 0.85em;
}
.brackets {
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 22px;
  opacity: 0.8;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 110;
}
.burger span {
  width: 26px;
  height: 2px;
  background: var(--gold);
  transition: 0.35s var(--ease);
}
.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- زرار الصوت فى النافبار --- */
.music-toggle {
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.35s var(--ease);
  z-index: 110;
  flex-shrink: 0;
  line-height: 1;
  order: -1;
}
.music-toggle:hover {
  background: var(--gold);
  color: var(--burgundy);
  transform: scale(1.1);
}

/* --- مينيو الموبايل الموحّد (fix: كل اللينكات في مكان واحد) --- */
.nav-links-mobile {
  display: none;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 180px 20px 220px;
  overflow: hidden;
  z-index: 1;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/imgs/background.png') center center / cover no-repeat;
  opacity: 0.22;
  z-index: -2;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 50%,
    transparent 15%,
    rgba(75, 10, 23, 0.4) 70%,
    rgba(75, 10, 23, 0.85) 100%
  );
  z-index: -1;
  pointer-events: none;
}
.hero-kicker {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 2px;
  font-size: clamp(13px, 2vw, 17px);
  color: var(--gold-soft);
  margin-bottom: 6px;
  font-style: italic;
  max-width: 600px;
  line-height: 1.5;
  text-align: center;
  opacity: 0.92;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 20px);
  font-style: italic;
  opacity: 0.85;
  margin-bottom: 26px;
}

.frame {
  position: relative;
  width: min(300px, 72vw);
  aspect-ratio: 3/4;
  padding: 16px;
  border-radius: 4px;
  background: linear-gradient(
    145deg,
    var(--gold-soft),
    var(--gold) 35%,
    #8a6d2a 55%,
    var(--gold-soft)
  );
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.45),
    inset 0 0 0 2px rgba(255, 255, 255, 0.25);
  animation: floatY 6s ease-in-out infinite;
  will-change: transform;
}
.frame::before,
.frame::after {
  content: '❧';
  position: absolute;
  color: var(--gold-soft);
  font-size: clamp(24px, 4vw, 34px);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.frame::before {
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
}
.frame::after {
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
}
.frame-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 3px solid #6b5220;
  background: #2a0a12;
}
.frame-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: sepia(0.15) saturate(1.05);
  transition: transform 1.2s var(--ease);
}
.frame:hover .frame-inner img {
  transform: scale(1.07);
}
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

/* ========== HERO STAGE (Reception - Frame - Church) ========== */
.hero-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 48px);
  width: 100%;
  max-width: 1220px;
  margin: 10px auto 25px;
  position: relative;
  z-index: 2;
}
.hero-center-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.hero-event-col {
  flex: 1;
  max-width: 310px;
  min-width: 210px;
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
  padding: 10px 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-event-img-wrap {
  width: min(100%, 265px);
  aspect-ratio: auto; /* الصورة تاخد طولها الطبيعي — مفيش قص */
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  background: transparent;
  line-height: 0; /* نشيل الفراغ تحت الصورة */
}
.hero-event-img {
  width: 100%;
  height: auto; /* contain بدل cover — الصورة كلها تبان */
  object-fit: contain;
  display: block;
  transition: transform 0.8s var(--ease);
}
.hero-event-col:hover .hero-event-img {
  transform: scale(1.07);
}
.hero-event-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.hero-event-title {
  font-family: 'Zain', 'Cinzel', serif;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 600;
  color: var(--gold-soft);
  margin-bottom: 5px;
  line-height: 1.35;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.hero-event-loc {
  font-family: 'Harmattan', 'Cormorant Garamond', serif;
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--cream);
  opacity: 0.95;
  margin-bottom: 6px;
  line-height: 1.4;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.hero-event-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 12px;
  font-size: clamp(13px, 1vw, 15px);
  color: var(--gold-soft);
  opacity: 0.9;
}
.hero-map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  background: rgba(201, 162, 75, 0.15);
  color: var(--cream);
  border: 1px solid var(--gold);
  border-radius: 30px;
  font-family: 'Cinzel', 'Cairo', serif;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-decoration: none;
  min-height: 38px;
  transition: all 0.35s var(--ease);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-map-btn:hover {
  background: var(--gold);
  color: var(--burgundy-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 162, 75, 0.4);
}

/* FIX: تحكم أدق فى حجم الاسم الكبير */
.hero-script {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Tangerine', cursive;
  font-size: clamp(56px, 12vw, 120px);
  color: var(--white);
  opacity: 0.95;
  white-space: nowrap;
  pointer-events: none;
  line-height: 0.8;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 3;
  max-width: 96vw;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}
.pill {
  border: 1px solid var(--gold);
  padding: 12px 22px;
  border-radius: 40px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 2px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.btn {
  background: var(--cream);
  color: var(--burgundy);
  border: 0;
  cursor: pointer;
  padding: 12px 26px;
  border-radius: 40px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px; /* FIX: touch target */
  transition: 0.35s var(--ease);
}
.sendButton {
  background-color: var(--burgundy-deep);
  color: var(--white);
  border: 0;
}
.btn:hover {
  background: var(--gold);
  color: #2a0a12;
  transform: translateY(-3px);
}

/* ========== CLOUDS ========== */
.clouds {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 2;
}
.clouds svg {
  width: 100%;
  height: auto;
  display: block;
}
.cloud-layer-2 {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 105%;
  opacity: 0.55;
  animation: drift 26s linear infinite alternate;
}
@keyframes drift {
  from {
    transform: translateX(-2%);
  }
  to {
    transform: translateX(2%);
  }
}

/* ========== SECTION SHELL ========== */
.section {
  position: relative;
  padding: 90px 20px;
  z-index: 3;
}
.section.light {
  background: var(--cream);
  color: var(--burgundy-deep);
}
/* تنويع ألوان السكاشن — dark-alt: خلفية بورجندي داكنة مميزة */
.section.dark-alt {
  background: var(--burgundy); /* نفس اللون النبيتى الأساسى */
  color: var(--cream);
}
.container {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}
.sec-title {
  font-family: 'Tangerine', 'Zain', cursive;
  font-size: clamp(48px, 9vw, 104px);
  text-align: center;
  line-height: 1;
  margin-bottom: 6px;
}
.sec-tag {
  text-align: center;
  font-family: 'Cinzel', 'Harmattan', serif;
  letter-spacing: 5px;
  font-size: clamp(10px, 1.5vw, 12px);
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 44px;
}
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin: 26px 0 44px;
}
.divider i {
  height: 1px;
  width: 70px;
  background: currentColor;
  opacity: 0.4;
}
.divider span {
  font-size: 20px;
  color: var(--gold);
}

/* ========== CARD ========== */
.card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
  border: 1px solid rgba(201, 162, 75, 0.35);
  padding: clamp(22px, 3.5vw, 36px);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.card:hover {
  border-color: rgba(201, 162, 75, 0.65);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.35);
}
.section.light .card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(201, 162, 75, 0.4);
  box-shadow: 0 16px 36px rgba(110, 15, 34, 0.08);
}
.section.light .card:hover {
  box-shadow: 0 22px 45px rgba(110, 15, 34, 0.14);
}
.card.alt {
  direction: rtl;
}
.card.alt > * {
  direction: ltr;
}
.card-img {
  overflow: hidden;
  border: 5px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
  aspect-ratio: 4/3;
  width: 100%;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.card:hover .card-img img {
  transform: scale(1.08);
}
.card h3 {
  font-family: 'Cinzel', serif;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.card p {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 8px;
}
.info-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 8px 0;
  font-size: clamp(15px, 1.8vw, 18px);
}
.info-row b {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 2px;
  opacity: 0.7;
  white-space: nowrap;
}

/* ========== SCROLL ANIMATIONS (Reversible) ========== */
.reveal {
  opacity: 0;
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  will-change: transform, opacity; /* FIX: أداء أنعم */
}
.from-left {
  transform: translateX(-90px);
}
.from-right {
  transform: translateX(90px);
}
.from-bottom {
  transform: translateY(60px);
}
.zoom {
  transform: scale(0.92);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 600px) {
  /* FIX: على الموبايل نقلل مسافة الحركة عشان تبقى ناعمة ومريحة */
  .from-left {
    transform: translateX(-40px);
  }
  .from-right {
    transform: translateX(40px);
  }
  .from-bottom {
    transform: translateY(35px);
  }
}

/* ========== COUNTDOWN ========== */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 2.5vw, 20px);
  justify-content: center;
  max-width: 680px;
  margin: 36px auto 0;
  width: 100%;
}
.cd-box {
  padding: clamp(16px, 2.5vw, 24px) clamp(8px, 1.5vw, 14px);
  border: 1px solid rgba(201, 162, 75, 0.45);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 25px rgba(110, 15, 34, 0.08);
  text-align: center;
  border-radius: 8px;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.cd-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(110, 15, 34, 0.15);
  border-color: var(--gold);
}
.cd-box strong {
  display: block;
  font-size: clamp(26px, 4.5vw, 42px);
  font-family: 'Cinzel', serif;
  color: var(--burgundy);
  line-height: 1.1;
  margin-bottom: 4px;
}
.cd-box span {
  font-size: clamp(9px, 1.4vw, 11px);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--burgundy-deep);
  opacity: 0.8;
  font-weight: 600;
}

/* ========== TIMELINE ========== */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 30px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.tl-item {
  position: relative;
  margin-bottom: 34px;
}
.tl-item::before {
  content: '✦';
  position: absolute;
  left: -30px;
  top: 2px;
  color: var(--gold);
}
.tl-item h4 {
  font-family: 'Zain', 'Cinzel', serif;
  font-size: clamp(15px, 2vw, 17px);
  letter-spacing: 1px;
}
.tl-item span {
  font-family: 'Harmattan', 'Cormorant Garamond', serif;
  font-size: clamp(15px, 2vw, 17px);
  opacity: 0.75;
}

/* ========== RSVP ========== */
.rsvp-form {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: 1px solid rgba(201, 162, 75, 0.6);
  color: inherit;
  font-family: 'Harmattan', 'Cormorant Garamond', serif;
  font-size: 16px;
  border-radius: 3px;
  min-height: 48px; /* FIX: touch friendly */
}
.rsvp-form textarea {
  min-height: 100px;
}
.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  outline: 1px solid var(--gold);
}
.rsvp-form option {
  color: #000;
}
.msg-ok {
  text-align: center;
  color: var(--gold-soft);
  min-height: 24px;
  font-style: italic;
}

/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 60px 20px 34px;
  background: var(--burgundy-deep);
  border-top: 1px solid rgba(201, 162, 75, 0.4);
  position: relative;
  z-index: 3;
}
footer .f-names {
  font-family: 'Tangerine', cursive;
  font-size: clamp(44px, 8vw, 70px);
  color: var(--white);
}
footer small {
  display: block;
  margin-top: 18px;
  letter-spacing: 2px;
  font-size: 12px;
  opacity: 0.7;
  font-family: 'Cinzel', serif;
}
footer a {
  color: var(--gold-soft);
  text-decoration: none;
}

#top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: 0.4s;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(75, 10, 23, 0.85);
  color: var(--gold);
  cursor: pointer;
  font-size: 18px;
}
#top.show {
  opacity: 1;
  pointer-events: auto;
}

/* ================================================================
   RESPONSIVE BREAKPOINTS (FIX: أعيد بناؤها بالكامل)
   ================================================================ */

/* --- Tablet & below: تفعيل مينيو الموبايل --- */
@media (max-width: 900px) {
  .navbar {
    padding: 12px 20px;
    justify-content: space-between;
  }
  .nav-links-desktop {
    display: none;
  } /* إخفاء الروابط المقسومة */
  .music-toggle {
    order: 1;
    margin-right: auto;
  }
  .nav-names {
    order: 2;
    flex: 1 1 auto;
    justify-content: center;
  }
  .burger {
    display: flex;
    order: 3;
    margin-left: 8px;
  }

  .nav-links-mobile {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--burgundy-deep);
    padding: 110px 30px 40px;
    gap: 22px;
    list-style: none;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
    z-index: 105;
    overflow-y: auto;
  }
  .nav-links-mobile.open {
    transform: translateX(0);
  }
  .nav-links-mobile a {
    color: var(--cream);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 0;
    border-bottom: 1px solid rgba(201, 162, 75, 0.2);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  /* طبقة تعتيم خلف المينيو */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 104;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
  }
  .nav-overlay.show {
    opacity: 1;
    pointer-events: auto;
  }

  .hero-stage {
    flex-direction: column;
    gap: 28px;
  }
  .hero-center-col {
    order: 1;
    margin-bottom: 6px;
  }
  .hero-event-right {
    order: 2;
  }
  .hero-event-left {
    order: 3;
  }
  .hero-event-col {
    max-width: 320px;
    width: 100%;
  }

  .card {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 620px;
  }
  .card.alt {
    direction: ltr;
  }
  .hero-script {
    bottom: -24px;
    font-size: clamp(52px, 14vw, 95px);
  }
}

/* --- موبايل صغير --- */
@media (max-width: 600px) {
  .hero {
    padding: 130px 16px 170px;
  }
  .hero::before {
    background: url('assets/imgs/background-responsive.jpg') center center /
      cover no-repeat;
    opacity: 0.18;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero::after {
    background: radial-gradient(
      ellipse at 50% 50%,
      transparent 5%,
      rgba(75, 10, 23, 0.25) 60%,
      rgba(75, 10, 23, 0.65) 100%
    );
  }
  .hero-stage {
    gap: 24px;
    margin-top: 10px;
  }
  .hero-event-col {
    max-width: 100%;
    padding: 6px 12px;
  }
  .hero-event-img-wrap {
    width: min(100%, 215px);
    aspect-ratio: auto;
    margin-bottom: 8px;
  }
  .hero-event-title {
    font-size: 16px;
  }
  .hero-event-loc {
    font-size: 14px;
  }
  .hero-event-meta {
    font-size: 13px;
    margin-bottom: 8px;
  }
  .hero-map-btn {
    padding: 7px 16px;
    font-size: 11px;
    min-height: 34px;
  }
  .hero-script {
    bottom: -22px;
    font-size: clamp(48px, 16vw, 84px);
  }
  .frame {
    width: min(265px, 78vw);
    padding: 12px;
  }
  .section {
    padding: 60px 16px;
  }
  .divider i {
    width: 45px;
  }
  .card {
    padding: 20px 16px;
    border-radius: 10px;
    gap: 18px;
  }
  .card-img {
    border-width: 4px;
    border-radius: 6px;
    aspect-ratio: 16/10;
  }
  .card .btn {
    width: 100%;
    margin-top: 14px;
  }
  .info-row {
    font-size: 15px;
  }
  .countdown {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 26px;
  }
  .cd-box {
    padding: 12px 4px;
    border-radius: 6px;
  }
  .cd-box strong {
    font-size: clamp(20px, 5.5vw, 28px);
  }
  .cd-box span {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .nav-names {
    font-size: clamp(24px, 7vw, 34px);
  }
  .brackets {
    font-size: 16px;
  }
  .btn {
    padding: 12px 20px;
    font-size: 12px;
  }
}

/* --- موبايل صغير جداً --- */
@media (max-width: 380px) {
  .hero-script {
    font-size: clamp(42px, 15vw, 64px);
    bottom: -18px;
  }
  .sec-title {
    font-size: clamp(38px, 10vw, 60px);
  }
  .countdown {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .cd-box {
    padding: 12px 6px;
  }
}

/* ================================================================
   INVITATION OVERLAY (Envelope intro)
   ================================================================ */
.invite-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(16px, 3vw, 28px);
  background:
    radial-gradient(
      ellipse at 50% 35%,
      rgba(140, 26, 49, 0.55),
      transparent 60%
    ),
    radial-gradient(
      ellipse at 50% 110%,
      rgba(201, 162, 75, 0.12),
      transparent 55%
    ),
    var(--burgundy-deep);
  transition:
    opacity 1.1s var(--ease),
    visibility 1.1s;
}
.invite-overlay.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* حاوية الظرف - مربعة 1:1 بنفس أبعاد الصورتين الأصلية تماماً (1500x1500) */
.invite-stage {
  position: relative;
  /* 100dvh ناقص مساحة النصوص — الظرف مهما صغرت الشاشة ميعملش تداخل */
  width: min(88vw, max(230px, calc(100dvh - 300px)), 700px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.35s var(--ease);
}
.invite-stage:hover {
  transform: scale(1.015);
}
.invite-stage:active {
  transform: scale(0.985);
}
.invite-stage.gone {
  pointer-events: none;
}

/* الصورتين بنفس الحجم والمساحة تماماً بدون أى اختلاف فى السكيل */
/* picture elements need to fill the stage like the old img did */
.invite-stage picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.invite-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  transition: opacity 0.8s var(--ease);
  will-change: opacity;
}
.invite-closed {
  opacity: 1;
}
.invite-stage picture:has(.invite-closed) {
  z-index: 1;
}
.invite-stage picture:has(.invite-opened) {
  z-index: 2;
}
.invite-opened {
  opacity: 0;
}
.invite-overlay.opened .invite-closed {
  opacity: 0;
}
.invite-overlay.opened .invite-opened {
  opacity: 1;
}

/* --- عنوان فوق الظرف — Birthstone، متسنتر --- */
.invite-title {
  font-family: 'Birthstone', 'Tangerine', cursive;
  font-size: clamp(26px, 6vw, 58px);
  max-width: 92vw;
  overflow-wrap: break-word;
  color: var(--gold-soft);
  letter-spacing: 1px;
  text-align: center;
  width: 100%;
  margin-bottom: clamp(8px, 2vh, 22px);
  opacity: 0.95;
  z-index: 5;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  line-height: 1.15;
}

/* --- تلميح تحت الظرف (Click here + سهم) --- */
.invite-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: clamp(10px, 2.5vh, 22px);
  z-index: 5;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    opacity 0.6s var(--ease),
    visibility 0.6s;
}
.invite-bottom.gone {
  opacity: 0;
  visibility: hidden;
}
.invite-arrow {
  font-size: clamp(22px, 4vw, 32px);
  color: var(--gold);
  text-shadow: 0 0 12px rgba(201, 162, 75, 0.6);
  animation: arrowBounce 1.4s ease-in-out infinite;
  line-height: 1;
  /* السهم لازم يباونس ناحية الظرف (لفوق) */
  display: inline-block;
}
@keyframes arrowBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.invite-cta {
  font-family: 'Edu QLD Hand', 'Cormorant Garamond', cursive;
  font-size: clamp(17px, 2.6vw, 23px);
  letter-spacing: 0.5px;
  color: var(--cream);
  opacity: 0.95;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* --- شعار تحت --- */
.invite-tagline {
  font-family: 'Birthstone', 'Tangerine', cursive;
  font-size: clamp(16px, 4vw, 30px);
  max-width: 94vw;
  overflow-wrap: break-word;
  letter-spacing: 1.5px;
  color: var(--gold-soft);
  opacity: 0.85;
  margin-top: clamp(6px, 1.5vh, 14px);
  text-align: center;
  width: 100%;
  padding: 0 12px;
  z-index: 5;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

@keyframes hintFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* قفل السكرول خلف الأوفرلاى */
body.invite-locked {
  overflow: hidden;
}

/* --- ختم الشمع (زرار Open) - مظبوط تماماً فوق مكان الختم فى الظرف المقفول --- */

/* --- تلميح أسفل الشاشة --- */
.invite-hint {
  position: absolute;
  left: 50%;
  bottom: 5%;
  transform: translateX(-50%);
  width: 100%;
  padding: 0 16px;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: clamp(10px, 1.6vw, 13px);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-soft);
  opacity: 0.85;
  transition:
    opacity 0.6s var(--ease),
    visibility 0.6s;
  animation: hintFloat 2.2s ease-in-out infinite;
  z-index: 5;
  pointer-events: none;
}
.invite-hint.gone {
  opacity: 0;
  visibility: hidden;
}
@keyframes hintFloat {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-6px);
  }
}

/* قفل السكرول خلف الأوفرلاى */
body.invite-locked {
  overflow: hidden;
}

/* --- ختم الشمع — نفس الشكل الأصلى، جواه Click here + سهم باونس --- */
.wax-seal {
  position: absolute;
  left: 50%;
  top: 53.6%; /* فوق الختم المطبوع فى الظرف بالظبط */
  transform: translate(-50%, -50%);
  width: clamp(86px, 15vw, 120px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-family: 'Edu QLD Hand', 'Cormorant Garamond', cursive;
  color: var(--gold-soft);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  background:
    radial-gradient(
      circle at 32% 26%,
      rgba(255, 255, 255, 0.22),
      transparent 42%
    ),
    radial-gradient(
      circle at 50% 50%,
      var(--burgundy-light) 0%,
      var(--burgundy) 52%,
      var(--burgundy-deep) 100%
    );
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.55),
    inset 0 3px 6px rgba(255, 255, 255, 0.2),
    inset 0 -8px 14px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.35s var(--ease),
    opacity 0.6s var(--ease),
    visibility 0.6s;
  animation: sealPulse 2.4s ease-in-out infinite;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
}
/* إطار ذهبى داخلى للختم */
.wax-seal::before {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 75, 0.6);
  box-shadow:
    inset 0 0 0 3px rgba(75, 10, 23, 0.55),
    0 0 12px rgba(201, 162, 75, 0.25);
  pointer-events: none;
}
.seal-cta {
  position: relative;
  z-index: 1;
  font-size: clamp(10px, 1.6vw, 13px);
  line-height: 1.1;
  letter-spacing: 0.5px;
}
.seal-arrow {
  position: relative;
  z-index: 1;
  font-size: clamp(12px, 2vw, 16px);
  color: var(--gold);
  text-shadow: 0 0 10px rgba(201, 162, 75, 0.6);
  animation: arrowBounce 1.4s ease-in-out infinite;
  display: inline-block;
}
.wax-seal:hover,
.wax-seal:focus-visible {
  transform: translate(-50%, -50%) scale(1.08);
  outline: none;
}
.wax-seal:active {
  transform: translate(-50%, -50%) scale(0.95);
}
.wax-seal.gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.6);
}
@keyframes sealPulse {
  0%,
  100% {
    box-shadow:
      0 14px 32px rgba(0, 0, 0, 0.55),
      inset 0 3px 6px rgba(255, 255, 255, 0.2),
      inset 0 -8px 14px rgba(0, 0, 0, 0.45),
      0 0 0 0 rgba(201, 162, 75, 0.45);
  }
  50% {
    box-shadow:
      0 14px 32px rgba(0, 0, 0, 0.55),
      inset 0 3px 6px rgba(255, 255, 255, 0.2),
      inset 0 -8px 14px rgba(0, 0, 0, 0.45),
      0 0 0 20px rgba(201, 162, 75, 0);
  }
}

/* ================================================================
   GUEST WISHES LIVE TICKER (Pure Ethereal Floating in Air)
   ================================================================ */
.wishes-ticker {
  position: relative;
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0 20px;
  transition: all 0.35s var(--ease);
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 4, 9, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 162, 75, 0.4);
  border-radius: 20px;
  padding: 3px 10px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold-soft);
  flex-shrink: 0;
  margin-right: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ticker-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 8px #2ecc71;
  animation: liveDotPulse 2s infinite ease-in-out;
}

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

.ticker-badge .ticker-icon {
  font-size: 12px;
}

.ticker-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  user-select: none;
  touch-action: pan-y;
  cursor: grab;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 4%,
    black 96%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 4%,
    black 96%,
    transparent
  );
}

.ticker-viewport:active {
  cursor: grabbing;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  gap: 0;
  padding: 0 4px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* Free Floating Message in Air */
.ticker-item {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 4px 14px;
  margin: 0 10px;
  transition:
    transform 0.3s var(--ease),
    filter 0.3s var(--ease);
  cursor: grab;
}

.ticker-item:hover {
  transform: translateY(-1.5px) scale(1.025);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

.ticker-item .v-crest {
  font-size: 13px;
  color: var(--gold);
  margin-right: 6px;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.7));
  user-select: none;
}

.ticker-item .sender-name {
  font-family: 'Cinzel', serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #fce8b3;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.9),
    0 0 8px rgba(201, 162, 75, 0.4);
  display: inline-flex;
  align-items: center;
}

.ticker-item .v-divider {
  color: var(--gold);
  margin: 0 7px;
  font-weight: bold;
  opacity: 0.8;
  font-size: 13px;
  text-shadow: 0 0 6px var(--gold);
}

.ticker-item .msg-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17.5px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.35px;
  color: #ffffff;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.95),
    0 0 10px rgba(255, 255, 255, 0.25);
}

.ticker-item .sep {
  color: var(--gold-soft);
  margin-left: 16px;
  opacity: 0.75;
  font-size: 9px;
  text-shadow: 0 0 8px var(--gold);
  user-select: none;
}

.ticker-item.floating-welcome .msg-text {
  color: #f7ecd2;
}

/* Quick Action: Wish Couple Button */
.ticker-leave-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(30, 4, 9, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 162, 75, 0.5);
  border-radius: 20px;
  padding: 4px 12px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fff8eb;
  text-decoration: none;
  flex-shrink: 0;
  margin-left: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s var(--ease);
}

.ticker-leave-btn:hover {
  background: var(--gold);
  color: var(--burgundy-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.ticker-admin-btn {
  background: rgba(30, 4, 9, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 162, 75, 0.35);
  color: var(--gold-soft);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-left: 8px;
  transition: all 0.3s var(--ease);
  opacity: 0.85;
}

.ticker-admin-btn:hover {
  opacity: 1;
  border-color: var(--gold);
  background: rgba(201, 162, 75, 0.25);
  transform: scale(1.08);
}

@media (max-width: 900px) {
  .wishes-ticker {
    height: 40px;
    padding: 0 10px;
  }
  .ticker-badge .ticker-label {
    display: none;
  }
  .ticker-badge {
    padding: 2px 7px;
    margin-right: 6px;
  }
  .ticker-leave-btn .btn-text {
    display: none;
  }
  .ticker-leave-btn {
    padding: 3px 8px;
    margin-left: 6px;
  }
  .ticker-item {
    padding: 3px 8px;
    margin: 0 6px;
  }
  .ticker-item .sender-name {
    font-size: 11px;
  }
  .ticker-item .msg-text {
    font-size: 14.5px;
  }
}

/* ================================================================
   ADMIN MODERATION MODAL
   ================================================================ */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(20, 2, 6, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding أصغر على الموبايل */
  padding: clamp(8px, 3vw, 20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease),
    visibility 0.35s;
}

.admin-modal-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.admin-modal-card {
  width: 100%;
  max-width: 580px;
  max-height: min(85vh, 640px);
  background: linear-gradient(145deg, #3d0713, #22030a);
  border: 1px solid var(--gold);
  border-radius: 8px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.65),
    0 0 20px rgba(201, 162, 75, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--cream);
  transform: scale(0.94);
  transition: transform 0.35s var(--ease);
  /* نضمن ما تتقصش على الموبايل */
  box-sizing: border-box;
  min-width: 0;
}

.admin-modal-overlay.show .admin-modal-card {
  transform: scale(1);
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(201, 162, 75, 0.3);
  background: rgba(0, 0, 0, 0.25);
}

.admin-modal-header h3 {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  letter-spacing: 1.5px;
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.admin-close-btn {
  background: none;
  border: 0;
  color: var(--cream);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s;
  padding: 0 4px;
}

.admin-close-btn:hover {
  color: var(--gold);
}

.admin-auth-box {
  padding: 30px 24px;
  text-align: center;
}

.admin-auth-box p {
  font-size: 17px;
  margin-bottom: 18px;
  opacity: 0.9;
}

.admin-pin-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  max-width: 320px;
  margin: 0 auto;
}

.admin-pin-row input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--cream);
  font-family: 'Cinzel', serif;
  font-size: 16px;
  letter-spacing: 2px;
  text-align: center;
}

.admin-pin-row input:focus {
  outline: 1px solid var(--gold-soft);
}

.admin-btn-sm {
  padding: 8px 18px !important;
  min-height: auto !important;
  font-size: 13px !important;
}

.admin-err-msg {
  color: #ff7675;
  font-size: 14px;
  margin-top: 10px;
  min-height: 20px;
}

.admin-panel-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  padding: 18px 24px 24px;
}

.admin-panel-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201, 162, 75, 0.2);
}

.admin-stats {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--gold-soft);
}

.admin-btn-text {
  background: none;
  border: 0;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: opacity 0.25s;
}

.admin-btn-text:hover {
  text-decoration: underline;
}

.admin-messages-list {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}

.admin-msg-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(201, 162, 75, 0.25);
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.25s;
}

.admin-msg-card:hover {
  border-color: rgba(201, 162, 75, 0.5);
}

.admin-msg-info {
  flex: 1;
}

.admin-msg-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.admin-msg-name {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-soft);
}

.admin-msg-tag {
  font-size: 11px;
  font-family: 'Cinzel', serif;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.4);
}

.admin-msg-tag.decline {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border-color: rgba(231, 76, 60, 0.4);
}

.admin-msg-text {
  font-size: 16px;
  font-style: italic;
  line-height: 1.5;
  opacity: 0.9;
  margin-bottom: 6px;
}

.admin-msg-time {
  font-size: 12px;
  opacity: 0.6;
}

.admin-del-btn {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.5);
  color: #ff7675;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
  font-family: 'Cinzel', serif;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.25s var(--ease);
  display: flex;
  align-items: center;
  gap: 4px;
}

.admin-del-btn:hover {
  background: #e74c3c;
  color: #fff;
  transform: translateY(-1px);
}

.admin-empty-state {
  text-align: center;
  padding: 30px 10px;
  opacity: 0.7;
  font-style: italic;
}

/* ================================================================
   ADMIN MODAL — RESPONSIVE (موبايل)
   ================================================================ */
@media (max-width: 600px) {
  .admin-modal-card {
    max-height: 92vh;
    border-radius: 10px;
  }
  .admin-modal-header {
    padding: 14px 16px;
  }
  .admin-modal-header h3 {
    font-size: 15px;
    letter-spacing: 0.8px;
  }
  .admin-auth-box {
    padding: 20px 14px;
  }
  .admin-pin-row {
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
  }
  .admin-pin-row input {
    font-size: 14px;
    padding: 10px 12px;
  }
  .admin-btn-sm {
    width: 100%;
    padding: 12px 16px !important;
  }
  .admin-panel-content {
    padding: 12px 14px 16px;
  }
  .admin-panel-tabs {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .admin-msg-card {
    flex-direction: column;
    gap: 10px;
  }
  .admin-del-btn {
    align-self: flex-start;
  }
  .admin-messages-list {
    padding-right: 0;
  }
}

/* تأمين عام: مفيش أي نص يطلع بره الشاشة نهائيًا */
img,
svg {
  max-width: 100%;
}
h1,
h2,
h3,
h4,
p,
span,
a,
button,
input,
select,
textarea {
  overflow-wrap: break-word;
  max-width: 100%;
}
