* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: #000;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Мягкое белое пятно за курсором */
.glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.06) 35%, transparent 70%);
  border-radius: 50%;
  filter: blur(10px);
  z-index: 0;
}

/* ===== Верхнее меню как на фото ===== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 110px;
  background: #0e0e10;
  border-bottom: 1px solid #1e1e22;
  display: flex;
  align-items: center;
}

.topbar__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  padding: 6px 2px;
}

.menu::-webkit-scrollbar {
  display: none;
}

.menu__item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
  padding: 10px 20px 14px;
  min-height: 64px;
  min-width: 0;
  text-decoration: none;
  color: #8e8e93;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.12), inset 0 0 12px rgba(255, 255, 255, 0.04);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.menu__item:hover {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.22), inset 0 0 14px rgba(255, 255, 255, 0.06);
}

.menu__item--active {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.25), inset 0 0 14px rgba(255, 255, 255, 0.06);
}

.menu__label {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.menu__item--active .menu__label {
  color: #fff;
}

.menu__sub {
  font-size: 12px;
  letter-spacing: 0.4px;
  color: #636366;
}

.menu__sub i {
  font-style: normal;
}

.menu__sub--red {
  color: #ff3b3b;
}

/* Белая мягкая линия с затуханием, как розовая на фото */
.menu__line {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.55) 45%, rgba(255,255,255,0.15) 75%, transparent 100%);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.menu__item--active .menu__line,
.menu__item:hover .menu__line {
  opacity: 1;
}

.menu__item:hover .menu__label {
  color: #fff;
}

/* Правый блок как на фото (аватар + имя) */
.user {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: #fff;
  font-size: 13px;
}

.user__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f2c4ce;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

/* ===== Основной контент ===== */
.page {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 110px;
  padding: 40px 24px;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 600px;
}

.title {
  font-size: clamp(22px, 6vw, 40px);
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.logo {
  width: min(260px, 68vw);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #111;
  display: block;
}

.links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.link {
  display: inline-block;
  padding: 12px 16px;
  min-height: 44px;
  font-size: 20px;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 6px;
  opacity: 0.9;
}

.link:hover {
  opacity: 1;
}

.link--second {
  font-size: 17px;
  opacity: 0.7;
}

/* Мобильные */
@media (max-width: 480px) {
  .topbar {
    height: 110px;
  }

  .topbar__inner {
    padding: 0 10px;
  }

  .menu__item {
    padding: 10px 14px 14px;
  }

  .menu__label {
    font-size: 14px;
  }

  .menu__sub {
    font-size: 11px;
  }

  .menu__line {
    left: 14px;
    right: 14px;
  }

  .user__name {
    display: none;
  }

  .page {
    margin-top: 110px;
    padding: 32px 20px;
    gap: 22px;
  }

  .logo {
    width: min(200px, 60vw);
  }

  .link {
    font-size: 18px;
    max-width: 90vw;
    overflow-wrap: break-word;
  }

  .link--second {
    font-size: 16px;
  }

  .glow {
    width: 300px;
    height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glow {
    display: none;
  }
}
