/* ============================================================
   TOKENS
   ============================================================ */

:root {
  --bg: #0b1f1a;
  --bg-2: #132b24;

  --card: rgba(22, 55, 45, 0.72);
  --card-hover: rgba(30, 75, 61, 0.92);

  --stroke: rgba(255, 255, 255, 0.10);
  --stroke-strong: rgba(255, 255, 255, 0.22);

  --text: #f2fff9;
  --muted: #a7c5b8;

  --accent: #6ee7b7;
  --glow: rgba(110, 231, 183, 0.30);

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);

  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   BASE
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Outfit, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;

  background:
    radial-gradient(
      900px 500px at 50% -10%,
      rgba(110, 231, 183, 0.22),
      transparent 55%
    ),

    radial-gradient(
      700px 420px at 90% 20%,
      rgba(52, 211, 153, 0.12),
      transparent 50%
    ),

    radial-gradient(
      600px 400px at 10% 80%,
      rgba(45, 212, 191, 0.10),
      transparent 50%
    ),

    linear-gradient(
      180deg,
      #102820 0%,
      var(--bg) 40%
    );
}

/* ============================================================
   LAYOUT
   ============================================================ */

.page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

/* ============================================================
   PROFILE
   ============================================================ */

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 36px;
}

.avatar-wrap {
  position: relative;
  width: 128px;
  height: 128px;
  margin-bottom: 18px;
}

.avatar-wrap::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 8px rgba(124, 156, 255, 0.08), 0 20px 40px rgba(0, 0, 0, 0.35);
}

.avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--bg-2);
}

.name {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.handle {
  margin: 6px 0 0;
  color: var(--accent);
  font-weight: 500;
}

.bio {
  max-width: 42ch;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

/* ============================================================
   ACCOUNT CARDS
   ============================================================ */

.accounts {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 14px;
  justify-content: center;
  width: min(420px, 100%);
  margin-inline: auto;
}

.account {
  --tint: var(--accent);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  width: 100%;
  max-width: 100%;
  min-height: 84px;
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(16px);
  transform: translateY(0) scale(1);
  transition:
    transform 220ms var(--ease),
    background 220ms var(--ease),
    border-color 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

.account::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tint) 22%, transparent), transparent 55%);
  opacity: 0;
  transition: opacity 220ms var(--ease);
}

.account > * {
  position: relative;
  z-index: 1;
}

.account:hover,
.account:focus-visible {
  background: var(--card-hover);
  border-color: color-mix(in srgb, var(--tint) 55%, var(--stroke-strong));
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--tint) 30%, transparent), 0 18px 40px var(--glow);
}

.account:hover::before,
.account:focus-visible::before {
  opacity: 1;
}

.account:active,
.account.is-pressed {
  transform: translateY(-1px) scale(0.985);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.account:focus-visible {
  outline: 2px solid var(--tint);
  outline-offset: 3px;
}

.account__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--tint);
  background: color-mix(in srgb, var(--tint) 16%, transparent);
  transition: transform 220ms var(--ease), background 220ms var(--ease);
}

.account__icon svg {
  width: 22px;
  height: 22px;
}

.account:hover .account__icon,
.account:focus-visible .account__icon {
  transform: rotate(-6deg) scale(1.06);
}

.account:active .account__icon,
.account.is-pressed .account__icon {
  transform: rotate(0deg) scale(0.94);
}

.account__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.account__label {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.account__hint {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account__chevron {
  color: var(--muted);
  font-size: 1.05rem;
  transition: transform 220ms var(--ease), color 220ms var(--ease);
}

.account:hover .account__chevron,
.account:focus-visible .account__chevron {
  color: var(--text);
  transform: translate(3px, -3px);
}
/* ============================================================
   COPY ACTION
   ============================================================ */

.account__copy-icon {
  display: none;
  color: var(--muted);
  transition: transform 220ms var(--ease), color 220ms var(--ease);
}

.account__copy-icon svg {
  width: 20px;
  height: 20px;
}

.account[data-network="phone"] .account__chevron {
  display: none;
}

.account[data-network="phone"] .account__copy-icon {
  display: block;
}

.account:hover .account__copy-icon,
.account:focus-visible .account__copy-icon {
  color: var(--text);
  transform: scale(1.08);
}

.account:active .account__copy-icon,
.account.is-pressed .account__copy-icon {
  transform: scale(0.92);
}





/* ============================================================
   NETWORK COLORS
   Matched to data-network on each account card.
   ============================================================ */

.account[data-network="instagram"] { --tint: #f472b6; --glow: rgba(244, 114, 182, 0.28); }
.account[data-network="x"] { --tint: #e5e7eb; --glow: rgba(229, 231, 235, 0.18); }
.account[data-network="tiktok"] { --tint: #22d3ee; --glow: rgba(34, 211, 238, 0.25); }
.account[data-network="youtube"] { --tint: #f87171; --glow: rgba(248, 113, 113, 0.28); }
.account[data-network="linkedin"] { --tint: #60a5fa; --glow: rgba(96, 165, 250, 0.3); }
.account[data-network="facebook"] { --tint: #93c5fd; --glow: rgba(147, 197, 253, 0.28); }
.account[data-network="github"] { --tint: #c4b5fd; --glow: rgba(196, 181, 253, 0.28); }
.account[data-network="discord"] { --tint: #818cf8; --glow: rgba(129, 140, 248, 0.3); }
.account[data-network="web"] { --tint: #34d399; --glow: rgba(52, 211, 153, 0.28); }

/* ============================================================
   BREAKPOINTS
   ============================================================ */

@media (min-width: 980px) {
  .page {
    width: min(1080px, calc(100% - 48px));
    padding-top: 64px;
  }
}

@media (max-width: 479px) {
  .page {
    width: min(100% - 24px, 920px);
    padding-top: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account,
  .account__icon,
  .account__chevron,
  .account::before {
    transition: none;
  }

  .account:hover,
  .account:focus-visible,
  .account:active,
  .account.is-pressed {
    transform: none;
  }
}
