/* ============================================================
   KK Header — User Avatar Dropdown
   (sits between brand and language switcher)
   ============================================================ */

.kk-header-user {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
}

.kk-header-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  cursor: pointer;
  height: 34px;
  padding-left: 3px;
  padding-right: 8px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  color: #fff;
}

.kk-header-user-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.35);
}

.kk-header-user-btn:active {
  transform: scale(0.96);
}

.kk-header-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #1f1f2a;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.12);
}

.kk-header-avatar-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e07864, #cf604f);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.12);
}

.kk-header-avatar-arrow {
  font-size: 8px;
  margin-left: 2px;
  opacity: 0.7;
  transition: transform 0.2s;
}

.kk-header-user.open .kk-header-avatar-arrow {
  transform: rotate(180deg);
}

.kk-header-user-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  border-radius: 12px;
  padding: 6px;
  background: rgba(20,16,10,0.96);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: none;
  z-index: 200;
}

.kk-header-user.open .kk-header-user-menu {
  display: block;
  animation: kkFadeIn 0.15s ease;
}

.kk-header-user-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}

.kk-header-user-item:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.kk-header-user-item .item-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0.85;
}

.kk-header-user-item.logout {
  color: #fca5a5;
}

.kk-header-user-item.logout:hover {
  background: rgba(239,68,68,0.15);
  color: #fff;
}

.kk-header-user-divider {
  height: 1px;
  margin: 4px 6px;
  background: rgba(255,255,255,0.08);
}
