* {
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #7c3aed;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --soft-bg: #f8fafc;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(
      circle at top left,
      rgba(37, 99, 235, 0.16),
      transparent 32%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(124, 58, 237, 0.13),
      transparent 34%
    ),
    linear-gradient(135deg, #f8fafc 0%, #eef2ff 48%, #f8fafc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.profile-card {
  width: 100%;
  max-width: 430px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 30px;
  overflow: hidden;
  box-shadow:
    0 24px 70px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.cover {
  height: 125px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(124, 58, 237, 0.95)),
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.28),
      transparent 32%
    );
  position: relative;
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.25;
}

.content {
  padding: 0 26px 28px;
  text-align: center;
}

.avatar {
  width: 112px;
  height: 112px;
  margin: -56px auto 16px;
  border-radius: 32px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border: 6px solid #ffffff;
  box-shadow:
    0 18px 35px rgba(37, 99, 235, 0.28),
    0 0 0 1px rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.05em;
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 750;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.045em;
  color: var(--text-main);
}

.role {
  margin: 8px 0 0;
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
}

.description {
  margin: 16px auto 22px;
  max-width: 350px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.stat {
  padding: 14px 8px;
  border-radius: 18px;
  background: var(--soft-bg);
  border: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-size: 21px;
  line-height: 1;
  color: var(--text-main);
  letter-spacing: -0.04em;
}

.stat span {
  display: block;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 12px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.skill {
  padding: 8px 11px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  font-size: 12.5px;
  font-weight: 700;
}

.primary-btn {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 15px 18px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.34);
}

.primary-btn:active {
  transform: scale(0.98);
}

.primary-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.note {
  margin: 14px 0 0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 480px) {
  body {
    align-items: flex-start;
    padding: 18px 14px;
  }

  .profile-card {
    margin-top: 18px;
    border-radius: 26px;
  }

  .content {
    padding: 0 20px 24px;
  }

  .cover {
    height: 110px;
  }

  .avatar {
    width: 100px;
    height: 100px;
    margin-top: -50px;
    border-radius: 28px;
    font-size: 38px;
  }

  h1 {
    font-size: 27px;
  }

  .description {
    font-size: 14px;
  }

  .stats {
    gap: 8px;
  }

  .stat {
    padding: 12px 6px;
  }

  .stat strong {
    font-size: 19px;
  }
}
.status-text {
  min-height: 18px;
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  text-align: center;
}

.status-text.success {
  color: #16a34a;
}

.status-text.error {
  color: #dc2626;
}

.status-text.loading {
  color: #2563eb;
}
