:root { --content-top-space: 128px; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
  }

  body {
    background-color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
      Helvetica, Arial, sans-serif;
    color: #1e293b;
    line-height: 1.45;
    padding: calc(var(--content-top-space) + env(safe-area-inset-top, 0px)) 16px 52px;
  }

  .app-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
  }

  .hero {
    text-align: center;
    margin-bottom: 14px;
  }

  .logo-block {
    width: 84px;
    height: 84px;

    border-radius: 24px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 20px -12px rgb(0 177 255 / 73%);
  }

  .app-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #0f172a;
    margin-bottom: 6px;
  }

  .badge-os {
    font-size: 14px;
    font-weight: 500;
    color: #4b5565;
    background: #eef2ff;
    display: inline-block;
    padding: 4px 14px;
    border-radius: 30px;
  }

  .download-group {
    margin-bottom: 0;
  }
  .double-btns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .btn-outline {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    width: 100%;
    min-height: 56px;
    background: #007aff;
    border: 1px solid #d7e3f3;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 560;
    line-height: 1.35;
    color: #fff;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  }

  .btn-outline-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 21px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn-outline img {
    width: 35px;
    height: 35px;
    object-fit: contain;
  }

  .btn-outline-text {
    flex: 0 1 auto;
    min-width: 0;
    word-break: break-word;
  }

  .btn-outline:hover {
    border-color: #bfd7ff;
    box-shadow: 0 10px 24px rgba(0, 122, 255, 0.12);
    transform: translateY(-1px);
  }

  .btn-outline:active {
    background: #f8fbff;
    transform: scale(0.98);
    box-shadow: 0 6px 14px rgba(0, 122, 255, 0.12);
  }

  @media (max-width: 420px) {


    .btn-outline {
      min-height: 60px;
    }
  }

  .legal {
    font-size: 14px;
    color: #8c9aa8;
    text-align: left;
    line-height: 1.55;
    margin-top: 16px;
    padding-top: 20px;
    border-top: 0.5px solid #eef2f6;
  }

  #overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2147483647;
    justify-content: center;
  }

  #overlayContent {
    width: 80%;
    max-width: 400px;
    background-color: white;
    padding: 100px 0 0 0;
    border-radius: 10px;
    text-align: left;
    color: #fff;
    font-size: 20px;
    background-color: transparent;
  }

  #closeButton {
    margin-top: 10px;
    margin-left: 30%;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 20px;
    background-color: transparent;
    color: #fff;
    border: 1px dashed #fff;
  }

  .circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background-color: red;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    line-height: 50px;
    margin: 5px;
  }

  .overlayImage {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 100px;
    height: auto;
    cursor: pointer;
    z-index: 1001;
  }
   #logoImage{
      border-radius:24px;
   }

.logo-block img { width: 100%; height: 100%; object-fit: contain; }

.btn-outline:active { color: #005fc7; }
.btn-outline:focus-visible { outline: 3px solid #0f172a; outline-offset: 4px; }
@media (max-width: 340px) {
  .double-btns { grid-template-columns: 1fr; }

}
@keyframes download-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
html[data-platform="ios"] #androidDownload,
html[data-platform="android"] #iosDownload { display: none; }
html[data-platform="ios"] .double-btns,
html[data-platform="android"] .double-btns { grid-template-columns: 1fr; }
.btn-outline { animation: download-fade-in 700ms ease-out both; }
html[data-platform="desktop"] .btn-outline + .btn-outline { animation-delay: 100ms; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


.ad-placement {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
}
.ad-placement.is-loaded {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  margin: 30px 0 20px;
  padding: 8px;
  border: 1px solid #d7e3f3;
  border-radius: 12px;
}
body[data-page="download"] .manual-guide > .manual-section:last-child { margin-bottom: 0; }
#ad_container { width: 100%; }
[hidden] { display: none !important; }
