/* ============================================================
   assets/css/pwa.css — PWA INSTALL BUTTON & MODAL STYLES
   ============================================================ */

.pwa-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  color: #ffffff;
  background-color: #18181b;
  border: 1px solid #18181b;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.pwa-install-btn:hover {
  background-color: #09090b;
  border-color: #09090b;
  color: #ffffff;
}

.pwa-install-btn i {
  font-size: 0.95rem;
}

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

/* ── iOS Instruction Modal ─────────────────────────────────── */
.pwa-ios-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.5);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.pwa-ios-modal-overlay.active {
  display: flex;
}

.pwa-ios-modal {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  max-width: 420px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', 'Tajawal', system-ui, sans-serif;
  position: relative;
}

.pwa-ios-modal__close {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #71717a;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.15s ease;
}

.pwa-ios-modal__close:hover {
  background: #e4e4e7;
  color: #09090b;
}

.pwa-ios-modal__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.pwa-ios-modal__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #18181b;
  flex-shrink: 0;
}

.pwa-ios-modal__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #09090b;
}

.pwa-ios-modal__subtitle {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: #71717a;
}

.pwa-ios-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
}

.pwa-ios-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fafafa;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  padding: 12px;
}

.pwa-ios-step__num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #18181b;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pwa-ios-step__text {
  font-size: 0.82rem;
  color: #27272a;
  line-height: 1.5;
}

.pwa-ios-step__text strong {
  color: #09090b;
}

.pwa-ios-modal__footer {
  text-align: center;
  margin-top: 18px;
}

.pwa-ios-modal__btn {
  width: 100%;
  height: 40px;
  background: #18181b;
  color: #ffffff;
  border: 1px solid #18181b;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.pwa-ios-modal__btn:hover {
  background: #09090b;
}
