
.share-button a {
  display: inline-block;
     margin-left: 5px;
    margin-right: 5px;
    margin-top: 6px;
  padding: 10px 12px;
  font-size: 16px;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  position: relative;
  transition: background-color 0.3s ease;
}

.share-button a .fab {
  margin-right: 5px;
}

.share-button a .count {
  font-size: 9px;
  color: #fff;
  padding: 2px 6px;
  margin-left: 5px;
  margin-right: 5px;
  display: inline-block;
}

/* ألوان خاصة بكل شبكة */
.share-facebook { background-color: #3b5998; }
.share-twitter { background-color: #1da1f2; }
.share-whatsapp { background-color: #25d366; }

.share-facebook:hover { background-color: #2d4373; }
.share-twitter:hover { background-color: #0d95e8; }
.share-whatsapp:hover { background-color: #1ebe5d; }






.install-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  direction: rtl;
  max-width: 400px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
  animation: bannerIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.install-banner[hidden] {
  display: none !important;
}

/* ─── أنيميشن الظهور ─── */
@keyframes bannerIn {
  from { transform: translateY(120%) scale(0.95); opacity: 0; }
  to   { transform: translateY(0) scale(1);       opacity: 1; }
}

/* ─── أنيميشن الإغلاق ─── */
.install-banner.closing {
  animation: bannerOut 0.3s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes bannerOut {
  from { transform: translateY(0) scale(1);        opacity: 1; }
  to   { transform: translateY(120%) scale(0.95);  opacity: 0; }
}

.install-content { flex: 1; }

.install-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
  color: #1a1a1a;
}

.install-text {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

/* ─── خطوات iOS ─── */
.ios-steps {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ios-steps[hidden] {
  display: none !important;
}

.ios-step {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0f5ff;
  border-radius: 10px;
  padding: 8px 10px;
}

.ios-step-num {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: #007AFF;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ios-step-text {
  flex: 1;
  font-size: 12.5px;
  color: #333;
  line-height: 1.4;
}

.ios-share-icon,
.ios-add-icon {
  flex-shrink: 0;
}

/* ─── زر التثبيت ─── */
.install-btn {
  border: 0;
  background: #7b4ad9;
  color: #fff;
  border-radius: 12px;
  padding: 10px 18px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s;
  align-self: center;
}
.install-btn:hover  { background: #6a3cc5; }
.install-btn:active { transform: scale(0.96); }

/* ─── زر iOS: تصميم مختلف ─── */
.install-btn.ios-btn {
  display: none;
}

/* ─── زر الإغلاق ─── */
.install-close {
  border: 0;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
  transition: color 0.2s;
  flex-shrink: 0;
}
.install-close:hover { color: #333; }

/* ─── شاشات عريضة ─── */
@media (min-width: 768px) {
  .install-banner {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 400px;
  }
  @keyframes bannerIn {
    from { transform: translateX(-50%) translateY(120%) scale(0.95); opacity: 0; }
    to   { transform: translateX(-50%) translateY(0) scale(1);       opacity: 1; }
  }
  @keyframes bannerOut {
    from { transform: translateX(-50%) translateY(0) scale(1);       opacity: 1; }
    to   { transform: translateX(-50%) translateY(120%) scale(0.95); opacity: 0; }
  }
}

.pwa-back-btn {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 99998;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.15s, opacity 0.3s;
  opacity: 0;
}

.pwa-back-btn.visible {
  opacity: 1;
}

.pwa-back-btn[hidden] {
  display: none !important;
}

.pwa-back-btn:active {
  transform: scale(0.9);
  background: rgba(0, 0, 0, 0.7);
}

/* ─── Safe area للأجهزة ذات النوتش ─── */
@supports (padding-top: env(safe-area-inset-top)) {
  .pwa-back-btn {
    top: calc(env(safe-area-inset-top) + 55px);
  }
}
