.download-modal {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: none;
  padding: 22px;
  place-items: center;
  background: rgba(3, 27, 19, 0.72);
  backdrop-filter: blur(14px);
}
.download-modal.open {
  display: grid;
}
.download-dialog {
  position: relative;
  width: min(900px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 30px;
  background: white;
  box-shadow: 0 40px 120px rgba(0, 28, 19, 0.35);
}
.download-close {
  position: absolute;
  z-index: 5;
  top: 18px;
  right: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid #dbe6e1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #173128;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}
.download-close:hover {
  transform: rotate(5deg);
  border-color: #a9cabb;
}
.download-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 590px;
}
.download-visual {
  position: relative;
  display: flex;
  overflow: hidden;
  padding: 28px;
  flex-direction: column;
  background:
    radial-gradient(
      circle at 85% 10%,
      rgba(99, 232, 166, 0.23),
      transparent 29%
    ),
    linear-gradient(155deg, #053c2b, #062c21);
  color: white;
}
.download-visual::before,
.download-visual::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}
.download-visual::before {
  top: -95px;
  right: -120px;
  width: 300px;
  height: 300px;
}
.download-visual::after {
  bottom: 80px;
  left: -130px;
  width: 270px;
  height: 270px;
}
.download-visual-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font:
    800 17px "Manrope",
    sans-serif;
}
.download-visual-brand img {
  width: 34px;
  height: 34px;
}
.download-phone {
  position: absolute;
  z-index: 2;
  top: 82px;
  left: 50%;
  width: 190px;
  height: 346px;
  padding: 9px;
  transform: translateX(-50%) rotate(2.5deg);
  border: 4px solid #031a13;
  border-radius: 35px;
  background: #061b14;
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.3);
}
.download-screen {
  height: 100%;
  padding: 22px 12px 12px;
  border-radius: 24px;
  background: #f3f8f5;
}
.download-appbar {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #152d24;
  font-size: 10px;
  font-weight: 800;
}
.download-appbar img {
  width: 26px;
  height: 26px;
}
.download-appbar b {
  margin-left: auto;
  color: #7b8b83;
  letter-spacing: 1px;
}
.download-balance {
  margin-top: 15px;
  padding: 15px;
  border-radius: 15px;
  background: linear-gradient(135deg, #075a3f, #0a9c67);
  color: white;
}
.download-balance small,
.download-action small {
  display: block;
  font-size: 7px;
}
.download-balance small {
  color: #c4ded2;
}
.download-balance strong {
  display: block;
  margin-top: 5px;
  font:
    800 14px/1.25 "Manrope",
    sans-serif;
}
.download-action {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #e5ece8;
  border-radius: 12px;
  background: white;
  color: #172f25;
}
.download-action i {
  width: 25px;
  height: 25px;
  flex: none;
  border-radius: 8px;
  background: #def3e8;
}
.download-action b {
  display: block;
  font-size: 9px;
}
.download-action small {
  margin-top: 2px;
  color: #819088;
}
.download-visual-copy {
  position: relative;
  z-index: 3;
  margin-top: auto;
}
.download-visual-copy strong {
  display: block;
  margin-bottom: 7px;
  font:
    800 19px/1.25 "Manrope",
    sans-serif;
}
.download-visual-copy span {
  display: block;
  max-width: 260px;
  color: #bcd1c7;
  font-size: 12px;
  line-height: 1.6;
}
.download-content {
  display: flex;
  padding: 58px 48px 34px;
  flex-direction: column;
}
.download-content .eyebrow {
  align-self: flex-start;
}
.download-content h2 {
  margin: 20px 0 13px;
  color: #112b21;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: -2px;
}
.download-content > .muted {
  margin: 0;
  color: #66786f;
  font-size: 15px;
  line-height: 1.7;
}
.app-only-points {
  display: grid;
  gap: 9px;
  margin: 23px 0;
}
.app-only-point {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border: 1px solid #e2ece7;
  border-radius: 13px;
  background: #f6faf7;
  color: #27443a;
  font-size: 12px;
  font-weight: 700;
}
.app-only-point i {
  position: relative;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: #d9f2e5;
}
.app-only-point i::after {
  position: absolute;
  top: 5px;
  left: 8px;
  width: 4px;
  height: 8px;
  transform: rotate(45deg);
  border: solid #087b51;
  border-width: 0 2px 2px 0;
  content: "";
}
.app-only-point i svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.download-stores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.download-store {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #0b1712;
  color: white;
  box-shadow: 0 10px 22px rgba(5, 31, 22, 0.12);
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}
.download-store:hover {
  transform: translateY(-2px);
  background: #000;
}
.download-store.play {
  background: #087b51;
}
.download-store.play:hover {
  background: #075a3f;
}
.download-store-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  color: white;
}
.download-store-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.download-store small {
  display: block;
  font-size: 8px;
  opacity: 0.7;
}
.download-store strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
}
.download-dismiss {
  min-height: 45px;
  margin-top: 11px;
  border: 1px solid #dce7e2;
  border-radius: 13px;
  background: white;
  color: #284139;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.download-dismiss:hover {
  background: #f5faf7;
}
.download-security {
  margin: auto 0 0;
  padding-top: 14px;
  color: #829088;
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}
@media (max-width: 720px) {
  .download-modal {
    padding: 10px 10px max(10px, env(safe-area-inset-bottom));
    place-items: end center;
  }
  .download-dialog {
    width: 100%;
    max-height: min(92dvh, 760px);
    border-radius: 26px 26px 22px 22px;
    overscroll-behavior: contain;
  }
  .download-grid {
    display: block;
    min-height: 0;
  }
  .download-visual {
    display: none;
  }
  .download-content {
    padding: 48px 20px max(18px, env(safe-area-inset-bottom));
  }
  .download-content .eyebrow {
    max-width: calc(100% - 46px);
    padding: 7px 11px;
    font-size: 12px;
    line-height: 1.25;
  }
  .download-content h2 {
    margin: 14px 0 9px;
    font-size: clamp(28px, 7.2vw, 44px);
    line-height: 1.04;
    letter-spacing: -1.25px;
  }
  .download-content > .muted {
    font-size: 13px;
    line-height: 1.55;
  }
  .download-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .app-only-points {
    gap: 0;
    margin: 15px 0;
  }
  .app-only-point {
    min-height: 58px;
    gap: 16px;
    padding: 10px 4px;
    border: 0;
    border-bottom: 1px solid #e5ece8;
    border-radius: 0;
    background: transparent;
    color: #123d2e;
    font-size: 13px;
    line-height: 1.3;
  }
  .app-only-point:last-child {
    border-bottom: 0;
  }
  .app-only-point i {
    width: 38px;
    height: 38px;
    background: transparent;
    color: #0c4936;
  }
  .app-only-point i::after {
    display: none;
  }
  .download-stores {
    gap: 8px;
  }
  .download-store {
    min-width: 0;
    min-height: 70px;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 13px;
  }
  .download-store-icon {
    width: 38px;
    height: 38px;
  }
  .download-store strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .download-dismiss {
    min-height: 44px;
    margin-top: 9px;
  }
  .download-security {
    padding-top: 16px;
    font-size: 9px;
  }
}
@media (max-width: 430px) {
  .download-modal {
    padding-right: 6px;
    padding-left: 6px;
  }
  .download-dialog {
    max-height: 94dvh;
  }
  .download-content {
    padding-right: 16px;
    padding-left: 16px;
  }
  .download-store small {
    font-size: 7px;
  }
  .download-security {
    display: block;
  }
}

@media (max-width: 340px) {
  .download-content {
    padding-top: 42px;
    padding-bottom: 12px;
  }
  .download-content .eyebrow {
    padding: 6px 9px;
    font-size: 10px;
  }
  .download-content h2 {
    margin: 10px 0 7px;
    font-size: 25px;
  }
  .download-content > .muted {
    font-size: 11px;
    line-height: 1.4;
  }
  .app-only-points {
    margin: 10px 0;
  }
  .app-only-point {
    min-height: 48px;
    gap: 12px;
    padding: 6px 3px;
    font-size: 11px;
  }
  .app-only-point i {
    width: 31px;
    height: 31px;
  }
  .download-store {
    min-height: 58px;
    padding: 7px;
  }
  .download-store-icon {
    width: 30px;
    height: 30px;
  }
  .download-store strong {
    font-size: 11px;
  }
  .download-security {
    padding-top: 8px;
    font-size: 7px;
  }
}
