:root {
  --background: oklch(0.98 0.005 250);
  --foreground: oklch(0.2 0.05 260);
  --muted-foreground: oklch(0.554 0.046 257.417);
  --brand-navy: oklch(0.32 0.08 260);
  --brand-navy-deep: oklch(0.22 0.07 260);
  --brand-orange: oklch(0.72 0.18 50);
  --border: oklch(0.929 0.013 255.508);
  --gradient-brand: linear-gradient(135deg, oklch(0.28 0.08 260), oklch(0.22 0.07 260));
  --gradient-accent: linear-gradient(135deg, oklch(0.72 0.18 50), oklch(0.65 0.2 35));
  --shadow-card:
    0 30px 80px -20px oklch(0.22 0.07 260 / 0.35),
    0 10px 30px -10px oklch(0.22 0.07 260 / 0.2);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background:
    radial-gradient(circle at 20% 10%, oklch(0.32 0.08 260 / 0.15), transparent 50%),
    radial-gradient(circle at 80% 90%, oklch(0.72 0.18 50 / 0.12), transparent 50%),
    oklch(0.98 0.005 250);
}

.card {
  position: relative;
  width: min(100%, 448px);
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.card-header {
  position: relative;
  height: 160px;
  background: var(--gradient-brand);
}

.header-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, oklch(0.72 0.18 50 / 0.5), transparent 60%);
  opacity: 0.4;
}

.brand-logo {
  position: absolute;
  top: 20px;
  left: 24px;
  width: auto;
  height: 56px;
  max-width: 176px;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.95);
  padding: 8px;
  box-shadow: 0 14px 28px rgb(0 0 0 / 0.18);
  object-fit: contain;
}

.portrait-wrap {
  position: absolute;
  bottom: -64px;
  left: 50%;
  transform: translateX(-50%);
}

.portrait-ring {
  border-radius: 999px;
  padding: 6px;
  background: var(--gradient-accent);
}

.portrait {
  display: block;
  width: 128px;
  height: 128px;
  border: 4px solid #fff;
  border-radius: 999px;
  object-fit: cover;
}

.card-body {
  padding: 80px 32px 32px;
}

.identity {
  text-align: center;
}

.identity h1 {
  margin: 0;
  color: var(--brand-navy-deep);
  font-size: 30px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 0;
}

.role {
  margin: 6px 0 0;
  color: var(--brand-orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tagline {
  margin: 8px 0 0;
  color: var(--muted-foreground);
  font-size: 12px;
}

.contacts {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.contact-row:hover {
  border-color: var(--brand-orange);
  background: oklch(0.98 0.02 50 / 0.5);
  transform: translateY(-1px);
}

.contact-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--gradient-brand);
  color: #fff;
}

.contact-icon svg,
.save-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.contact-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.contact-label {
  color: var(--muted-foreground);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-value {
  overflow: hidden;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 32px;
}

.qr-frame {
  display: flex;
  width: 202px;
  height: 202px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.qr-frame img {
  display: block;
}

.qr-block p {
  margin: 12px 0 0;
  color: var(--muted-foreground);
  font-size: 12px;
  text-align: center;
}

.save-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  border-radius: 12px;
  background: var(--gradient-brand);
  color: #fff;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.save-button:hover {
  filter: brightness(1.05);
  transform: scale(1.015);
}

.save-button:active {
  transform: scale(0.985);
}

@media (max-width: 520px) {
  .page-shell {
    padding: 16px;
  }

  .card {
    border-radius: 22px;
  }

  .card-body {
    padding: 80px 24px 28px;
  }

  .brand-logo {
    left: 20px;
    max-width: 154px;
  }
}
