:root {
  --bg: #fff7fb;
  --bg-accent: #f3ecff;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --border: rgba(236, 72, 153, 0.16);
  --text: #2d1e3e;
  --muted: #6e5b82;
  --pink: #ff5fa2;
  --pink-strong: #ec4899;
  --lavender: #8b5cf6;
  --shadow: 0 14px 36px rgba(176, 84, 144, 0.12);
}

body.dark {
  --bg: #171122;
  --bg-accent: #221735;
  --surface: rgba(34, 24, 52, 0.86);
  --surface-solid: #241a37;
  --border: rgba(244, 114, 182, 0.22);
  --text: #fdf4ff;
  --muted: #cbbad9;
  --pink: #ff7eb6;
  --pink-strong: #f472b6;
  --lavender: #a78bfa;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: linear-gradient(155deg, var(--bg) 0%, var(--bg-accent) 100%);
  position: relative;
  overflow-x: hidden;
  line-height: 1.55;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 320px;
  height: 320px;
  background: #ffb3d9;
  top: -90px;
  left: -80px;
}

.orb-2 {
  width: 340px;
  height: 340px;
  background: #d8c4ff;
  bottom: -100px;
  right: -90px;
}

.orb-3 {
  width: 220px;
  height: 220px;
  background: #ffe3b8;
  top: 42%;
  left: 65%;
  opacity: 0.35;
}

body.dark .orb-1 {
  background: #7e22ce;
  opacity: 0.28;
}

body.dark .orb-2 {
  background: #be185d;
  opacity: 0.24;
}

body.dark .orb-3 {
  background: #4338ca;
  opacity: 0.2;
}

.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 16px 44px;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.greeting-pill {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.icon-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
  border-color: var(--pink);
}

.profile-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.avatar-ring {
  position: relative;
  width: 108px;
  height: 108px;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-solid);
}

.avatar-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.status-dot {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #34d399;
  border: 3px solid var(--surface-solid);
}

.name-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

h1 {
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.verified-badge {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.handle {
  margin: 2px 0 8px;
  color: var(--pink-strong);
  font-weight: 600;
  font-size: 0.95rem;
}

.bio {
  margin: 0;
  color: var(--muted);
  max-width: 480px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.tag-chip {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 95, 162, 0.11);
  color: var(--pink-strong);
  font-size: 0.82rem;
  font-weight: 600;
}

.quick-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 6px;
}

.mini-stat {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 12px;
}

body.dark .mini-stat {
  background: rgba(255, 255, 255, 0.04);
}

.mini-label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.mini-stat strong {
  font-size: 0.92rem;
}

.section-title {
  margin: 0 0 10px 6px;
  font-size: 0.98rem;
  color: var(--muted);
  font-weight: 700;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.link-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(176, 84, 144, 0.08);
  text-decoration: none;
  color: var(--text);
  backdrop-filter: blur(12px);
  transition: transform 0.16s ease, border-color 0.15s ease, box-shadow 0.16s ease;
}

.link-item:hover {
  transform: translateY(-2px);
  border-color: var(--pink);
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.16);
}

.link-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: linear-gradient(135deg, rgba(255, 95, 162, 0.18), rgba(139, 92, 246, 0.18));
}

.link-meta strong {
  display: block;
  font-size: 0.98rem;
}

.link-meta span {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-arrow {
  color: var(--pink-strong);
  font-weight: 700;
  font-size: 1.1rem;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 12px;
}

.highlight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(12px);
}

.highlight-emoji {
  font-size: 1.4rem;
  margin-bottom: 6px;
  display: block;
}

.highlight-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.highlight-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.contact-card h2 {
  margin: 0 0 4px;
  font-size: 1.08rem;
}

.muted {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #2d1e3e;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  z-index: 30;
}

@media (max-width: 520px) {
  .quick-stats {
    grid-template-columns: 1fr;
  }
}
