/* Download notify modal (email → Telegram waitlist) */
.download-notify-modal[hidden] {
  display: none !important;
}

.download-notify-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.download-notify-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.download-notify-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 22px 20px 20px;
  border-radius: 20px;
  border: 1px solid var(--c-border);
  background: linear-gradient(180deg, rgba(37, 35, 33, 0.98), rgba(20, 18, 17, 0.99));
  box-shadow: var(--shadow-float);
}

.download-notify-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--c-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.download-notify-title {
  margin: 0 32px 8px 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-text);
}

.download-notify-lead {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--c-muted);
}

.download-notify-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.download-notify-label-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-muted);
}

.download-notify-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--c-border);
  background: rgba(15, 14, 13, 0.85);
  color: var(--c-text);
  font-size: 16px;
  font-family: inherit;
}

.download-notify-input:focus {
  outline: none;
  border-color: rgba(217, 119, 6, 0.55);
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
}

.download-notify-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.download-notify-status {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.download-notify-status.is-error {
  color: #fca5a5;
}

.download-notify-status.is-ok {
  color: #6ee7b7;
}

.download-notify-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.download-notify-actions .btn {
  width: 100%;
  justify-content: center;
  min-height: 48px;
}

body.download-notify-open {
  overflow: hidden;
}

@media (min-width: 520px) {
  .download-notify-modal {
    align-items: center;
  }
}

/* Global sticky CTA bar */
.global-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: linear-gradient(180deg, transparent, rgba(15, 14, 13, 0.92) 24%);
  pointer-events: none;
}

.global-cta-bar-inner {
  pointer-events: auto;
  padding: 8px 16px 10px;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.global-cta-bar-btn.btn-play-store,
.global-cta-play-badge {
  display: inline-flex;
  width: auto;
  max-width: min(100%, 220px);
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.global-cta-play-badge img {
  display: block;
  width: auto;
  height: 44px;
  max-width: min(100%, 200px);
}

.global-cta-bar-btn,
.site-cta-primary {
  display: inline-flex;
  width: auto;
  max-width: min(100%, 520px);
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid rgba(253, 224, 171, 0.45);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 42%),
    linear-gradient(135deg, #92400e 0%, #d97706 38%, #fbbf24 72%, #f59e0b 100%);
  color: #1c1410;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 4px 16px rgba(217, 119, 6, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

@media (max-width: 768px) {
  .global-cta-bar-inner {
    padding: 8px 12px 10px;
  }

  .global-cta-bar-btn.btn-play-store,
  .global-cta-play-badge {
    width: 100%;
    max-width: none;
    justify-content: center;
  }

  .global-cta-play-badge img {
    height: 46px;
    max-width: min(100%, 210px);
  }

  .global-cta-bar-btn:not(.btn-play-store),
  .site-cta-primary {
    width: 100%;
    max-width: none;
    min-height: 46px;
    border-radius: 12px;
    font-size: 0.82rem;
    padding: 10px 14px;
  }
}

@media (min-width: 769px) {
  body.has-global-cta-bar {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  }
}

.global-cta-bar-btn:focus-visible {
  outline: 2px solid rgba(251, 191, 36, 0.65);
  outline-offset: 2px;
}

body.has-global-cta-bar {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

html[data-play-store-live="true"] .global-cta-bar .global-cta-play-badge {
  max-width: min(100%, 220px);
}

a.footer-cta.btn-play-store,
a.tool-play-badge {
  display: inline-flex;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  line-height: 0;
}

a.footer-cta.btn-play-store img,
a.tool-play-badge img {
  display: block;
  height: 42px;
  width: auto;
  max-width: min(100%, 200px);
}

@media (max-width: 768px) {
  body.has-global-cta-bar .section-jump-dock {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  body:has(.mobile-floating-cta.is-visible) .section-jump-dock {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}