.download-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #5e2ced 0%, #a174ff 100%);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(94, 46, 237, 0.18);
}

.download-app-btn:hover,
.download-app-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(94, 46, 237, 0.24);
}

.download-app-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 12, 35, 0.75);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: auto;
}

.download-app-modal.show {
  display: flex;
  animation: fadeInModal 0.3s ease-out;
}

.download-app-modal-content {
  width: min(560px, 100%);
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 34px 60px rgba(8, 15, 50, 0.16);
  position: relative;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f8fafc;
  color: #111827;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.close-modal:hover {
  background: #e2e8f0;
}

.download-app-modal-content h3 {
  margin: 0 0 1rem;
  font-size: 1.65rem;
  line-height: 1.2;
  color: #0f172a;
}

.download-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.2rem 0;
}

.download-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #111827;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.download-option:hover {
  transform: translateY(-2px);
  background: #eef2ff;
  border-color: #c7d2fe;
}

.download-option.android {
  color: #107e4a;
}

.download-option.ios {
  color: #111827;
}

.qr-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  background: #f8fafc;
  border-radius: 1rem;
  padding: 1rem;
}

.qr-code-img {
  width: 120px;
  min-width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
}

.qr-instructions {
  flex: 1;
  min-width: 0;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.7;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .download-options {
    grid-template-columns: 1fr;
  }

  .download-app-modal-content {
    padding: 1.25rem;
  }

  .qr-section {
    flex-direction: column;
    text-align: center;
  }

  .qr-code-img {
    margin: 0 auto;
  }
}
