/* ============================================================
   نَسَق — Install Page Styles
   ============================================================ */

.install-hero-icon {
  animation: download-bounce 2.5s ease-in-out infinite;
}
@keyframes download-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.install-section {
  padding: 30px 0 60px;
  position: relative;
  z-index: 1;
}

.install-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
  transition: all 300ms;
  max-width: 920px;
  margin-inline: auto;
  margin-bottom: 22px;
}
.install-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.install-card-chrome {
  border-color: var(--primary-lighter);
  background: linear-gradient(135deg, var(--surface), #EFF6FF);
}
.install-card-firefox {
  border-color: rgba(255, 113, 57, 0.3);
  background: linear-gradient(135deg, var(--surface), #FFF7ED);
}
.install-card-other {
  opacity: 0.85;
  border-style: dashed;
}

.install-card-head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.browser-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.browser-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  padding: 4px;
  box-shadow: var(--shadow-sm);
  font-size: 24px;
}
.browser-icon:first-child {
  width: 56px;
  height: 56px;
}
.browser-icon:not(:first-child) {
  margin-inline-start: -10px;
  border: 2px solid white;
}

.install-card-title {
  flex: 1;
  min-width: 200px;
}
.install-card-title h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--text);
  letter-spacing: -0.3px;
}
.install-card-title p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.install-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.download-btn {
  flex: 1;
  min-width: 260px;
}
.download-btn small {
  opacity: 0.8;
  font-weight: 500;
}

.btn-firefox {
  background: linear-gradient(135deg, #FF7139, #E04E1B) !important;
}
.btn-firefox::before {
  background: linear-gradient(135deg, #FF8B5F, #FF7139) !important;
}

/* خطوات التثبيت */
.install-steps {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 18px;
}

.install-steps summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
  font-size: 15px;
  color: var(--text);
}
.install-steps summary::-webkit-details-marker { display: none; }

.install-toggle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 250ms;
}
.install-toggle::before, .install-toggle::after {
  content: '';
  position: absolute;
  background: var(--primary);
  border-radius: 2px;
}
.install-toggle::before { width: 12px; height: 2px; }
.install-toggle::after {
  width: 2px;
  height: 12px;
  transition: transform 300ms;
}
.install-steps[open] .install-toggle {
  background: var(--gradient);
}
.install-steps[open] .install-toggle::before,
.install-steps[open] .install-toggle::after {
  background: white;
}
.install-steps[open] .install-toggle::after {
  transform: rotate(90deg);
}

.steps-list {
  padding: 0 24px 20px;
  margin: 0;
  list-style: none;
  counter-reset: step;
}
.steps-list > li {
  counter-increment: step;
  padding: 14px 50px 14px 0;
  position: relative;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.85;
  border-bottom: 1px dashed var(--border);
}
.steps-list > li:last-child { border-bottom: none; }
.steps-list > li::before {
  content: counter(step);
  position: absolute;
  right: 0;
  top: 14px;
  width: 32px;
  height: 32px;
  background: var(--gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  font-family: 'Segoe UI', system-ui, sans-serif;
  box-shadow: 0 4px 10px rgba(30, 64, 175, 0.25);
  flex-shrink: 0;
}
.steps-list > li strong {
  color: var(--text);
  font-weight: 800;
}
.steps-list > li em {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
  font-style: normal;
  opacity: 0.85;
}
.steps-list > li code {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--primary-dark);
  direction: ltr;
  display: inline-block;
}

.steps-list ul {
  list-style: none;
  padding: 8px 0 0 0;
}
.steps-list ul li {
  padding: 4px 0 4px 16px;
  position: relative;
}
.steps-list ul li::before {
  content: '·';
  position: absolute;
  right: 4px;
  color: var(--primary);
  font-weight: 800;
}

/* قسم المساعدة */
.install-help {
  padding: 60px 0;
}
.help-card {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--gradient-soft));
  border: 1px solid var(--primary-lighter);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
}
.help-card h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.help-card p {
  color: var(--text-soft);
  margin-bottom: 24px;
  font-size: 16px;
}
