:root {
  --bg: #0a0a0f;
  --bg-soft: #12121a;
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f5f5f7;
  --text-dim: #a1a1aa;
  --accent-1: #8b5cf6;
  --accent-2: #06b6d4;
  --accent-3: #ec4899;
  --radius: 18px;
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px circle at 15% 10%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(600px circle at 85% 20%, rgba(6, 182, 212, 0.18), transparent 60%),
    radial-gradient(700px circle at 50% 100%, rgba(236, 72, 153, 0.16), transparent 60%);
  filter: blur(8px);
}

.card {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 36px 26px 26px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: fade-up 0.6s ease both;
}

.profile {
  text-align: center;
  margin-bottom: 28px;
}

.avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06), 0 12px 30px rgba(139, 92, 246, 0.35);
}

.profile h1 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.profile p {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  animation: fade-up 0.5s ease both;
}

.link:hover,
.link:focus-visible {
  transform: translateY(-2px);
  background: var(--card-hover);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  outline: none;
}

.link:active {
  transform: translateY(0) scale(0.99);
}

.link .icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--accent-2);
}

.link svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link .icon svg {
  width: 100%;
  height: 100%;
}

.link .label {
  flex: 1;
}

.link .arrow {
  display: flex;
  color: var(--text-dim);
  transition: transform 0.18s ease, color 0.18s ease;
}

.link .arrow svg {
  width: 16px;
  height: 16px;
}

.link:hover .arrow {
  transform: translateX(3px);
  color: var(--text);
}

.footer {
  margin-top: 26px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 420px) {
  .card {
    padding: 30px 18px 20px;
  }

  .profile h1 {
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
