/* Local software overlay — GriGsi Instant homepage card */
body.gi-soft-open { overflow: hidden; }
.gi-soft-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(12, 8, 22, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.gi-soft-overlay.hidden { display: none; }
.gi-soft-panel {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  position: relative;
}
.gi-soft-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: #888;
  cursor: pointer;
  padding: 4px 8px;
}
.gi-soft-close:hover { color: #333; }
.gi-soft-heading {
  margin: 0 0 14px;
  font-size: 1.1rem;
  color: #2a1d45;
  font-weight: 800;
  padding-right: 28px;
}
.gi-soft-platforms { display: flex; flex-direction: column; gap: 10px; }
.gi-soft-plat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 2px solid #e8dff5;
  border-radius: 12px;
  padding: 14px 16px;
  background: #faf8ff;
  color: #2a1d45;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.gi-soft-plat:hover:not(:disabled) {
  border-color: #ffc64b;
  background: #fff9eb;
}
.gi-soft-plat:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  color: #888;
}
.gi-soft-plat i { color: #b8942e; font-size: 0.85rem; }
.gi-soft-download-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 16px;
  padding: 20px 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffe9a8 0%, #ffc64b 100%);
  color: #3d2860 !important;
  -webkit-text-fill-color: #3d2860 !important;
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 8px 24px rgba(255, 198, 75, 0.35);
  cursor: pointer;
  line-height: 1.35;
}
.gi-soft-download-hero:hover,
.gi-soft-download-hero:focus,
.gi-soft-download-hero:visited {
  filter: brightness(1.04);
  color: #3d2860 !important;
  -webkit-text-fill-color: #3d2860 !important;
}
.gi-soft-download-hero i {
  font-size: 1.35rem;
  color: #2a1d45 !important;
  -webkit-text-fill-color: #2a1d45 !important;
}
/* Beat body.ios-theme liquid-accent link colour on yellow download CTA */
body.ios-theme .gi-soft-overlay a.gi-soft-download-hero,
body.ios-theme a.gi-soft-download-hero {
  color: #3d2860 !important;
  -webkit-text-fill-color: #3d2860 !important;
}
body.ios-theme .gi-soft-overlay a.gi-soft-download-hero i,
body.ios-theme a.gi-soft-download-hero i {
  color: #2a1d45 !important;
  -webkit-text-fill-color: #2a1d45 !important;
}
.gi-soft-download-meta {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 14px;
}
.gi-soft-download-meta p { margin: 0 0 8px; }
.gi-soft-file { color: #2a1d45; font-weight: 600; }
.gi-soft-back {
  border: 1px solid #ccc;
  background: #fff;
  color: #555;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.gi-soft-back:hover { background: #f5f5f5; }
.gi-soft-step.hidden { display: none; }

/* Homepage Instant card */
.home-quick-card--instant.home-quick-card--with-soft {
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
  gap: 4px !important;
  padding-bottom: 8px !important;
}
.home-quick-card--instant .home-quick-soft-btn {
  grid-row: 4;
  width: calc(100% - 4px);
  margin: 4px auto 0;
  padding: 7px 8px;
  border: 1px solid rgba(255, 198, 75, 0.35);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 198, 75, 0.18) 0%, rgba(255, 198, 75, 0.08) 100%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  line-height: 1.2;
}
.home-quick-card--instant .home-quick-soft-btn:hover {
  background: rgba(255, 198, 75, 0.22);
  border-color: rgba(255, 198, 75, 0.55);
}
