/* Next Egypt — واتساب عائم + معايدة */
:root {
  --ne-bg: #0d3d2b;
  --ne-gold: #f5c842;
  --ne-text: #fff;
  --ne-whatsapp: #25d366;
  --ne-whatsapp-dark: #1da851;
  --ne-phone: #007bb5;
}

/* موضع الزر: أسفل يمين الشاشة */
.ne-wa-stack {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom, 18px));
  z-index: 2147483646;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  direction: rtl;
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif !important;
  pointer-events: none;
}

.ne-wa-stack > * {
  pointer-events: auto;
}

/* زر واتساب — دائرة خضراء (لون الموقع) + لوجو */
.ne-wa-btn {
  width: 56px;
  height: 56px;
  padding: 6px;
  border: 2px solid var(--ne-gold);
  border-radius: 50%;
  background: var(--ne-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(245, 200, 66, 0.35);
  animation: neWaRing 2.4s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.ne-wa-btn:hover {
  transform: scale(1.07);
  border-color: #fff;
}

.ne-wa-btn__logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

/* أزرار ثانوية: اتصال + قائمة */
.ne-fab-mini {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ne-fab-mini-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--ne-gold);
  background: var(--ne-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  padding: 0;
}

.ne-fab-mini-btn img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.ne-fab-mini-btn--phone {
  background: var(--ne-phone);
  border-color: #fff;
}

.ne-fab-mini-btn--phone svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

@keyframes neWaRing {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(245, 200, 66, 0.3);
  }
  50% {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 0 7px rgba(245, 200, 66, 0.12);
  }
}

@media (max-width: 480px) {
  .ne-wa-btn {
    width: 52px;
    height: 52px;
    padding: 5px;
  }
  .ne-wa-stack {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom, 14px));
  }
}

@media (min-width: 769px) {
  .ne-wa-stack {
    bottom: max(22px, env(safe-area-inset-bottom, 22px));
  }
}

/* ═══ معايدة العيد ═══ */
#eid-overlay {
  position: fixed;
  inset: 0;
  min-height: 100dvh;
  background: rgba(0, 0, 0, 0.78);
  z-index: 2147482000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(3px);
  font-family: 'Cairo', Arial, sans-serif;
}

#eid-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.eid-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 20px;
  pointer-events: none;
  max-width: 92vw;
}

.eid-moon {
  font-size: clamp(48px, 12vw, 80px);
  animation: moonFloat 3s ease-in-out infinite;
}

.eid-title {
  color: #f5c518;
  font-size: clamp(22px, 5vw, 48px);
  font-weight: 900;
  margin: 16px 0 8px;
  line-height: 1.4;
}

.eid-sub1 { color: #fff; font-size: clamp(13px, 2.5vw, 20px); margin: 8px 0; }
.eid-sub2 { color: rgba(255, 255, 255, 0.9); font-size: clamp(12px, 2vw, 16px); }
.eid-divider {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f5c518, transparent);
  margin: 20px auto;
}
.eid-notice {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(245, 197, 24, 0.6);
  border-radius: 12px;
  padding: 14px 24px;
  color: #f5c518;
  font-size: clamp(13px, 2vw, 17px);
}
.eid-notice span { color: #fff; display: block; margin-top: 6px; font-size: 0.9em; }
.eid-hint { margin-top: 18px; color: rgba(255, 255, 255, 0.65); font-size: 12px; }
#eid-stars .st {
  position: absolute;
  color: #f5c518;
  animation: twinkle 2s ease-in-out infinite;
}

@keyframes moonFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}
