:root {
  --primary: #4f7cd9;
  --primary-dark: #355cb3;
  --muted: #8fa0b8;
  --card-radius: 32px;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #f1f6ff, #e3ebff 45%, #d4dfff);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0.5rem;
}

.vcard {
  width: min(320px, 100%);
  border-radius: var(--card-radius);
  box-shadow: 0 24px 50px rgba(79, 124, 217, 0.25);
  overflow: hidden;
  background: #fff;
}

.profile-hero {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.profile-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-hero svg {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  width: 100%;
}

.profile-body {
  padding: 1.25rem 2rem 1.5rem;
  text-align: center;
}

.profile-body h1 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.profile-body h2 {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.profile-body p {
  font-size: 0.85rem;
  color: #5f6b7c;
  margin-bottom: 1.4rem;
}

.btn-pill {
  border-radius: 999px;
  font-weight: 500;
  padding: 0.65rem;
  letter-spacing: 0.01em;
}

.btn-pill i {
  font-size: 1rem;
  margin-right: 0.4rem;
}

.contact-footer {
  border-top: 1px solid #eef1f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem 1.3rem;
}

.contact-footer .contact-info span {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.3;
}

.contact-footer .contact-info strong {
  font-size: 0.85rem;
  color: #303a4b;
}

.contact-footer .btn-save {
  background: var(--primary);
  color: #fff;
  border-radius: 18px;
  border: none;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  box-shadow: inset 0 -4px 10px rgba(0, 0, 0, 0.12);
}

@media (max-width: 360px) {
  .profile-body {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .contact-footer {
    padding: 1rem;
    gap: 0.75rem;
    flex-direction: column;
    align-items: stretch;
  }

  .contact-footer .btn-save {
    width: 100%;
  }
}
