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

:root {
  --bg: #1a1a1a;
  --card-bg: #1e1e1e;
  --accent: #3eaaf0;
  --accent-hover: #2b96dc;
  --text: #fff;
  --text-muted: #8e9baa;
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  color: var(--text);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* ── Background ── */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #000;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #a8c0f0, #e8c8e0, #d0cfff);
  mix-blend-mode: color;
}

.bg-pattern {
  position: absolute;
  inset: 0;
  background: url('animals.svg') repeat;
  background-size: 420px;
  opacity: 0.15;
  filter: invert(1);
}

/* ── Top bar ── */
.topbar {
  position: relative;
  z-index: 1;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(8px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.topbar-icon {
  width: 28px;
  height: 28px;
}

.topbar-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.topbar-btn {
  background: var(--accent);
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.15s;
}

.topbar-btn:hover {
  background: var(--accent-hover);
}

/* ── Main content ── */
.content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px 40px;
  position: relative;
  z-index: 1;
}

/* ── Card ── */
.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 32px 56px 28px;
  text-align: center;
  min-width: 340px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

/* ── Avatar ── */
.avatar {
  width: 110px;
  height: 110px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #6c7b8a, #4a5562);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.avatar-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  z-index: 0;
}

/* ── Text ── */
.name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.username {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* ── Button ── */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.15s, transform 0.1s;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn:active {
  transform: scale(0.97);
}
