/* =========================================================
   PRISM / GLASS BUTTON OVERLAY (универсально)
   ✅ Вешай класс .lma-prism на любую кнопку/ссылку:
   <a class="lt-header-btn lt-header-btn--ghost lma-prism">...</a>
   <a class="lt-social-btn lma-prism">...</a>
   ========================================================= */
.lt-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.lt-header-btn:hover {
  transform: translateY(-1px);
}
.lt-header-btn:active {
  transform: translateY(0px);
}

.lt-header-btn--ghost {
  color: var(--text);
  background: rgba(10, 12, 18, 0.38);
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 -4px 20px rgba(137, 126, 233, 0.2),
    0 10px 30px rgba(0, 0, 0, 0.2);
  border: none;
}
.lt-header-btn--ghost:hover {
  background: rgba(10, 12, 18, 0.45);
  border-color: rgba(255, 255, 255, 0.28);
}
.lt-header-btn--ghost::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1px;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.48) 16.73%,
    rgba(255, 255, 255, 0.08) 30.2%,
    rgba(255, 255, 255, 0.08) 68.2%,
    rgba(255, 255, 255, 0.6) 81.89%
  );
  border-radius: inherit;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.lma-prism {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
}

.lma-prism {
  transition:
    transform 0.18s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.lma-prism {
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.lma-prism::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.34) 0%,
    rgba(138, 43, 226, 0.4) 25%,
    rgba(0, 191, 255, 0.38) 50%,
    rgba(255, 105, 180, 0.34) 75%,
    rgba(255, 255, 255, 0.34) 100%
  );
  background-size: 200% 200%;
  opacity: 0;
  animation: ltBorderFlow 3s linear infinite;

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  pointer-events: none;
  z-index: 2;
  transition: opacity 0.35s ease;
}

@keyframes ltBorderFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.lma-prism .lma-prism__spot {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(255, 255, 255, 0.22) 0%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}
.lma-prism .lma-prism__shimmer {
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 45%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0.1) 55%,
    transparent 100%
  );
  transform: translateX(-100%) rotate(30deg);
  animation: ltShimmer 3s infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes ltShimmer {
  0% {
    transform: translateX(-100%) rotate(30deg);
  }
  100% {
    transform: translateX(100%) rotate(30deg);
  }
}

.lma-prism:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 14px 52px rgba(138, 43, 226, 0.18),
    0 0 80px rgba(0, 191, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.lma-prism:hover::after {
  opacity: 0.95;
  animation-duration: 2s;
}

.lma-prism:hover .lma-prism__spot {
  opacity: 1;
}

.lma-prism:hover .lma-prism__shimmer {
  animation-duration: 1.5s;
}

.lma-prism:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow:
    0 8px 28px rgba(138, 43, 226, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* контент выше слоёв */
.lma-prism > * {
  position: relative;
  z-index: 3;
}
/* ============================================
   исключение: register cards не должны получать button-prism рамку
   ============================================ */
.lma-register-card.lma-prism::after {
  opacity: 0 !important;
}
.lma-register-card.lma-prism .lma-prism__shimmer {
  display: none !important;
}
.lma-register-card.lma-prism {
  transform: none;
} 

