*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #f3f3f1;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px 20px 48px;
  min-height: 100vh;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.topbar-spacer {
  width: 40px;
  height: 40px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: #ddd;
  display: block;
}

.avatar[hidden],
.avatar-fallback[hidden] {
  display: none !important;
}

.avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: #666;
  background: linear-gradient(145deg, #e8e8e4, #d4d4d0);
}

.title {
  margin: 18px 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tagline {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.4;
}

.socials {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  margin: 18px 0 28px;
}

.social-link {
  color: #111;
  display: inline-flex;
  transition: opacity 0.15s ease;
}

.social-link:hover {
  opacity: 0.65;
}

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 14px;
  text-decoration: none;
  color: #111;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.link-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.link-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: transparent;
}

.link-icon-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #555;
  background: #f0f0ee;
}

.link-title {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  padding: 0 12px;
  line-height: 1.3;
}

.link-more {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
}

.link-more:hover {
  background: rgba(0, 0, 0, 0.05);
}

.footer {
  margin-top: 40px;
  text-align: center;
}

.footer-note {
  margin: 0;
  font-size: 13px;
  color: #888;
  letter-spacing: 0.02em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 60;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.share-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.share-modal[hidden] {
  display: none !important;
}

.share-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.share-sheet {
  position: relative;
  width: min(440px, 100%);
  max-height: min(90vh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 18px 18px 28px;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
}

.share-sheet-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 16px;
}

.share-sheet-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.share-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #111;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.share-close:hover {
  background: rgba(0, 0, 0, 0.05);
}

.share-preview {
  background: #0b1424;
  border-radius: 16px;
  padding: 28px 20px 24px;
  text-align: center;
  color: #fff;
  margin-bottom: 22px;
}

.share-preview-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  display: block;
  background: #ddd;
}

.share-preview-avatar[hidden] {
  display: none !important;
}

.share-preview-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #555;
  background: #e8e4de;
}

.share-preview-fallback[hidden] {
  display: none !important;
}

.share-preview-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.share-preview-handle {
  margin: 0;
  font-size: 13px;
  opacity: 0.85;
}

.share-actions {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.share-actions::-webkit-scrollbar {
  display: none;
}

.share-action {
  flex: 0 0 auto;
  width: 72px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #111;
  text-decoration: none;
  font: inherit;
}

.share-action-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.share-action-icon.copy {
  background: #ecece8;
  color: #111;
}

.share-action-icon.x {
  background: #000;
}

.share-action-icon.facebook {
  background: #1877f2;
}

.share-action-icon.whatsapp {
  background: #25d366;
}

.share-action-icon.linkedin {
  background: #0a66c2;
}

.share-action-icon.messenger {
  background: linear-gradient(135deg, #a033ff, #5b6cff);
}

.share-action-icon.telegram {
  background: #229ed9;
}

.share-action span {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

@media (min-width: 560px) {
  .share-modal {
    align-items: center;
    padding: 24px;
  }

  .share-sheet {
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 14px 16px 40px;
  }

  .title {
    font-size: 20px;
  }

  .link-title {
    font-size: 14px;
  }
}
