/* شريط التنبيه المنضبط لشاشة الدخول */
.ios-install-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 380px;
  height: 64px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  z-index: 100;
  direction: rtl;
  box-sizing: border-box;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.banner-icon {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.banner-text-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.banner-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banner-sub {
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.2;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banner-btn {
  background: linear-gradient(135deg, #005ba3, #0284c7);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: transform 0.2s;
}

.banner-btn:active {
  transform: scale(0.94);
}

/* النافذة التفاعلية (Interactive Wizard Modal) */
.ios-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 32, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@media (min-width: 640px) {
  .ios-modal-overlay {
    align-items: center;
    padding: 20px;
  }
}

.ios-modal-sheet {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px 28px 0 0;
  padding: 24px 20px 28px;
  width: 100%;
  max-width: 400px;
  direction: rtl;
  color: #ffffff;
  box-sizing: border-box;
  animation: slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

@media (min-width: 640px) {
  .ios-modal-sheet {
    border-radius: 28px;
  }
}

.modal-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-step-badge {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #94a3b8;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}

/* مؤشرات التقدم بالنقاط */
.step-progress-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.step-dot {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: #334155;
  transition: all 0.3s ease;
}

.step-dot.active {
  background: #005ba3;
  width: 36px;
}

/* محتوى الخطوة التفاعلية */
.interactive-step {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 180px;
  animation: fadeInStep 0.25s ease;
}

.interactive-step.active-step {
  display: flex;
}

@keyframes fadeInStep {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-visual-box {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #38bdf8;
  margin-bottom: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.step-title-text {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #f8fafc;
}

.step-info-text {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 290px;
}

/* أزرار التحكم بالمراحل */
.step-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.btn-wizard-next {
  flex: 2;
  background: #005ba3;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-wizard-next:hover {
  background: #004a85;
}

.btn-wizard-prev {
  flex: 1;
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

/* شريط تحميل تطبيق الأندرويد */
.android-download-banner {
  position: fixed;
  bottom: 24px; /* تم تعديلها من 96px إلى 24px ليجلس في الأسفل تماماً */
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 380px;
  height: 64px;
  background: #0f172a;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 20px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
  z-index: 99;
  direction: rtl;
  box-sizing: border-box;
}

.android-content {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.android-icon-box {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  font-size: 22px;
  flex-shrink: 0;
}

.android-text-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.android-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.android-sub {
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.2;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.android-btn {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff !important;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.android-btn:active {
  transform: scale(0.94);
}
