/* V89-R11 temporary server-side Windows installer access gate. */
.windows-download-modal[hidden] {
  display: none !important;
}

.windows-download-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 24px;
}

.windows-download-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background:
    radial-gradient(circle at 50% 36%, rgba(139, 66, 255, 0.18), transparent 36%),
    rgba(3, 1, 9, 0.88);
  backdrop-filter: blur(18px);
  cursor: default;
}

.windows-download-dialog {
  position: relative;
  width: min(520px, 100%);
  overflow: hidden;
  border: 1px solid rgba(222, 196, 255, 0.28);
  border-radius: 26px;
  padding: 38px;
  background:
    linear-gradient(145deg, rgba(33, 15, 52, 0.96), rgba(10, 5, 20, 0.98)),
    rgba(11, 5, 21, 0.98);
  box-shadow:
    0 38px 100px rgba(0, 0, 0, 0.58),
    0 0 52px rgba(143, 69, 255, 0.16),
    inset 0 1px rgba(255, 255, 255, 0.08);
  clip-path: polygon(0 20px, 20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px));
}

.windows-download-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(247, 112, 255, 0.12), transparent) 0 0 / 100% 1px no-repeat,
    radial-gradient(circle at 80% 0%, rgba(255, 94, 229, 0.16), transparent 34%);
}

.windows-download-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.045);
  color: #f7efff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.windows-download-close:hover,
.windows-download-close:focus-visible {
  border-color: rgba(246, 124, 255, 0.55);
  background: rgba(222, 87, 255, 0.12);
}

.windows-download-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.windows-download-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(223, 193, 255, 0.2);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(214, 106, 255, 0.16), rgba(94, 52, 190, 0.08));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), 0 16px 34px rgba(0, 0, 0, 0.28);
}

.windows-download-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(224, 156, 255, 0.48));
}

.windows-download-kicker {
  margin: 0 0 5px;
  color: #e47cff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.windows-download-brand h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.02;
}

.windows-download-copy {
  position: relative;
  margin: 0 0 24px;
  color: rgba(239, 229, 249, 0.76);
  font-size: 15px;
  line-height: 1.7;
}

.windows-download-form {
  position: relative;
  display: grid;
  gap: 16px;
}

.windows-download-label {
  display: grid;
  gap: 9px;
  color: #f4eaff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.windows-download-password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 56px;
  border: 1px solid rgba(218, 188, 255, 0.22);
  border-radius: 15px;
  background: rgba(4, 2, 10, 0.7);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.windows-download-password-field:focus-within {
  border-color: rgba(230, 119, 255, 0.68);
  box-shadow: 0 0 0 3px rgba(197, 77, 255, 0.1), inset 0 1px rgba(255, 255, 255, 0.05);
}

.windows-download-password-field input {
  min-width: 0;
  height: 54px;
  border: 0;
  outline: 0;
  padding: 0 16px;
  background: transparent;
  color: #fff;
  font: inherit;
}

.windows-download-password-field button {
  height: 38px;
  margin-right: 8px;
  border: 0;
  padding: 0 10px;
  background: transparent;
  color: rgba(239, 218, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.windows-download-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 54px;
  border: 1px solid rgba(248, 172, 255, 0.32);
  border-radius: 15px;
  background: linear-gradient(110deg, #a735f4, #d34fc7 58%, #8d42ff);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 16px 36px rgba(123, 42, 211, 0.26), inset 0 1px rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.windows-download-submit:disabled {
  opacity: 0.58;
  cursor: wait;
}

.windows-download-submit img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.windows-download-message,
.windows-download-error {
  margin: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}

.windows-download-message {
  border: 1px solid rgba(137, 255, 207, 0.22);
  background: rgba(62, 211, 151, 0.08);
  color: #baf6dc;
}

.windows-download-error {
  border: 1px solid rgba(255, 116, 163, 0.25);
  background: rgba(255, 72, 126, 0.08);
  color: #ffc1d7;
}

.windows-download-note {
  position: relative;
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(226, 210, 239, 0.56);
  font-size: 12px;
  line-height: 1.55;
}

body.windows-download-modal-open {
  overflow: hidden;
}

.download-development-card-v72[data-download-polish="73"]:not(:disabled),
.cradle-dashboard-download-button:not(:disabled) {
  cursor: pointer;
}

.download-development-card-v72[data-download-polish="73"]:not(:disabled):focus-visible,
.cradle-dashboard-download-button:not(:disabled):focus-visible {
  outline: 2px solid rgba(238, 147, 255, 0.84);
  outline-offset: 4px;
}

@media (max-width: 760px), (max-width: 900px) and (pointer: coarse) {
  .windows-download-modal {
    align-items: end;
    padding: 12px;
  }

  .windows-download-dialog {
    width: 100%;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    border-radius: 22px;
    padding: 30px 22px 24px;
  }

  .windows-download-brand {
    padding-right: 38px;
  }

  .windows-download-icon {
    width: 52px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .windows-download-modal *,
  .windows-download-modal *::before,
  .windows-download-modal *::after {
    animation: none !important;
    transition: none !important;
  }
}
