:root {
  --bg: #102743;
  --accent: #69f0b5;
  --gold: #e9bc65;
  --text: #f3f8ff;
  --muted: #b3c7de;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Tahoma,
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at 15% 4%, #234e70 0%, transparent 43%),
    linear-gradient(150deg, #0a1d35, var(--bg) 45%, #071629);
  overflow-x: hidden;
}

.background-glow {
  position: fixed;
  z-index: -1;
  width: 360px;
  height: 360px;
  filter: blur(85px);
  opacity: 0.22;
  pointer-events: none;
}

.bg-one {
  background: #21b39e;
  top: -110px;
  right: -110px;
}

.bg-two {
  background: #a381df;
  bottom: -180px;
  left: -160px;
}

.page {
  max-width: 590px;
  margin: 0 auto;
  padding: 24px 18px 45px;
}

.profile {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 25px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
}

.banner {
  height: 142px;
  background:
    radial-gradient(
      circle at 30% 10%,
      rgba(108, 239, 196, 0.5),
      transparent 42%
    ),
    linear-gradient(120deg, #1b5b70, #193a65 55%, #473b6e);
  position: relative;
  overflow: hidden;
  display: none;
}

.banner:before,
.banner:after {
  content: "";
  position: absolute;
  border: 1px solid #ffffff2b;
  border-radius: 50%;
  width: 230px;
  height: 230px;
  right: -60px;
  top: -90px;
}

.banner:after {
  width: 155px;
  height: 155px;
  right: 25%;
  top: -65px;
}

.banner-pattern {
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: #ffffff70;
  letter-spacing: 11px;
  font-size: 22px;
}

.profile-content {
  text-align: center;
  padding: 0 22px 25px;
  padding-top: 20px;
}

.avatar {
  display: block;
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 0%;
  /* border: 5px solid #152c48;
  background: #183c5b; */
  margin: 20px auto 10px;
  position: relative;
  /* box-shadow:
    0 10px 25px #0005,
    0 0 0 2px var(--gold); */
}

.eyebrow {
  font-weight: 800;
  letter-spacing: 0.11em;
  color: var(--gold);
  font-size: 13px;
}

h1 {
  font-size: clamp(27px, 5vw, 35px);
  margin: 5px 0 8px;
  letter-spacing: 0.01em;
}

.headline {
  color: var(--accent);
  font-weight: 800;
  font-size: clamp(17px, 4vw, 21px);
  margin: 4px 0 7px;
  line-height: 1.6;
}

.description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 21px;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 100px;
  min-height: 40px;
  text-decoration: none;
  background: #ffffff12;
  border: 1px solid #ffffff28;
  border-radius: 99px;
  color: var(--text);
  padding: 9px 15px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
}

.social:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: #ffffff1d;
}

.social svg {
  width: 18px;
  height: 18px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 28px 0 17px;
}

.section-title h2 {
  font-size: 16px;
  letter-spacing: 0.02em;
  margin: 0;
}

.spark {
  color: var(--gold);
}

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

.link-card {
  display: flex;
  align-items: center;
  min-height: 90px;
  padding: 15px 17px;
  gap: 15px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(
    105deg,
    rgba(44, 85, 116, 0.96),
    rgba(23, 53, 86, 0.96)
  );
  border: 1px solid #ffffff34;
  box-shadow: 0 6px 19px #0004;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}

.link-card:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--accent), var(--gold));
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 11px 27px #0006;
  border-color: var(--accent);
  outline: none;
}

.link-icon {
  width: 70px;
  height: 70px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #64f2ba2b, #f3c8771f);
  border: 1px solid #ffffff2b;
  color: var(--accent);
}

.link-icon svg {
  width: 27px;
  height: 27px;
}

.link-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.link-copy {
  flex: 1;
  min-width: 0;
}

.link-title {
  font-weight: 800;
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.link-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.5;
}

.link-badge {
  display: inline-flex;
  margin-top: 7px;
  border: 1px solid #e9bc6580;
  border-radius: 20px;
  padding: 2px 8px;
  color: #f7d88f;
  font-size: 10px;
  font-weight: 800;
}

.link-arrow {
  font-size: 26px;
  color: #c5d9e8;
  opacity: 0.7;
}

footer {
  text-align: center;
  color: #a9bed5;
  font-size: 12px;
  margin: 29px 0 0;
}

.copy-link {
  margin-top: 10px;
  color: var(--muted);
  background: transparent;
  border: 1px solid #ffffff3d;
  border-radius: 40px;
  padding: 10px 18px;
  cursor: pointer;
  font: inherit;
}

.copy-link:hover {
  border-color: var(--accent);
  color: white;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: 0.2s;
  background: #163a37;
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 11px 16px;
  color: white;
  z-index: 3;
  pointer-events: none;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 420px) {
  .page {
    padding: 12px 12px 30px;
  }

  .banner {
    height: 125px;
  }

  .profile-content {
    padding: 0 16px 20px;
  }

  .link-card {
    padding: 13px 12px;
    gap: 11px;
    min-height: 83px;
  }

  .link-icon {
    width: 48px;
    height: 48px;
  }

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

  .link-arrow {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
