.download-center {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 52px;
}

.download-hero {
  position: relative;
  display: flex;
  min-height: 250px;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
  padding: 42px 54px;
  border: 1px solid #1e293b;
  border-radius: 8px;
  background: #172033;
  color: #fff;
}

.download-hero::after {
  position: absolute;
  right: -90px;
  bottom: -140px;
  width: 340px;
  height: 340px;
  border: 42px solid rgba(249, 115, 22, .18);
  border-radius: 50%;
  content: "";
}

.download-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 730px;
}

.download-kicker {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(249, 115, 22, .18);
  color: #fdba74;
  font-size: 13px;
  font-weight: 800;
}

.download-hero h1 {
  margin: 16px 0 12px;
  color: #fff;
  font-size: 32px;
  line-height: 1.25;
}

.download-hero p {
  max-width: 680px;
  margin: 0;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.8;
}

.download-hero-mark {
  position: relative;
  z-index: 1;
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.07);
}

.download-hero-mark img {
  width: 88px;
  height: 88px;
  border-radius: 22px;
}

.download-loading,
.download-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 156px;
  margin-top: 24px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  font-size: 14px;
}

.download-loading {
  gap: 6px;
}

.download-loading span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f97316;
  animation: download-loading 1s infinite ease-in-out;
}

.download-loading span:nth-child(2) { animation-delay: .14s; }
.download-loading span:nth-child(3) { animation-delay: .28s; }

@keyframes download-loading {
  0%, 100% { transform: translateY(0); opacity: .45; }
  50% { transform: translateY(-5px); opacity: 1; }
}

.download-product-sections {
  display: grid;
  gap: 34px;
  margin-top: 34px;
}

.download-section {
  display: grid;
  gap: 14px;
}

.download-section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-left: 12px;
  border-left: 4px solid #f97316;
}

.download-section-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
}

.download-section-head p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.download-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.download-product-card {
  display: flex;
  min-height: 248px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .04);
}

.download-product-card.available {
  border-top: 3px solid var(--product-accent, #f97316);
}

.download-product-card.planned {
  background: #fafcff;
}

.download-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.download-product-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--product-soft, #fff7ed);
  color: var(--product-accent, #f97316);
  font-size: 20px;
  font-weight: 900;
}

.download-product-title {
  min-width: 0;
}

.download-product-title h3 {
  margin: 0;
  color: #0f172a;
  font-size: 17px;
}

.download-version {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

.download-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 20px 0 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.download-status.available {
  background: #ecfdf5;
  color: #047857;
}

.download-status.planned {
  background: #fff7ed;
  color: #c2410c;
}

.download-product-card p {
  min-height: 48px;
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.75;
}

.download-qr-entry {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #f8fafc;
}

.download-qr-entry button {
  display: grid;
  gap: 4px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.download-qr-entry img {
  display: block;
  width: 68px;
  height: 68px;
  border: 1px solid #e2e8f0;
  background: #fff;
  object-fit: contain;
}

.download-qr-entry small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.65;
}

.download-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.download-action,
.download-action-muted {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.download-action {
  border: 1px solid #ea580c;
  background: #f97316;
  color: #fff;
}

.download-action:hover {
  background: #ea580c;
  color: #fff;
}

.download-action-muted {
  border: 1px solid #dbe4f0;
  background: #f8fafc;
  color: #94a3b8;
  cursor: default;
}

.download-qr-trigger {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.download-qr-trigger:hover { color: #1d4ed8; }

.download-fallback {
  display: grid;
  gap: 8px;
  padding: 30px;
  text-align: center;
}

.download-fallback h2,
.download-fallback p {
  margin: 0;
}

.download-fallback h2 { color: #0f172a; font-size: 18px; }
.download-fallback p { color: #64748b; font-size: 13px; }
.download-fallback .download-action { margin: 8px auto 0; border: 0; cursor: pointer; }

.download-qr-dialog {
  width: min(360px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .25);
}

.download-qr-dialog::backdrop { background: rgba(15, 23, 42, .52); }
.download-qr-shell { padding: 22px; text-align: center; }
.download-qr-shell h3 { margin: 0; color: #0f172a; font-size: 18px; }
.download-qr-shell p { margin: 8px 0 16px; color: #64748b; font-size: 13px; }
.download-qr-shell img { width: 220px; height: 220px; object-fit: contain; }
.download-qr-close { margin-top: 18px; border: 0; border-radius: 6px; padding: 9px 24px; background: #0f766e; color: #fff; cursor: pointer; font-weight: 800; }

@media (max-width: 900px) {
  .download-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .download-center { width: min(1180px, calc(100% - 24px)); padding-top: 16px; }
  .download-hero { min-height: auto; padding: 28px 22px; border-radius: 8px; }
  .download-hero h1 { font-size: 25px; }
  .download-hero p { font-size: 14px; }
  .download-hero-mark { display: none; }
  .download-product-sections { gap: 26px; margin-top: 26px; }
  .download-section-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .download-product-grid { grid-template-columns: 1fr; }
  .download-product-card { min-height: 226px; }
  .download-qr-entry { grid-template-columns: 68px minmax(0, 1fr); }
  .download-qr-entry img { width: 60px; height: 60px; }
}
