/* ===== بنر نصب اپلیکیشن ===== */
.pwa-install-bar {
  position: fixed;
  right: 12px;
  left: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 2px solid #c084fc;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(91, 20, 196, 0.28);
  direction: rtl;
  font-family: inherit;
  animation: pwa-up 0.4s ease;
}

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

.pwa-install-bar img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex-shrink: 0;
}

.pwa-install-text { flex: 1; min-width: 0; }
.pwa-install-text strong { display: block; font-size: 14px; color: #2e1065; margin-bottom: 2px; }
.pwa-install-text span { display: block; font-size: 12px; line-height: 1.7; color: #7a6a96; }

.pwa-install-btn {
  background: linear-gradient(135deg, #7e22ce, #c026d3);
  color: #ffffff;
  border: none;
  border-radius: 24px;
  padding: 9px 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.pwa-install-close {
  background: transparent;
  border: none;
  color: #a99cc4;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

/* ===== صفحه‌ی آفلاین ===== */
.offline-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #faf5ff;
  font-family: Tahoma, Arial, sans-serif;
  color: #2e1065;
  text-align: center;
}

.offline-box {
  padding: 32px 24px;
  max-width: 360px;
}

.offline-box img { border-radius: 24px; margin-bottom: 18px; }
.offline-box h1 { font-size: 20px; margin: 0 0 10px; }
.offline-box p { font-size: 14px; line-height: 2; color: #7a6a96; margin: 0 0 20px; }

.offline-box button {
  background: linear-gradient(135deg, #7e22ce, #c026d3);
  color: #ffffff;
  border: none;
  border-radius: 24px;
  padding: 11px 28px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
