html {
  -webkit-text-size-adjust: 100%;
}

body.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(112, 234, 255, 0.46);
  outline-offset: 3px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(118, 146, 255, 0.18);
  border-radius: 14px;
  color: #eef4ff;
  background: rgba(8, 15, 31, 0.88);
  cursor: pointer;
  place-items: center;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }

.site-header.nav-open .nav-toggle-lines { background: transparent; }
.site-header.nav-open .nav-toggle-lines::before { transform: translateY(6px) rotate(45deg); }
.site-header.nav-open .nav-toggle-lines::after { transform: translateY(-6px) rotate(-45deg); }

.inline-notice.info {
  display: block;
  color: #dff6ff;
  background: rgba(112, 234, 255, 0.08);
  border: 1px solid rgba(112, 234, 255, 0.18);
}

#startPaddleCheckout:disabled {
  cursor: wait;
  opacity: 0.74;
  transform: none;
}

#startPaddleCheckout.is-loading::before {
  content: '';
  width: 17px;
  height: 17px;
  margin-right: 10px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: checkout-spin 0.7s linear infinite;
}

@keyframes checkout-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .site-header .nav {
    min-height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .site-header .brand {
    max-width: calc(100% - 62px);
  }

  .site-header .brand-title {
    min-width: 0;
    overflow: hidden;
  }

  .site-header .brand-title small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    display: grid;
    margin-left: auto;
    flex: 0 0 46px;
  }

  .site-header .nav-links,
  .site-header .nav-actions {
    display: none;
    width: 100%;
    order: 3;
  }

  .site-header.nav-open .nav-links,
  .site-header.nav-open .nav-actions {
    display: flex;
  }

  .site-header .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 0 4px;
  }

  .site-header .nav-links a {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 12px;
    background: rgba(8, 15, 31, 0.58);
  }

  .site-header .nav-actions {
    padding: 6px 0 4px;
  }

  .site-header .nav-actions .btn {
    flex: 1 1 180px;
  }
}

@media (max-width: 640px) {
  .modal-backdrop {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .payment-modal {
    width: 100% !important;
    max-height: min(92vh, 92dvh) !important;
    border-radius: 24px 24px 0 0 !important;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .payment-modal-body h3 {
    font-size: clamp(1.75rem, 9vw, 2.2rem) !important;
  }

  .payment-actions {
    padding-top: 10px;
  }

  .footer-bottom,
  .footer-wrap {
    align-items: flex-start !important;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
