/* Fereshteh Coin - iOS Add to Home Screen guide */
:root {
  --fc-ios-bg: rgba(0, 8, 20, 0.98);
  --fc-ios-card: #00152c;
  --fc-ios-border: rgba(255, 195, 0, 0.32);
  --fc-ios-gold: #ffc300;
  --fc-ios-gold-bright: #ffd60a;
  --fc-ios-text: #f8fafc;
  --fc-ios-muted: #94a3b8;
}

#fc-ios-install-guide[hidden] {
  display: none !important;
}

#fc-ios-install-guide {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding:
    16px
    16px
    calc(16px + env(safe-area-inset-bottom, 0px));
  direction: rtl;
  font-family: "Vazirmatn", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fc-ios-guide-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.fc-ios-guide-card {
  position: relative;
  width: min(100%, 440px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  color: var(--fc-ios-text);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 195, 0, 0.10), transparent 40%),
    linear-gradient(180deg, #001d3d 0%, var(--fc-ios-bg) 100%);
  border: 1px solid var(--fc-ios-border);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  padding: 22px 20px 18px;
}

.fc-ios-guide-handle {
  width: 46px;
  height: 5px;
  margin: -8px auto 18px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
}

.fc-ios-guide-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--fc-ios-text);
  font-size: 24px;
  line-height: 32px;
  cursor: pointer;
}

.fc-ios-guide-title {
  margin: 0 0 8px;
  padding-left: 36px;
  color: var(--fc-ios-gold-bright);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.6;
}

.fc-ios-guide-text {
  margin: 0 0 18px;
  color: #dbe5f0;
  font-size: 14px;
  line-height: 1.9;
}

.fc-ios-guide-steps {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.fc-ios-guide-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 11px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 15px;
  background: rgba(18, 54, 111, 0.28);
  border: 1px solid rgba(0, 53, 102, 0.75);
}

.fc-ios-guide-step-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 195, 0, 0.15);
  border: 1px solid rgba(255, 195, 0, 0.42);
  color: var(--fc-ios-gold-bright);
  font-weight: 800;
}

.fc-ios-guide-step-text {
  color: #eef4fb;
  font-size: 14px;
  line-height: 1.8;
}

.fc-ios-guide-share-icon {
  display: inline-flex;
  vertical-align: -5px;
  margin-inline: 4px;
  color: #64a9ff;
}

.fc-ios-guide-note {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 195, 0, 0.08);
  color: #f8e7a0;
  font-size: 12px;
  line-height: 1.8;
}

.fc-ios-guide-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.fc-ios-guide-primary,
.fc-ios-guide-secondary {
  min-height: 46px;
  border-radius: 13px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.fc-ios-guide-primary {
  border: 0;
  background: linear-gradient(135deg, var(--fc-ios-gold), var(--fc-ios-gold-bright));
  color: #000814;
  padding: 0 18px;
}

.fc-ios-guide-secondary {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: transparent;
  color: var(--fc-ios-muted);
  padding: 0 14px;
}

@media (min-width: 768px) {
  #fc-ios-install-guide {
    align-items: center;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .fc-ios-guide-card {
    animation: fcIosGuideUp 260ms ease-out;
  }

  .fc-ios-guide-backdrop {
    animation: fcIosGuideFade 200ms ease-out;
  }

  @keyframes fcIosGuideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }

  @keyframes fcIosGuideFade {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
}
