/* Fougest Core Stylesheet */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

input, textarea, [contenteditable="true"] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

:root {
  color-scheme: dark;
  --bg: #00040c;
  --fg: #7ab4ff;
  --blue: #4d8dff;
  --blue-hi: #8cc4ff;
  --panel: rgba(4, 10, 26, 0.65);
  --line: rgba(120, 170, 255, 0.16);
  --muted: #9db6e6;
  --card-bg: rgba(8, 14, 34, 0.5);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
html:has(dialog[open]) {
  overflow: hidden;
}

/* Lenis Smooth Scroll Engine */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: clip;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}
body {
  margin: 0;
  background: var(--bg);
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #fff;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

a, svg, img {
  -webkit-user-drag: none;
}

/* LightRays фоновый слой */
#lightrays-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#fallback {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  font: 16px/1.4 system-ui, sans-serif;
  text-align: center;
  padding: 24px;
}

/* Верхняя Навигация */
.nav {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 18px);
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 32px));
  box-sizing: border-box;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px 12px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 40px rgba(0, 10, 50, 0.45), inset 0 1px 0 rgba(160, 200, 255, 0.06);
  animation: nav-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.nav.scrolled {
  background: rgba(3, 8, 22, 0.85);
  border-color: rgba(140, 196, 255, 0.28);
  box-shadow: 0 14px 45px rgba(0, 10, 50, 0.65), inset 0 1px 0 rgba(160, 200, 255, 0.12);
}

@keyframes nav-in {
  from { opacity: 0; transform: translate(-50%, -22px); filter: blur(6px); }
  to { opacity: 1; transform: translate(-50%, 0); filter: none; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand svg {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 8px rgba(77, 141, 255, 0.75));
}

.links {
  display: flex;
  gap: 6px;
}

.links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 12px;
  transition: color 0.2s, background 0.2s;
}

.links a:hover {
  color: #fff;
  background: rgba(77, 141, 255, 0.14);
}

.links a.active {
  color: #fff;
  background: rgba(77, 141, 255, 0.25);
  border: 1px solid rgba(140, 196, 255, 0.3);
}

/* Блок профиля в шапке */
.user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.me {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 10px 3px 3px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s;
}

.me:hover {
  background: rgba(77, 141, 255, 0.14);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #1d3f94, #0b1c4d);
  border: 1px solid rgba(140, 196, 255, 0.35);
  color: #cfe3ff;
  font-weight: 700;
  font-size: 14px;
}

.uname {
  color: #e6f0ff;
  font-weight: 600;
  font-size: 14px;
}
  font-size: 14px;
}

.nav-uid-badge {
  font-size: 11px;
  font-weight: 700;
  color: #8cc4ff;
  background: rgba(77, 141, 255, 0.2);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(140, 196, 255, 0.25);
}

.btn {
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  color: #e6f0ff;
  cursor: pointer;
  text-decoration: none;
  background: rgba(77, 141, 255, 0.10);
  border: 1px solid rgba(140, 196, 255, 0.28);
  padding: 8px 16px;
  border-radius: 12px;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn:hover {
  background: rgba(77, 141, 255, 0.22);
  border-color: rgba(140, 196, 255, 0.5);
  box-shadow: 0 0 18px rgba(77, 141, 255, 0.35);
}

.btn-logout {
  padding: 8px 14px;
  color: rgba(220, 230, 255, 0.85);
}

.btn-login {
  background: linear-gradient(180deg, #4d8dff, #2a5ee8);
  border: none;
}

.nav a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--blue-hi);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .links { display: none; }
}
@media (max-width: 480px) {
  .uname, .nav-uid-badge { display: none; }
}

/* Главный Экран (Hero) */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px;
  box-sizing: border-box;
  text-align: center;
  pointer-events: none;
}

.headline {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: 0.26em;
  font-weight: 700;
  font-size: clamp(38px, 6.4vw, 84px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #fff;
  text-shadow: 0 0 40px rgba(77, 141, 255, 0.35);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.rotator {
  display: grid;
  justify-items: center;
  flex-basis: 100%;
}

.rotator > span {
  grid-area: 1 / 1;
  will-change: transform, opacity;
  animation: word-swap 10s infinite both;
  animation-delay: calc(var(--i) * 2.5s);
}

.line2 {
  white-space: nowrap;
}

.accent {
  background: linear-gradient(90deg, #5d9bff, #a6d6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #b9cdf5;
  background: rgba(77, 141, 255, 0.08);
  border: 1px solid rgba(140, 196, 255, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
}

.lead {
  max-width: 580px;
  margin: 24px 0 0;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.65;
  color: rgba(206, 220, 250, 0.75);
  text-shadow: 0 1px 14px rgba(0, 5, 20, 0.85);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  pointer-events: auto;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.cta svg {
  width: 16px;
  height: 16px;
}

.cta-main {
  background: linear-gradient(180deg, #4d8dff, #2a5ee8);
  box-shadow: 0 8px 30px rgba(61, 125, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.cta-main:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 38px rgba(61, 125, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta-ghost {
  background: rgba(8, 12, 26, 0.7);
  border: 1px solid rgba(140, 196, 255, 0.16);
}

.cta-ghost:hover {
  border-color: rgba(140, 196, 255, 0.4);
  background: rgba(20, 36, 80, 0.55);
}

/* Преимущества */
.advantages {
  position: relative;
  z-index: 5;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px 120px;
}

.adv-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.adv-head h2 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 0 40px rgba(77, 141, 255, 0.35);
}

.adv-head p {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(206, 220, 250, 0.72);
}

.cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-column: span 2;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  --mx: 50%;
  --my: 0%;
  --glow: 0;
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: border-color 0.3s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: var(--glow);
  transition: opacity 0.35s;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(90, 150, 255, 0.26), transparent 65%);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  opacity: var(--glow);
  transition: opacity 0.35s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(170, 210, 255, 0.95), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.card:nth-child(n+4) {
  grid-column: span 3;
}

.cards:hover .card {
  --glow: 1;
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #9fd0ff;
  background: rgba(77, 141, 255, 0.14);
  border: 1px solid rgba(140, 196, 255, 0.25);
  box-shadow: 0 0 24px rgba(77, 141, 255, 0.25);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin: 20px 0 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(214, 228, 255, 0.82);
}

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card, .card:nth-child(n+4) { grid-column: span 1; }
  .card:last-child { grid-column: span 2; }
}

@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .card:last-child { grid-column: span 1; }
}

/* Демонстрация (Видео) */
.demo {
  position: relative;
  z-index: 5;
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 20px 140px;
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: radial-gradient(70% 90% at 50% 0%, rgba(77, 141, 255, 0.35), transparent 70%), rgba(6, 12, 30, 0.7);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 90px rgba(10, 40, 160, 0.35);
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, #4d8dff, #2a5ee8);
  box-shadow: 0 10px 40px rgba(61, 125, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.play::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(140, 196, 255, 0.45);
  animation: ring 2.4s ease-out infinite;
}

@keyframes ring {
  from { transform: scale(0.85); opacity: 0.9; }
  to { transform: scale(1.5); opacity: 0; }
}

.play:hover {
  transform: scale(1.08);
}

.play svg {
  width: 34px;
  height: 34px;
  display: block;
}

.video.playing .play {
  display: none;
}

/* Анимации текста и карточек */
.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.08em 0 0.18em;
  margin: -0.08em 0 -0.18em;
}
.split.done .w { overflow: visible; }
.split .wi {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%) rotate(5deg);
  transform-origin: 0 100%;
  filter: blur(6px);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) var(--d), opacity 0.8s ease var(--d), filter 0.9s ease var(--d);
}
.split.in .wi { opacity: 1; transform: none; filter: none; }
.reveal:not(.in) { opacity: 0; transform: translateY(32px); filter: blur(8px); }
.reveal.in { animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s) backwards; }

@keyframes rise {
  from { opacity: 0; transform: translateY(32px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes word-swap {
  0%   { opacity: 0; transform: translateY(0.7em); filter: blur(6px); animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
  6%   { opacity: 1; transform: translateY(0); filter: blur(0); }
  19%  { opacity: 1; transform: translateY(0); filter: blur(0); animation-timing-function: cubic-bezier(0.5, 0, 0.8, 0.4); }
  25%  { opacity: 0; transform: translateY(-0.7em); filter: blur(6px); }
  100% { opacity: 0; transform: translateY(-0.7em); filter: blur(6px); }
}

/* Модальные окна (Auth Modal & Checkout Modal) */
dialog.modal {
  width: min(520px, calc(100% - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  overflow: visible;
}

dialog.modal::backdrop {
  background: rgba(0, 4, 16, 0.68);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.modal-panel {
  position: relative;
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 38px 30px 32px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: rgba(6, 12, 30, 0.88);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 40px 120px rgba(10, 40, 180, 0.45);
}

.modal-panel h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.modal-panel > p, .auth-form > p {
  margin: 8px 0 24px;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(206, 220, 250, 0.72);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #cfe3ff;
  background: rgba(77, 141, 255, 0.1);
  border: 1px solid var(--line);
  transition: background 0.2s, border-color 0.2s;
}

.modal-close:hover {
  background: rgba(77, 141, 255, 0.24);
  border-color: rgba(140, 196, 255, 0.45);
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

/* Вкладки входа / регистрации */
.auth-tabs {
  display: flex;
  background: rgba(77, 141, 255, 0.08);
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 24px;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.auth-tab.active {
  background: rgba(77, 141, 255, 0.25);
  color: #fff;
  border: 1px solid rgba(140, 196, 255, 0.3);
}

.auth-field {
  margin-bottom: 16px;
  text-align: left;
}

.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #cfe3ff;
  margin-bottom: 6px;
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(4, 9, 24, 0.85);
  border: 1px solid var(--line);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input:focus {
  border-color: var(--blue-hi);
  box-shadow: 0 0 14px rgba(77, 141, 255, 0.3);
}

.auth-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 15px;
  margin-top: 10px;
}

.auth-error-msg {
  color: #ff6b6b;
  font-size: 13px;
  margin: 6px 0 12px;
  min-height: 18px;
}

.auth-quick-demo {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.auth-quick-demo span {
  font-size: 12.5px;
  color: var(--muted);
}

.btn-demo-quick {
  background: rgba(140, 196, 255, 0.12);
  border: 1px solid rgba(140, 196, 255, 0.35);
  color: #cfe3ff;
  padding: 8px 16px;
  font-size: 13px;
}

.btn-demo-quick:hover {
  background: rgba(140, 196, 255, 0.22);
}

/* Всплывающее уведомление (Toast) */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: rgba(10, 22, 54, 0.95);
  border: 1px solid rgba(140, 196, 255, 0.4);
  color: #fff;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(77, 141, 255, 0.3);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* Футер главной страницы в стиле Astralis / Fougest */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: 120px;
  padding: 64px 24px 36px;
  background: rgba(1, 6, 18, 0.88);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-top: 1px solid rgba(120, 170, 255, 0.12);
}

.footer-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.06em;
}

.footer-brand svg {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 10px rgba(77, 141, 255, 0.8));
}

.footer-slogan {
  margin: 16px 0 20px;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(157, 182, 230, 0.75);
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 18px;
  align-items: center;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  color: #cfe0ff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-socials a:hover {
  color: #8cc4ff;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(157, 182, 230, 0.55);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #cfe0ff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s, transform 0.2s;
}

.footer-links a svg {
  width: 16px;
  height: 16px;
  color: rgba(140, 196, 255, 0.65);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(2px);
}

.footer-links a:hover svg {
  color: var(--blue-hi);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(120, 170, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: 13.5px;
  color: rgba(157, 182, 230, 0.6);
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
  }
}

/* =========================================================
   Бейджи ролей пользователей (Минималистичный темный глассморфизм)
   ========================================================= */
.role-badge, .badge-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  text-shadow: none !important;
  box-shadow: none !important;
}

.role-badge.badge-owner, .badge-role.badge-owner, .role-owner {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  text-shadow: none !important;
  box-shadow: none !important;
}

.role-badge.badge-admin, .badge-role.badge-admin, .role-admin {
  background: rgba(77, 141, 255, 0.09);
  border: 1px solid rgba(120, 170, 255, 0.24);
  color: #cfe0ff;
  text-shadow: none !important;
  box-shadow: none !important;
}

.role-badge.badge-moder, .badge-role.badge-moder, .role-moder {
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.22);
  color: #a7f3d0;
  text-shadow: none !important;
  box-shadow: none !important;
}

.role-badge.badge-media, .badge-role.badge-media, .role-media {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.22);
  color: #e9d5ff;
  text-shadow: none !important;
  box-shadow: none !important;
}

.role-badge.badge-user, .badge-role.badge-user, .role-user {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  text-shadow: none !important;
  box-shadow: none !important;
}
