.avatar-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: visible !important;
  box-sizing: border-box;
}

.avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #222;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  line-height: normal;
  box-shadow: inset 0 2px 10px rgba(255,255,255,0.05);
}

.avatar-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 135%;
  height: 135%;
  pointer-events: none;
  z-index: 2;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4))
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.1));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.avatar-container:hover .avatar-frame {
  transform: translate(-50%, -50%) scale(1.05);
}

@media (max-width: 640px) {
  .avatar-frame {
    width: 130%;
    height: 130%;
  }
}

.avatar-online-indicator {
  position: absolute;
  bottom: 8%;
  right: 8%;
  width: 12%;
  height: 12%;
  background: #4ade80;
  border: 1px solid #000;
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.3);
}

.avatar-online-indicator.offline {
  background: #6b7280;
  box-shadow: none;
  width: 10%;
  height: 10%;
}

.avatar-xs {
  width: 32px;
  height: 32px;
}
.avatar-sm {
  width: 44px;
  height: 44px;
}
.avatar-md {
  width: 64px;
  height: 64px;
}
.avatar-lg {
  width: 100px;
  height: 100px;
}
.avatar-xl {
  width: 150px;
  height: 150px;
}

.avatar-xs .avatar-placeholder {
  font-size: 10px;
}
.avatar-sm .avatar-placeholder {
  font-size: 17px;
}
.avatar-md .avatar-placeholder {
  font-size: 20px;
}
.avatar-lg .avatar-placeholder {
  font-size: 32px;
}
.avatar-xl .avatar-placeholder {
  font-size: 48px;
}
