:root {
  --bg: #020205;
  --card-bg: rgba(12, 15, 22, 0.04);
  --card-border: rgba(255, 255, 255, 0.24);
  --card-border-hover: rgba(255, 255, 255, 0.38);
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --text: #f3f4f8;
  --text-muted: #cbd2e2;
  --accent: #b8c9e8;
  --accent-soft: rgba(184, 201, 232, 0.14);
  --telegram: #2aabee;
  --vol-progress: 35%;
}

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

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 24px 16px;
  position: relative;
}

.hidden {
  display: none !important;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  filter: saturate(0.88) contrast(1.06);
}

.bg-video-scrim {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    rgba(2, 2, 5, var(--video-dim, 0.1)) 0%,
    rgba(2, 2, 5, 0.28) 100%
  );
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
  animation: floatGlow 18s ease-in-out infinite alternate;
}

.bg-glow-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(120, 145, 210, 0.16), transparent 72%);
  top: -160px;
  left: -120px;
}

.bg-glow-2 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(95, 105, 160, 0.14), transparent 72%);
  bottom: -180px;
  right: -130px;
  animation-delay: -8s;
}

@keyframes floatGlow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(35px, 25px) scale(1.08);
  }
}

#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.035;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
}

.enter-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(2, 2, 5, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: pointer;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  user-select: none;
}

.enter-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.enter-content {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  letter-spacing: 0.06em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 40px rgba(184, 201, 232, 0.08);
  animation: pulseEnter 2.2s ease-in-out infinite;
}

.enter-bracket {
  color: var(--accent);
  font-weight: 500;
}

@keyframes pulseEnter {
  0%,
  100% {
    opacity: 0.78;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

.stage {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  perspective: 1000px;
}

.bio-card {
  position: relative;
  width: 100%;
  padding: 22px 24px 24px;
  border-radius: 24px;
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 0 24px rgba(255, 255, 255, 0.02);
  transition: transform 0.2s ease-out, border-color 0.3s ease;
  transform-style: preserve-3d;
}

.bio-card:hover {
  border-color: var(--card-border-hover);
}

.card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.icon-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 22px;
}

.avatar-wrap {
  position: relative;
  width: 108px;
  height: 108px;
  margin-bottom: 16px;
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(226, 232, 240, 0.55),
    rgba(148, 163, 184, 0.2),
    rgba(255, 255, 255, 0.35),
    rgba(226, 232, 240, 0.55)
  );
  filter: blur(7px);
  opacity: 0.48;
  animation: spinRing 11s linear infinite;
}

@keyframes spinRing {
  to {
    transform: rotate(360deg);
  }
}

.avatar {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: #12131a;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  transition: transform 0.35s ease;
}

.avatar-wrap:hover .avatar {
  transform: scale(1.03);
}

.name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.profile-name {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #c6cbd9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 26px rgba(255, 255, 255, 0.15);
}

.badges-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--accent);
  cursor: default;
}

.badge-item svg {
  width: 14px;
  height: 14px;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.45));
}

.badge-item::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 4px 8px;
  border-radius: 6px;
  background: #141620;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 0.68rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.badge-item:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.profile-bio {
  min-height: 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.links-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(
    135deg,
    rgba(42, 171, 238, 0.17),
    rgba(255, 255, 255, 0.04)
  );
  border: 1px solid rgba(42, 171, 238, 0.34);
  box-shadow: 0 8px 24px rgba(42, 171, 238, 0.1);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  border-color: rgba(42, 171, 238, 0.68);
  background: linear-gradient(
    135deg,
    rgba(42, 171, 238, 0.26),
    rgba(255, 255, 255, 0.06)
  );
  box-shadow: 0 12px 30px rgba(42, 171, 238, 0.2);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.btn-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.telegram-box {
  background: rgba(42, 171, 238, 0.2);
  color: #58c4ff;
  border: 1px solid rgba(42, 171, 238, 0.3);
}

.telegram-box svg {
  width: 20px;
  height: 20px;
}

.btn-text-group {
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 0;
}

.btn-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.btn-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  color: #9edcff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-primary-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(42, 171, 238, 0.16);
  color: #8ad8ff;
  border: 1px solid rgba(42, 171, 238, 0.25);
}

.arrow-icon {
  width: 17px;
  height: 17px;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.btn-primary:hover .arrow-icon {
  transform: translate(2px, -2px);
  color: var(--text);
}

.secondary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 9px;
}

.btn-secondary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.075);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  min-width: 0;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-secondary-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  flex-shrink: 0;
}

.btn-secondary-icon svg {
  width: 16px;
  height: 16px;
}

.btn-secondary-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 0;
}

.btn-secondary-label {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.15;
}

.btn-secondary-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-bar {
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.music-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.music-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.track-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.track-nav-btn {
  width: 26px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.track-nav-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.track-nav-btn svg {
  width: 12px;
  height: 12px;
}

.music-right-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.track-counter {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.78;
}

.play-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.play-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.play-btn svg {
  width: 14px;
  height: 14px;
}

.track-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.track-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.track-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.equalizer span {
  width: 2.5px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  animation: eqBar 0.9s ease-in-out infinite alternate;
}

.equalizer span:nth-child(2) {
  animation-delay: 0.2s;
}
.equalizer span:nth-child(3) {
  animation-delay: 0.45s;
}
.equalizer span:nth-child(4) {
  animation-delay: 0.15s;
}

.equalizer.is-paused span {
  animation-play-state: paused;
  height: 3px;
  opacity: 0.4;
}

@keyframes eqBar {
  0% {
    height: 3px;
  }
  100% {
    height: 11px;
  }
}

.volume-percent {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  min-width: 36px;
  text-align: right;
}

.volume-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vol-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 2px;
  transition: color 0.18s ease;
}

.vol-icon-btn:hover {
  color: var(--text);
}

.vol-icon-btn svg {
  width: 16px;
  height: 16px;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(
    to right,
    var(--accent) 0%,
    var(--accent) var(--vol-progress),
    rgba(255, 255, 255, 0.12) var(--vol-progress),
    rgba(255, 255, 255, 0.12) 100%
  );
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--accent);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.55);
  transition: transform 0.15s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.16);
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--accent);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.55);
  transition: transform 0.15s ease;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 60;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(18, 20, 29, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
  .bio-card {
    padding: 20px 18px;
    border-radius: 20px;
  }

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