.col {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-edge), var(--grad-center));
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  color: var(--text-secondary);
}

.avatar svg {
  width: 54px;
  height: 54px;
}

.avatarImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.error {
  color: var(--danger, #ff5252);
  font-size: 12px;
  text-align: center;
}

.overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.avatar:hover .overlay {
  opacity: 1;
}

.overlay svg {
  width: 40px;
  height: 40px;
}

.col button {
  width: 100%;
}

.addPhoto {
  width: 100%;
}

@media (max-width: 1023px) {
  .addPhoto {
    display: none;
  }

  /* On mobile the avatar sits in a row next to the user info — keep it compact */
  .col {
    width: auto;
  }

  .avatar {
    width: 150px;
    height: 150px;
    aspect-ratio: auto;
  }
}

@media (max-width: 549px) {
  .col {
    width: 90px;
  }

  .avatar {
    width: 90px;
    height: 90px;
  }

  .avatar svg {
    width: 32px;
    height: 32px;
  }

  .overlay svg {
    width: 22px;
    height: 22px;
  }
}
