:root {
  color-scheme: light;
  --bg: #f2f6fb;
  --bg-accent: #e6edf8;
  --card: #ffffff;
  --text: #0c121c;
  --muted: #5a6472;
  --accent: #1e5aa8;
  --accent-soft: rgba(30, 90, 168, 0.12);
  --border: rgba(14, 22, 34, 0.12);
  --shadow: 0 28px 60px rgba(9, 22, 40, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 10% 0%, #ffffff 0%, var(--bg-accent) 35%, var(--bg) 100%);
  color: var(--text);
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.page::before,
.page::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 90, 168, 0.2), transparent 70%);
  filter: blur(2px);
  z-index: 0;
}

.page::before {
  top: -140px;
  right: -160px;
}

.page::after {
  bottom: -200px;
  left: -120px;
  background: radial-gradient(circle, rgba(24, 80, 156, 0.22), transparent 70%);
}

.profile {
  width: min(560px, 100%);
  position: relative;
  z-index: 1;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 36px 30px 30px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 26px;
  animation: rise 0.7s ease forwards;
  opacity: 0;
  transform: translateY(18px);
}

.intro {
  display: grid;
  gap: 14px;
  text-align: center;
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 28px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  background: #0b1320;
  color: #f8f9fb;
  font-weight: 600;
  letter-spacing: 0.2em;
  overflow: hidden;
  border: 2px solid rgba(30, 90, 168, 0.4);
}

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

.title h1 {
  margin: 0;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 32px;
  letter-spacing: 0.06em;
}

.handle {
  margin: 6px 0 0;
  color: var(--accent);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.bio {
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 360px;
}

.claim,
.form {
  display: grid;
  gap: 12px;
}

.links {
  display: grid;
  gap: 12px;
}

.links .link {
  padding: 16px 18px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  background: #f9fbff;
  border: 1px solid transparent;
  box-shadow: 0 8px 20px rgba(10, 24, 44, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-align: center;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.links .link:hover,
.links .link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 12px 26px rgba(10, 24, 44, 0.14);
}

.label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.input-row {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #f9fbff;
}

.prefix {
  padding: 14px 12px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(30, 90, 168, 0.08);
  border-right: 1px solid var(--border);
  white-space: nowrap;
}

input {
  flex: 1;
  border: none;
  padding: 14px 14px;
  font-size: 14px;
  background: transparent;
  color: var(--text);
  outline: none;
}

input:focus {
  box-shadow: inset 0 0 0 2px rgba(30, 90, 168, 0.2);
}

.primary {
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary:hover,
.primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(30, 90, 168, 0.3);
}

.ghost {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ghost:hover,
.ghost:focus-visible {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}

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

.highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  text-align: center;
}

.highlights div {
  background: #f9fbff;
  border-radius: 14px;
  padding: 12px 10px;
}

.highlight-title {
  display: block;
  font-weight: 600;
  font-size: 13px;
}

.highlight-meta {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.link-list {
  display: grid;
  gap: 12px;
}

.link-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #f9fbff;
}

.link-row.dragging {
  opacity: 0.6;
  border-color: var(--accent);
  box-shadow: 0 12px 24px rgba(10, 24, 44, 0.12);
}

.link-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.drag-handle {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: grab;
  user-select: none;
}

.link-row input {
  border: 1px solid transparent;
  border-radius: 10px;
  background: #ffffff;
  padding: 12px 12px;
}

.link-row input:focus {
  box-shadow: inset 0 0 0 2px rgba(30, 90, 168, 0.2);
}

.link-row-actions {
  display: flex;
  justify-content: flex-end;
}

.danger {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(200, 64, 64, 0.3);
  background: rgba(200, 64, 64, 0.08);
  color: #a43a3a;
  font-size: 12px;
  cursor: pointer;
}

.danger:hover,
.danger:focus-visible {
  background: rgba(200, 64, 64, 0.16);
}

.icon-select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #ffffff;
  padding: 12px 12px;
  font-size: 13px;
  color: var(--text);
}

.icon-select:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(30, 90, 168, 0.2);
}

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

.text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
}

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

@media (max-width: 560px) {
  .card {
    padding: 30px 22px 24px;
    border-radius: 22px;
  }

  .highlights {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
