:root {
  --bg: #0b0b0f;
  --bg-2: #15131c;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f4f1f6;
  --muted: #a39fae;
  --accent: #e8c6a8;
  --accent-2: #c99a76;
  --online: #3ddc84;
  color-scheme: dark;
}

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

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 60% at 50% 0%, #2a1f2b 0%, transparent 60%),
    radial-gradient(80% 50% at 50% 100%, #1a1622 0%, transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

.card {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 22px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: rise .6s ease-out both;
}

.avatar-wrap { position: relative; margin-bottom: 18px; }

.avatar {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.status-dot {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--online);
  border: 3px solid var(--bg);
}

.name {
  font-size: 1.6rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.handle {
  margin-top: 4px;
  color: var(--muted);
  font-size: .95rem;
}

.online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(61, 220, 132, 0.1);
  color: var(--online);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 0 0 rgba(61, 220, 132, .6);
  animation: pulse 1.8s infinite;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-top: 20px;
  border-radius: 50%;
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  transition: transform .15s ease, border-color .15s ease;
}
.social:hover, .social:focus-visible { transform: translateY(-2px); border-color: var(--accent); }

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: block;
  width: 100%;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover, .btn:focus-visible { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.18); }
.btn:active { transform: scale(.98); }

.btn-primary {
  border: 0;
  color: #1b1418;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.btn-primary:hover, .btn-primary:focus-visible { background: linear-gradient(135deg, #f0d2b6, #d4a683); }

.foot {
  margin-top: 28px;
  color: var(--muted);
  font-size: .75rem;
  opacity: .7;
}

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); }
  70%  { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

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