/* ── Composant "Installer Ohmbase" ────────────────────────────────────── */

.install-block {
  background: var(--bg-card, #111827);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 14px;
  padding: 20px 22px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text, #f1f5f9);
}

/* Variant clair (dashboard, pages light) — aligné sur le gabarit des cartes "Mon compte"
   (padding 30px 28px, même border-radius/ombre) pour un rendu homogène avec les voisines. */
#installOhmbaseBlock[data-theme="light"] .install-block {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 30px 28px;
  color: #111827;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  width: 100%;
  box-sizing: border-box;
}
#installOhmbaseBlock[data-theme="light"] .install-sub { color: #6b7280; }
#installOhmbaseBlock[data-theme="light"] .install-hint { color: #9ca3af; }
#installOhmbaseBlock[data-theme="light"] .install-btn-primary,
#installOhmbaseBlock[data-theme="light"] .install-btn-ghost {
  background: #fff;
  color: #374151;
  border-color: #e5e7eb;
  box-shadow: none;
}
#installOhmbaseBlock[data-theme="light"] .install-btn-primary:hover,
#installOhmbaseBlock[data-theme="light"] .install-btn-ghost:hover {
  border-color: #34c8a2;
  color: #111827;
  background: #f9fafb;
}

.install-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.install-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.install-icon img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.install-title {
  font-size: 0.98em;
  font-weight: 700;
  margin-bottom: 2px;
}

.install-sub {
  font-size: 0.82em;
  color: var(--muted, #94a3b8);
}

.install-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.install-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.88em;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

/* Boutons sobres style Ohmbase (light + dark) */
.install-btn-primary,
.install-btn-ghost {
  background: transparent;
  color: var(--muted, #94a3b8);
  border-color: var(--border, rgba(255,255,255,0.15));
}
.install-btn-primary:hover,
.install-btn-ghost:hover {
  border-color: #34c8a2;
  color: var(--text, #f1f5f9);
  transform: translateY(-1px);
}

.install-hint {
  font-size: 0.78em;
  color: var(--dim, #64748b);
  line-height: 1.5;
}

.install-fallback {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border, rgba(255,255,255,0.06));
}
.install-fallback a {
  font-size: 0.78em;
  color: var(--dim, #64748b);
  text-decoration: none;
  border-bottom: 1px dashed var(--dim, #64748b);
}
.install-fallback a:hover {
  color: var(--text, #f1f5f9);
  border-bottom-color: #34c8a2;
}
#installOhmbaseBlock[data-theme="light"] .install-fallback {
  border-top-color: #f3f4f6;
}
#installOhmbaseBlock[data-theme="light"] .install-fallback a {
  color: #9ca3af;
  border-bottom-color: #e5e7eb;
}
#installOhmbaseBlock[data-theme="light"] .install-fallback a:hover {
  color: #374151;
  border-bottom-color: #34c8a2;
}

/* ── Modale iOS ── */
.ios-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(6px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ios-modal-content {
  background: #0d1424;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 28px;
  max-width: 420px;
  width: 100%;
  color: #f1f5f9;
  position: relative;
}

.ios-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 1.6em;
  cursor: pointer;
  line-height: 1;
  padding: 6px 10px;
}
.ios-modal-close:hover { color: #f1f5f9; }

.ios-modal-content h3 {
  margin: 0 0 16px;
  font-size: 1.15em;
  font-weight: 700;
}

.ios-modal-content ol {
  padding-left: 20px;
  margin: 0 0 14px;
}
.ios-modal-content ol li {
  margin-bottom: 10px;
  line-height: 1.55;
  color: #cbd5e1;
  font-size: 0.92em;
}

.ios-modal-content i {
  color: #667eea;
  margin: 0 2px;
}

.ios-modal-hint {
  font-size: 0.82em;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
