html {
  scroll-padding-top: 96px;
}

* {
  letter-spacing: 0 !important;
}

html.intro-locked,
html.intro-locked body {
  overflow: hidden;
}

html.intro-locked .main,
html.intro-locked .header {
  visibility: hidden;
}

.welcome.intro-boot {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  opacity: 1;
  visibility: visible;
}

.welcome.is-leaving {
  animation: pulse-intro-out 0.45s ease forwards;
}

@keyframes pulse-intro-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.logo__line {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: pulse-draw 2.4s linear infinite !important;
}

.logo:hover .logo__line {
  animation-duration: 1.25s !important;
}

.logo,
.nav__link,
.btn,
.feature-card,
.product-card,
.prod,
.trust__item,
.faq-item,
.theme-toggle,
.lang-switch__btn,
.amount-chip,
.pay-method {
  will-change: transform;
}

.bg-grid,
.bg-glow,
.nav__link,
.btn,
.feature-card,
.product-card,
.prod,
.trust__item,
.faq-item,
.lang-switch,
.lang-switch__btn,
.cat-tabs,
.cat-tabs__btn,
.term-chip,
.pulse-product,
.pulse-user-chip,
.field__input,
.modal__dialog {
  transition-duration: 0.32s;
  transition-timing-function: ease;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.main {
  padding-top: 132px;
}

.main.main--pricing {
  padding-top: 132px;
}

.theme-toggle {
  overflow: hidden;
  display: inline-grid;
  place-items: center;
}

.theme-toggle:hover {
  transform: translateY(-2px) rotate(8deg);
}

.theme-switching .theme-toggle {
  animation: theme-toggle-pop 0.42s cubic-bezier(.22,.61,.36,1);
}

.theme-switching .bg-glow {
  animation: theme-glow-pop 0.5s ease;
}

@keyframes theme-toggle-pop {
  0% { transform: scale(1) rotate(0); }
  45% { transform: scale(0.88) rotate(-18deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes theme-glow-pop {
  0% { opacity: 0.45; transform: translateX(-50%) scale(0.94); }
  100% { opacity: 1; transform: translateX(-50%) scale(1); }
}

.theme-toggle__icon {
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: currentColor;
  line-height: 1;
}

.theme-toggle__icon svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
}

.faq-item.open .faq-item__icon {
  transform: none;
}

.faq-item.open .faq-item__a-wrap {
  max-height: 260px;
}

.products__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  min-height: 288px;
}

.product-card__btn {
  margin-top: auto;
}

.product-card:hover,
.feature-card:hover,
.prod:hover,
.trust__item:hover {
  transform: translateY(-6px);
}

.pulse-market-note {
  max-width: 1200px;
  margin: -42px auto 28px;
  padding: 0 24px;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.94rem;
}

.prod__actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.prod__cta-secondary {
  width: 100%;
}

.pulse-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
}

.pulse-user-chip__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.78rem;
  font-weight: 800;
}

.pulse-user-chip__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-captcha {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-2);
}

.auth-captcha__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
}

.smartcaptcha-box {
  min-height: 102px;
}

.form__hint-line {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.pulse-toast-root {
  position: fixed;
  top: 96px;
  right: 24px;
  z-index: 2500;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
}

.pulse-toast {
  position: relative;
  overflow: hidden;
  padding: 14px 16px 14px 44px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 650;
  animation: pulse-toast-in 0.25s ease both;
}

.pulse-toast::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--border);
}

.pulse-toast--success { border-color: rgba(34, 197, 94, 0.45); }
.pulse-toast--error { border-color: rgba(239, 68, 68, 0.55); }
.pulse-toast--success::before { background: #22c55e; }
.pulse-toast--error::before { background: #ef4444; }

@keyframes pulse-toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.pulse-products {
  display: grid;
  gap: 14px;
}

.pulse-product {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-2);
}

.pulse-product__main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.pulse-product__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.pulse-product__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.pulse-product__bar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--border);
}

.pulse-product__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.pulse-product__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
}

.status-pill--ok {
  color: #16a34a;
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
}

.status-pill--muted {
  background: var(--bg);
}

.pulse-section-grid {
  display: grid;
  gap: 18px;
}

.profile-section__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.profile-section__head .profile-section__title {
  margin-bottom: 4px;
}

.pulse-activity {
  display: grid;
  gap: 10px;
}

.pulse-activity__item {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.pulse-activity__item:last-child {
  border-bottom: 0;
}

.pulse-activity__title {
  color: var(--text);
  font-weight: 750;
}

.pulse-activity__desc,
.pulse-activity__time {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.pulse-inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pulse-admin-note {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-muted);
  background: var(--bg-2);
  font-size: 0.86rem;
}

.pulse-ticket-list {
  display: grid;
  gap: 12px;
}

.pulse-ticket {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-2);
  cursor: pointer;
}

.pulse-ticket__subject {
  color: var(--text);
  font-weight: 800;
  margin-bottom: 4px;
}

.pulse-ticket__meta {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.prod__cta[data-disabled="1"] {
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 760px) {
  .main,
  .main.main--pricing {
    padding-top: 108px;
  }

  .products__grid {
    grid-template-columns: 1fr;
  }

  .pulse-product {
    grid-template-columns: 1fr;
  }

  .pulse-product__actions {
    justify-content: stretch;
  }

  .pulse-product__actions .btn {
    flex: 1;
    justify-content: center;
  }

  .profile-section__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .pulse-toast-root {
    top: auto;
    right: 16px;
    bottom: 16px;
  }
}

@media (min-width: 761px) and (max-width: 1120px) {
  .products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
