.old-version-popup {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2147483000;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  margin: 0;
  padding: 24px 16px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  background-color: rgba(8, 32, 34, 0.82);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.old-version-popup.is-visible {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
}

.old-version-popup[hidden] {
  display: none !important;
}

.old-version-popup.is-visible[hidden] {
  display: -webkit-box !important;
  display: -webkit-flex !important;
  display: flex !important;
}

.old-version-popup__dialog {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 48px);
  max-height: calc(100% - 48px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  background-color: #083638;
  background-image:
    radial-gradient(circle at top right, rgba(31, 156, 158, 0.22), transparent 42%),
    linear-gradient(165deg, #0d4f52 0%, #083638 55%, #062a2c 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  color: #fff;
  text-align: center;
  -webkit-transform: translateY(16px);
  transform: translateY(16px);
  opacity: 0;
  transition:
    -webkit-transform 0.35s ease,
    transform 0.35s ease,
    opacity 0.35s ease;
}

.old-version-popup.is-visible .old-version-popup__dialog {
  -webkit-transform: translateY(0);
  transform: translateY(0);
  opacity: 1;
}

.old-version-popup__dialog::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1f9c9e 0%, #84e6e7 50%, #ffb800 100%);
}

.old-version-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.old-version-popup__close::before,
.old-version-popup__close::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.old-version-popup__close::before {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.old-version-popup__close::after {
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.old-version-popup__close:hover,
.old-version-popup__close:focus {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.old-version-popup__inner {
  padding: 40px 36px 36px;
}

.old-version-popup__logo-wrap {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  margin-bottom: 24px;
  padding: 12px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.old-version-popup__logo {
  display: block;
  max-width: 200px;
  width: 100%;
  height: auto;
}

.old-version-popup__icon {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(132, 230, 231, 0.22) 0%, rgba(132, 230, 231, 0.08) 100%);
  border: 1px solid rgba(132, 230, 231, 0.35);
  color: #84e6e7;
}

.old-version-popup__icon svg {
  display: block;
  width: 36px;
  height: 36px;
}

.old-version-popup__title {
  display: inline-block;
  margin: 0 0 22px;
  padding: 10px 22px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffc933 0%, #ffb800 100%);
  color: #1a2e30;
  font-family: "Roboto-Bold", Roboto, Arial, sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(255, 184, 0, 0.28);
}

.old-version-popup__text {
  margin: 0 auto;
  max-width: 500px;
  color: rgba(255, 255, 255, 0.92);
  font-family: Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.old-version-popup__text p {
  margin: 0 0 16px;
}

.old-version-popup__text p:last-child {
  margin-bottom: 0;
}

.old-version-popup__text strong {
  color: #ffd24d;
  font-family: "Roboto-Bold", Roboto, Arial, sans-serif;
  font-weight: 700;
}

.old-version-popup__text a {
  color: #84e6e7;
  font-family: "Roboto-Bold", Roboto, Arial, sans-serif;
  font-weight: 700;
  text-decoration: underline;
}

.old-version-popup__text a:hover,
.old-version-popup__text a:focus {
  color: #fff;
}

.old-version-popup__qr {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-box-orient: vertical;
  -webkit-flex-direction: column;
  flex-direction: column;
  align-items: center;
  margin-top: 24px;
  padding: 12px 12px 10px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}

.old-version-popup__qr img {
  display: block;
  width: 112px;
  height: 112px;
}

.old-version-popup__qr-caption {
  display: block;
  max-width: 140px;
  margin-top: 6px;
  color: #1a2e30;
  font-family: Roboto, Arial, sans-serif;
  font-size: 0.75rem;
  line-height: 1.3;
}

.old-version-popup__qr:hover,
.old-version-popup__qr:focus {
  box-shadow: 0 8px 24px rgba(0, 156, 166, 0.45);
}

.old-version-popup__sign {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-family: Roboto, Arial, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5;
}

body.old-version-popup-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

@supports (height: 100dvh) {
  .old-version-popup {
    min-height: 100dvh;
  }

  .old-version-popup__dialog {
    max-height: calc(100dvh - 48px);
  }
}

@media screen and (max-width: 768px) {
  .old-version-popup {
    padding: 16px 12px;
  }

  .old-version-popup__inner {
    padding: 32px 20px 28px;
  }

  .old-version-popup__logo-wrap {
    min-height: 56px;
    margin-bottom: 20px;
    padding: 10px 18px;
  }

  .old-version-popup__logo {
    max-width: 160px;
  }

  .old-version-popup__icon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
  }

  .old-version-popup__icon svg {
    width: 30px;
    height: 30px;
  }

  .old-version-popup__title {
    font-size: 1.0625rem;
    padding: 8px 14px;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
  }

  .old-version-popup__text {
    font-size: 0.9375rem;
    line-height: 1.65;
  }

  .old-version-popup__qr {
    margin-top: 20px;
    padding: 10px 10px 8px;
  }

  .old-version-popup__qr img {
    width: 96px;
    height: 96px;
  }

  .old-version-popup__sign {
    margin-top: 20px;
    font-size: 0.875rem;
  }
}